Note CC

carnet de recherche-action, ateliers et notes libres

Outils pour utilisateurs

Outils du site


Notes de recherche-action sur l'administration système et l'administration réseau





Bypass Waf

IP addresses can be shortened by dropping the zeroes. Examples: This bypasses WAF filters for SSRF, open-redirect, etc where any IP as input gets blacklisted.

IPv4 is usually denoted as <octet>.<octet>.<octet>.<octet> (ff.0.1.2).

Can also be denoted as hex 0xff000102 or a number as in decimal notation. However, 4.2BSD's inet_aton() allowed IPs as decimal <octet>.<24bit-decimal> or <octet>.<octet>.<16bits-decimal>.

So the last “1” gets dereferenced as a decimal notation and is hence actually the two octets 0.1

For the same reason 1.1.257 gets resolved to as 257 is actually 0x0101

Source witter /0xInfection/status/1148267196306427904

http://0xC0A80001 or http://3232235521 ⇒ Works with ping and others too. sipcalc is your friend.

MyTraceRoute + Sysdig



  • Quels ports sont utilisés par quel processus sur une machine
$ sudo netstat -plnt | fgrep <port number>
Vous pourriez laisser un commentaire si vous étiez connecté.
norae/si/admin.txt · Dernière modification: 2019/07/11 13:33 par xavcc