rendered paste bodynano@nano-desktop:~$ ltrace ./ircbot irc.smashthestack.org
__libc_start_main(0x80485d0, 2, 0xbfee4814, 0x8048834, 0x8048885 <unfinished ...>
gethostbyname("irc.smashthestack.org") = 0xb7fc1c74
socket(2, 1, 0) = 3
htons(6667, 1, 0, 0, 1) = 2842
connect(3, 0xbfee455c, 16, 0, 1) = 0
send(3, 0x804895d, 512, 0, 1) = 512
send(3, 0x804896c, 512, 0, 1) = 512
recv(3, 0xbfee456c, 512, 0, 1) = 139
recv(3, 0xbfee456c, 512, 0, 1) = 16
puts("Received PING... sending PONG"Received PING... sending PONG
) = 30
send(3, 0xbfee456c, 139, 0, 1) = 139
recv(3, 0xbfee456c, 512, 0, 1) = 60
recv(3, 0xbfee456c, 512, 0, 1
it stops right there then it starts flooding the following:
recv(3, 0xbfee456c, 512, 0, 1) = 0