Tricking webserver into believing
mrkshrt at transparentsolutions.com
mrkshrt at transparentsolutions.com
Fri Dec 14 15:37:05 CST 2001
In Perl, using CPAN modules:
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
#look at your web logs for what string(s) should be here
$ua = LWP::UserAgent->new("Whatever you want it to look like to
serverMozilla/5 (beezlebub)");
my $req = POST 'http://www.targeturl.com/target.cgi',
[field1 => 'field1value',
field2 => 'field2value',
'field.3' =>'field3value'];
$content = $ua->request($req)->as_string;
$content will contain the text that would have come back to your browser,
along with headers.
Mark
-----Original Message-----
From: Brian Densmore [mailto:DensmoreB at ctbsonline.com]
Sent: Friday, December 14, 2001 8:37 AM
To: KCLUG (E-mail)
Subject: Tricking webserver into believing
Anyone know how webservers query browsers for OS and browser info? I
need to force my box at home to make 2 certain web addresses believe I
am coming in from Windoze, with Explorer or Netscape 4.7 and using 128
bit encryption. There has got to be a way to do this.
I am currently running Mandrake 8.0 with a 2.4.16 kernel
KDE 2.1.1 and
Konqueror 2.1.1
and Netscape 6.x
I have talked with one of the sites and it's like talking to a stone
wall.
I have Konqueror supposedly transmitting a different string (user
agent), but the servers always come back with the default value (well
one does anyway, the other just gives me a raspberry). One of the sites
supposedly supports Redhat 6.1.
Grrr!
TIA,
Brian Densmore
<mailto:densmoreb at ctbsonline.com>
Associate
CompuTech Business Solutions, Inc.
http://www.ctbsonline.com/
(816) 880-0988 x215
More information about the Kclug
mailing list