Networking

Minimal HTTP requests

This page lists different HTTP request templates. All templates contain the minimum number of required headers.

HTTP POST
POST /login.cgi HTTP/1.0
Host: 192.168.200.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 51

submit=Login&username=admin&password=Adm1n15trat0r

HTTP GET
GET /index.html HTTP/1.0
Host: 192.168.200.1

Tags: 

Using tcpdump

Some examples of using tcpdump.

Show all packets received from host 123.123.123.123
tcpdump -r $i src host 123.123.123.123

Show all TCP packets received from host 123.123.123.123 except the RCP RESET packets
tcpdump -r $i src host 123.123.123.123 and tcp[tcpflags] & tcp-rst==0

Show all UDP packets received from host 123.123.123.123
tcpdump -r $i src host 123.123.123.123 and udp

Show all ICMP packets received from host 123.123.123.123
tcpdump -r $i src host 123.123.123.123 and icmp

Tags: 

Dnscmd - Managing the Windows DNS Server

This page explains how you can script the creation of new domains in a Windows DNS server using the dnscmd utility.

For one of my projects, I needed to find a way to redirect requests from local machines to for example google.com to a local webserver. To accomplish this, I setup a DNS server, made sure that all the local machines were using this DNS and added google.com in this DNS server to redirect to my local server.

Tags: 

Pages

Subscribe to RSS - Networking