11
Hacking Network APIs By Dan Nagle

Hacking Network APIs by Dan Nagle

Embed Size (px)

Citation preview

Page 1: Hacking Network APIs by Dan Nagle

Hacking Network APIsBy Dan Nagle

Page 2: Hacking Network APIs by Dan Nagle

Dan Nagle

• Sr SW Engineer for SVSI (now part of Harman)• Wrote a book published by CRC Press that is now

quite outdated• Inventor of Packet Sender as well as some really

obscure apps• GitHub.com/dannagle• Twitter.com/NagleCode• LinkedIn.com/in/dannagle • (If you want to connect, use [email protected])

Page 3: Hacking Network APIs by Dan Nagle

WiresharkPacket capture and analysis

Since 1998.

https://www.Wireshark.org/

Page 4: Hacking Network APIs by Dan Nagle

Capture live packets.

Page 5: Hacking Network APIs by Dan Nagle

Packet SenderSend and Receive TCP/UDP

Since 2011.

https://PacketSender.com/

Page 6: Hacking Network APIs by Dan Nagle

Common Uses• Control devices beyond their original apps• Automation• Developing network APIs• Malware analysis• Testing network connectivity/firewalls• Tech support (portable Packet Sender)

Page 7: Hacking Network APIs by Dan Nagle

TCP versus UDP

TCP UDPDevice Control ✓ ✓File Download ✓ ✖Device Polling ✖ ✓http / ssh / telnet / ftp / git ✓ ✖

Live Streaming Video ✖ ✓Broadcast / Multicast ✖ ✓

Transmission Control Protocol vs User Datagram Protocol "Guaranteed" vs "best effort"

With UDP, you are trading accuracy for speed.

Page 8: Hacking Network APIs by Dan Nagle

Create packets. Capture packets. Easy interface.

Page 9: Hacking Network APIs by Dan Nagle

Linux-style command line switchespacketsender -taw 500 example.com 22 "Hello\nWorld"

TCP (54747)://91.189.94.40:22 48 65 6c 6c 6f 0a 57 6f 72 6c 64 Response Time:5:51:37.042 pm Response HEX:53 53 48 2D 32 2E 30 2D 4F 70 65 6E 53 53 48 5F 36 2E 32 70 32 20 55 62 75 6E 74 75 2D 36 2E 31 2E 49 53 50 41 54 43 48 45 44 2E 31 32 2E 30 34 0D 0A Response ASCII:SSH-2.0-OpenSSH_6.2p2 Ubuntu-6.1.ISPATCHED.12.04\r\n

Page 10: Hacking Network APIs by Dan Nagle

The Setup

Page 11: Hacking Network APIs by Dan Nagle

Questions?

PacketSender.comTwitter.com/NagleCode