Skip to content

Instantly share code, notes, and snippets.

@erszcz
Created March 19, 2013 12:17
Show Gist options
  • Save erszcz/5195628 to your computer and use it in GitHub Desktop.
Save erszcz/5195628 to your computer and use it in GitHub Desktop.
$ sudo ngrep -W byline -d wlan0 port 5280
interface: wlan0 (192.168.1.0/255.255.255.0)
filter: (ip or ip6) and ( port 5280 )
####
T 192.168.1.11:50308 -> 192.168.1.17:5280 [AP]
POST /http-bind/ HTTP/1.1.
Host: 192.168.1.17:5280.
Connection: keep-alive.
Referer: http://192.168.1.17/simpleclient/.
Content-Length: 269.
Origin: http://192.168.1.17.
Content-Type: text/xml; charset=UTF-8.
User-Agent: Mozilla/5.0 (Linux; U; Android 4.1.2; pl-pl; GT-I9100 Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30.
Accept-Encoding: gzip,deflate.
Accept-Language: pl-PL, en-US.
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7.
Accept: */*.
.
##
T 192.168.1.17:5280 -> 192.168.1.11:50308 [AP]
HTTP/1.1 500 Internal Server Error.
connection: keep-alive.
server: Cowboy.
date: Tue, 19 Mar 2013 11:47:05 GMT.
content-length: 0.
.
##
T 192.168.1.11:50308 -> 192.168.1.17:5280 [AP]
<body content='text/xml; charset=utf-8' hold='1' xmlns='http://jabber.org/protocol/httpbind' to='localhost' wait='300' rid='242267' secure='false' newkey='8430169f88c61977cefcbba7644b42d627e1e6bf' xml:lang='en' ver='1.6' xmlns:xmpp='urn:xmpp:xbosh' xmpp:version='1.0'/>
#####
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment