Jump to content

GTS: website research (support thread)


Recommended Posts

But then when I tried to drag the .pkm file, the window closed quickly after sending a message; I quickly screenshotted it and it said "An attempt was made to access a socket in a way forbidden"]

That means you have another program listening on port 80 (HTTP), usually a webserver like Apache or IIS.

Link to comment
Share on other sites

  • Replies 258
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

I looked into it and it turns out Skype was interfering, however now I have another issue. I have everything set up, and people input my IP as the thing to connect to and my server makes it seem like it's working, like says its connecting the IP of the requester is being directed to a certain fake URL or something along those lines, but everyone says they got a connection error that says they just can't connect.

Link to comment
Share on other sites

You mean, there is a problem once a Pokémon is sent ?

Does the program close, or is there an error message ?

Or maybe you want to send different .pkm files, if so then this program doesn't do this, because it was my first release and, as I said, mainly a test program, with not many functionnalities.

Link to comment
Share on other sites

Ah, you use the Python script.

It shows no log, sorry.

You can try with my DNS server, with no GTS server running, to see what happens and whether the DS connects correctly.

If the console shows the DNS requests, then the problem comes from the GTS server.

Link to comment
Share on other sites

That might be hard if you can't download anything...

As sendpkm.py shows nothing of what is happening, you'll have to modify it a bit.

Edit pokehaxlib.py with a text editor such as Notepad, and find this (in the middle of the file) :

def dnsspoof():
 s=socket.socket(); s.connect(("bash.org",80));
 me="".join(chr(int(x)) for x in s.getsockname()[0].split("."))
 print "Please set your DS's DNS server to",s.getsockname()[0]
 dnsserv=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
 dnsserv.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
 dnsserv.bind(("0.0.0.0",53))
 while True:
   r=dnsserv.recvfrom(512)
   s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
   s.connect(('4.2.2.2', 53))
   s.send(r[0])
   rr=s.recv(512)
   if "gamestats2" in rr: rr=rr[:-4]+me
   dnsserv.sendto(rr, r[1])

Replace it by the following code, then save :

def dnsspoof():
 s=socket.socket(); s.connect(("bash.org",80));
 me="".join(chr(int(x)) for x in s.getsockname()[0].split("."))
 ip=s.getsockname()[0]
 print "Please set your DS's DNS server to",ip
 print
 dnsserv=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
 dnsserv.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
 dnsserv.bind(("0.0.0.0",53))
 while True:
   r=dnsserv.recvfrom(512)
   print "Got a DNS query from",r[1][0]
   s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
   s.connect(('4.2.2.2', 53))
   s.send(r[0])
   rr=s.recv(512)
   if "gamestats2" in rr:
     rr=rr[:-4]+me
     print "Spoofing : gamestats2.gs.nintendowifi.net ->",ip
   dnsserv.sendto(rr, r[1])
   print "DNS response sent to",r[1][0]
   print

That will make the script showing the DNS requests it gets and the responses it sends.

If there is still nothing is showing up on in the console, then the problem comes from the port UDP 53.

You may have to allow that specific port in the firewall in addition to python.exe.

Your father isn't against copy/pasting, is he ? :redface:

Link to comment
Share on other sites

I'm new to this. I opened the folder with stuff like the log and other things. I opened GTS Server, and then I got an error saying There is already a program listening on port 80 <HTTP> Please make sure there is nothing bound to that port <usually webservers like Apache or IIS>, then restart the program. I don't know that much about computers, so I didn't understand it at all.

Link to comment
Share on other sites

Okay, so I'm using Vlad's GTS site files, but I'm having a few errors.

First of all, when I look at Vlad's GTS, it looks like this:

k0pkj5.png

But mine gives this error:

504rr7.png

It apparently can't build the SQL database, I'm guessing. I input localhost and the name of my SQL database in the areas, but it gives me the above error. I can provide the Pastebin files of my config.php and gts_db.sql if needed.

The other problem is that I can't seem to get the DNS Server to work. When I try it, it gets up to the Hook function, then sends me immediately out of the GTS. This also happens with the other dnsserver.py's that I've used.

Halp plox?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...