*Unlock All Weapons* in server patch 1.02

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • No_Karma

    #106
    Re: *Unlock All Weapons* in server patch 1.02

    Originally posted by Primski
    Are your unlocks working now ?

    I gotta question here too:

    I tried to setup my webserver to host that script, and the script returns some values, just like some others have stated a few pages ago, so it should be working.
    My question is, why doesnt the server we're all referring to, mentioned on the first page here, print the same text. If you put a url in your browser 209.91.168.238/ASP/getunlocksinfo.aspx it doesnt return anything, blank page yet the unlocks work. So i guess my web server, if it returns some text, is not set up correctly yet the script gets executed.

    Any idea ?
    Mines still not working. Tried setting up my own server and no dice either. Wondering if it may have something to do with my server? I am running W2K3 on VMware.

    Comment

    • preem

      #107
      Re: *Unlock All Weapons* in server patch 1.02

      Mine unlocks are down again, for a few days now. Whats wrong with "209.91.168.238 bf2web.gamespy.com" server ?

      I'm still having problems setting up my own server. The script seem to execute, yet the unlocks dont work.


      Can someone who managed to get the script on he's own server to run, please be so kind and tell us the secret

      Comment

      • Tk-421

        #108
        Re: *Unlock All Weapons* in server patch 1.02

        No, there is currently no other workaround. So, go get to debugging!

        Comment

        • preem

          #109
          Re: *Unlock All Weapons* in server patch 1.02

          That's very mean of you man

          Now i know you're all big guru's here, knowing everything, and just laughing at posts like this, but if this was a common problem, there's no way i couldn't find that on google, but this thing....
          Just tell me, if i get this outout from the script does that mean it gets executed or not ?

          Code:
          Content-type: text/plain
          
          O
          H	pid	nick	asof
          D	12345678	UNLOCKED	1132044035
          H	enlisted	officer
          D	0	0
          H	id	state
          D	11	s
          D	22	s
          D	33	s
          D	44	s
          D	55	s
          D	66	s
          D	77	s
          $	103	$
          And if yes, why the he*** don't the unlocks work then. If that is not the result of script executing, just say so i will fu*** with my web server until i get it working. But till then I'm on a deadly spot here.

          Hope you'll help a fella out here, mate...


          Originally posted by Primski
          I tried to setup my webserver to host that script, and the script returns some values, just like some others have stated a few pages ago, so it should be working.
          My question is, why doesnt the server we're all referring to, mentioned on the first page here, print the same text. If you put a url in your browser 209.91.168.238/ASP/getunlocksinfo.aspx it doesnt return anything, blank page yet the unlocks work. So i guess my web server, if it returns some text, is not set up correctly yet the script gets executed.

          Any idea ?

          Comment

          • geddeth

            #110
            Re: *Unlock All Weapons* in server patch 1.02

            Has anyone here had the script running on their own server? Can't remember if anyone ever said they had .. what about mofino - are you still there, man, or did EA make you disappear? </conspiracy>

            Comment

            • distance

              #111
              Re: *Unlock All Weapons* in server patch 1.02

              Any news on this ? :hmm:

              weapons on my 1.03 server were unlocked but now they are locked again...

              Comment

              • Gr1m R

                #112
                Re: *Unlock All Weapons* in server patch 1.02

                Unlocks not working at all anymore.

                Comment

                • MrGrimm

                  #113
                  Re: *Unlock All Weapons* in server patch 1.02

                  not workin here either

                  Comment

                  • preem

                    #114
                    Re: *Unlock All Weapons* in server patch 1.02

                    There must have been some changes in the unlocking system i'm guessing. I dont think this method works any more.

                    Any other thoughts ?

                    Comment

                    • MrGrimm

                      #115
                      Re: *Unlock All Weapons* in server patch 1.02

                      was working in 1.03...what could have changed? Now new patches since.

                      Comment

                      • preem

                        #116
                        Re: *Unlock All Weapons* in server patch 1.02

                        I'm not sure mate, but this thing is weird, and how come there are so many servers reporting this ?

                        Do the unlocks work for ANYone anymore ?

                        Comment

                        • ebc_admin

                          #117
                          Re: *Unlock All Weapons* in server patch 1.02

                          No replies to PM's or in the forums
                          My guess would be the server is no longer running the script.

                          Dont know the reason for that.

                          If you Http to the IP you used to get a front page now you get nothing.

                          I dont know the bandwith offering this cost him but a lot of servers were using it.
                          I havent seen anyone else who succesfully managed to get his script to run either on windows or unix.

                          If you did can you post how and perhaps we can get a few more servers up?

                          Comment

                          • MrGrimm

                            #118
                            Re: *Unlock All Weapons* in server patch 1.02

                            Is there anyone here that can figure this out ?

                            I've got some great news too... How to unlock all the weapons ingame!!

                            Zitat:
                            Only the linux server has been tested -- sort've. I only tested it alone on my server. But it appears to work just fine. I'm not giving out the code quite yet, it just a simple perl CGI, and I think this will be easier for now.

                            Anyway on to the fix. 3770280

                            For Linux servers:
                            1. edit /etc/hosts and add this line:


                            Code:
                            209.91.168.238 bf2web.gamespy.com

                            2. enjoy!

                            For Windows servers:
                            1. edit X:\$WINDOWS\system32\drivers\etc\hosts and add this line:


                            Code:
                            209.91.168.238 bf2web.gamespy.com

                            2. enjoy!

                            Basically I'm emulating the "unlocked weapons" responses from Gaymenspy.


                            This is posted in the total bf2 forums... And the rest comes here--->

                            HERE IS THE CODE!

                            This version of the CGI simple gives back the fully unlocked status, but with fake credentials (ID and nick). If Dice were to ever require these items to be valid, this script will no longer function, but until then it's the better one to use.

                            Zitat:
                            #!/usr/bin/perl

                            my @ids=qw/11 22 33 44 55 66 77/;

                            sub main();
                            sub main() {
                            my $time=time;

                            print "Content-type: text/plain\n\n";
                            print "O\n";
                            print "H\tpid\tnick\tasof\n";
                            print "D\t12345678\tUNLOCKED\t$time\n";
                            print "H\tenlisted\tofficer\n";
                            print "D\t0\t0\n";
                            print "H\tid\tstate\n";
                            for (@ids) {
                            print "D\t$_\ts\n";
                            }
                            print "\$\t103\t\$\n";
                            }

                            main();


                            Now this one actually queries the Gaymenspy "web cluster" (haha it's garbage). This one has frequent errors and sometimes does not unlock the weapons. This is not due to my code!!! It's because Gamespy barely has a grasp on how to deal with large traffic volumes and spews "bad request" errors (stats not updating anyone?). So if Dice ever looks for a valid player ID and nick name, you will need this script instead of the one above. They could screw me by looking for the header info returned by Gamespy. But if they do, I'll just make an all out proxy, so no worries. So basically, use the above script until it breaks!

                            Zitat:
                            #!/usr/bin/perl

                            # this script may not work, I don't use it anymore.
                            # and I've made code changes without testing them.
                            # if it doesn't work.. fix it.

                            use IO::Socket::INET;

                            my @ids=qw/11 22 33 44 55 66 77/;

                            sub parse_form(\%);
                            sub parse_form(\%) {
                            my $webvar=$_[0];
                            my $buffer;
                            if ($ENV{'REQUEST_METHOD'} eq "GET") {
                            $buffer=$ENV{'QUERY_STRING'};
                            } elsif ($ENV{'REQUEST_METHOD'} eq 'POST' && $ENV{'CONTENT_TYPE'} eq "application/x-www-form-urlencoded") {
                            read(STDIN, $buffer, $ENV{CONTENT_LENGTH});
                            } else {
                            $buffer = $ENV{'QUERY_STRING'};
                            $buffer || read(STDIN, $buffer, $ENV{CONTENT_LENGTH});
                            }
                            my @pairs = split(/&/, $buffer);
                            for (@pairs) {
                            my ($name, $value)=split(/=/);
                            $name =~ tr/+/ /;
                            $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
                            $value =~ tr/+/ /;
                            $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
                            $value =~ s/'/\\'/g;
                            $$webvar{$name} = $value;
                            }
                            }

                            sub main();
                            sub main() {
                            my %webvar;
                            parse_form(%webvar);

                            my $sock = IO::Socket::INET->new(PeerAddr => 'BF2Web.gamespy.com', PeerPort => '80', Proto => 'tcp');

                            print $sock "GET /ASP/getunlocksinfo.aspx?pid=$webvar{'pid'} ";
                            print $sock "HTTP/1.1\nHost: BF2Web.gamespy.com\nUser-Agent: ";
                            print $sock "GameSpyHTTP/1.0\nConnection: close\n\n";

                            print "Content-type: text/plain\n\n";
                            while(my $recv=<$sock>) {
                            next unless $recv=~/^(?:O|H|D|\$)\s/;
                            if ($recv=~/^D/) {
                            for (@ids) {
                            if ($recv=~/\s$_\s/) {
                            $recv=~s/n/s/;
                            }
                            }
                            }
                            print $recv;
                            }
                            }

                            main();


                            So after you've taken the script of your choice. You'll need to name it like this:

                            Zitat:
                            /ASP/getunlocksinfo.aspx


                            Once that is done, do the hosts file trick on your BF2 server, but now point it to your web server's IP and not mine. At this point you should know how to assign bf2web.gamespy.com to your web server configuration. And you should know how to enable CGI on the getunlocksinfo.aspx file.

                            I will NOT help you with your web server configuration. If you do not know how to use this script, then please use the hosts file trick I've provided in the first post, it's so much easier! Plus I will always keep script updated!

                            Comment

                            • MrGrimm

                              #119
                              Re: *Unlock All Weapons* in server patch 1.02


                              look there...someone hack it ?

                              Comment

                              • preem

                                #120
                                Re: *Unlock All Weapons* in server patch 1.02

                                Lol

                                btw: have you heard about this project :

                                Discover the secrets of BlackOps Market, your gateway to the darknet for illicit trades.


                                Check forum, basically the guy made some scripts, which not only give you all unlocks, but earned ones + complete statistics in the BFHQ all data taken from Bighamsters.de stats.


                                I'm using this now, and this thing rox...

                                Comment

                                Working...