Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Attacking a Login server

Hello guys a mate of mine challenged me to crack a login system he has thrown together.


It's a simple exe login interface that sends username,password & Unique ID via HTTP Post to a web server (I can see this all in plan text using wireshark)

The post method sends that data to a Api.php script that then returns a json string :

{"IsError":true,"ErrorMessage":"Invalid Request","ResponseData":"","Active":false,"Clients":0,"ID":0,"Init":"","Final":""}

This is a fairly simply json object and my logic was then to simply dns spoof (using the Host file in windows 10) the web-server to my localhost, write a server that will always return the json object but with edited data such as :


{"IsError":false,"ErrorMessage":"","ResponseData":"","Active":true,"Clients":100,"ID":1,"Init":"","Final":""}

However the program refuses to play along and spits out this :

Screenshot of Error


The server I am running on my local PC returns this when trying the login :


Code
[System-Packet]: POST /api.php HTTP/1.1
[System-Packet]: Content-Type: application/x-www-form-urlencoded
[System-Packet]: Host: ---REMOVED FOR SAFETY----
[System-Packet]: Content-Length: 196
[System-Packet]: Expect: 100-continue
[System-Packet]: Connection: Keep-Alive
[System-Packet]:
[System-Packet]:


Any advice would be greatly appreciated 😖


Possibly Related Threads...
Thread / Author Replies Views Last Post
by SIM-4887667Feb 19, 2021 06:10 AM 6 205 Feb 19, 2021 06:10 AM
Last Post: SIM-4887667
by SpoofGenuisJul 20, 2018 03:16 PM 3 225 Jul 20, 2018 03:16 PM
Last Post: 0xB9
by hanna2111Nov 12, 2017 01:44 PM 2 156 Nov 12, 2017 01:44 PM
Last Post: hanna2111