Thread View: alt.privacy.anon-server
3 messages
3 total messages
Started by Jack Ryan
Tue, 01 Sep 2015 11:47
Question - breakin attempt
Author: Jack Ryan
Date: Tue, 01 Sep 2015 11:47
Date: Tue, 01 Sep 2015 11:47
30 lines
1954 bytes
1954 bytes
Does anyone know what these www log records are about? I can't seem to block them with iptables. It looks like someone is using hex code to try to break in. I was hopeing that a string match on "x00" would stop this, but the top record has "x00" and got through anyway. 52.88.58.229 - - [01/Sep/2015:03:43:40 -0500] "\xE9Gn\x0F\x89\x9A\x1ET\x16\xB8\x91\xF0\x9A\x 1ET\x89\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0 0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0 0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 400 172 "-" "-" 1.160.34.214 - - [01/Sep/2015:04:13:05 -0500] "\x96)\x83\x228\xD5\x92j\x14O\x09\x91\xE6\xC7s=8\xB4\x90T-\xC5- \x16\xE0\x10\xD6\xDF\xF0\xC1'==\x82k\x1B\xA0\xF0\x9A\xEE\xAC\xC 1Q'\xB3P\xBElQ\xEDp\xB1\x18\xEE\xFC\x84}\x95a\xA4\x99M\xC7\x8D\ x87\xC5\xE2\xCAk\xF5\xE5\x98\xF7*5\x01$\xD6\xCF\x16nC\xCA\x83\x ED\xBBYS$\xD7\xF0)\x966x\x18@\xEF" 400 172 "-" "-" 1.160.34.214 - - [01/Sep/2015:04:13:06 -0500] "\x02%m\xE4V\x89:\x9E\xA1V\xDF\xAB\xFF\x9E\xE9 \xC1\xD7;\xE2E\xFA\xDD<\xA7\xE0\x0CC\x8B\xAD\x C3Z\xB4\xBE\x80\x8FU\x87\xEC\x1A\xCA+\x02n\xD5 \x9B\xE6\x93\x90\x11\x01\xF4t\xDE\xA6\x07@\x98 \x14S\xA8\xDE(\xE3\xB8Z\xCF\x9D\xDA)^\xBF\xC7\ xB7\xE3\x9B\xE1\x16*)}z\x9CC\xE1$|\xEAc\xBA\x9 5\xE9a$\xB1g\x83a\xE6uy\x9Ak\xE8\x95%\x9D\x13\ xD1\xB1\x09\xFA\x05\x14"
Re: Question - breakin attempt
Author: Jeremy Bentham
Date: Tue, 01 Sep 2015 15:11
Date: Tue, 01 Sep 2015 15:11
44 lines
2898 bytes
2898 bytes
> Does anyone know what these www log records are about? I can't > seem to block them with iptables. It looks like someone is using > hex code to try to break in. I was hopeing that a string match on > "x00" would stop this, but the top record has "x00" and got through > anyway. > > "\xE9Gn\x0F\x89\x9A\x1ET\x16\xB8\x91\xF0\x9A\x > 1ET\x89\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0 > 0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ > x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0 > 0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 400 > 172 "-" "-" > > "\x96)\x83\x228\xD5\x92j\x14O\x09\x91\xE6\xC7s=8\xB4\x90T-\xC5- > \x16\xE0\x10\xD6\xDF\xF0\xC1'==\x82k\x1B\xA0\xF0\x9A\xEE\xAC\xC > 1Q'\xB3P\xBElQ\xEDp\xB1\x18\xEE\xFC\x84}\x95a\xA4\x99M\xC7\x8D\ > x87\xC5\xE2\xCAk\xF5\xE5\x98\xF7*5\x01$\xD6\xCF\x16nC\xCA\x83\x > ED\xBBYS$\xD7\xF0)\x966x\x18@\xEF" 400 172 "-" "-" > > "\x02%m\xE4V\x89:\x9E\xA1V\xDF\xAB\xFF\x9E\xE9 > \xC1\xD7;\xE2E\xFA\xDD<\xA7\xE0\x0CC\x8B\xAD\x > C3Z\xB4\xBE\x80\x8FU\x87\xEC\x1A\xCA+\x02n\xD5 > \x9B\xE6\x93\x90\x11\x01\xF4t\xDE\xA6\x07@\x98 > \x14S\xA8\xDE(\xE3\xB8Z\xCF\x9D\xDA)^\xBF\xC7\ > xB7\xE3\x9B\xE1\x16*)}z\x9CC\xE1$|\xEAc\xBA\x9 > 5\xE9a$\xB1g\x83a\xE6uy\x9Ak\xE8\x95%\x9D\x13\ > xD1\xB1\x09\xFA\x05\x14" Try this. x00, x16, x89, xF0 seem to be common to some of the records. "--from 21" should keep you out of the TCP header. If this works and you get another hex string in the payload, see if x00, x16, x89, and/or xF0 is in the payload. If one of them is, then the DROP string isn't working as planned. If the hex characters are not in the payload, then add one of the hex characters from that payload in the iptables. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m string -- hex-string "0x00" --algo bm --from 21 --to 300 -j DROP iptables -A INPUT -p tcp -m multiport --dports 80,443 -m string -- hex-string "0x16" --algo bm --from 21 --to 300 -j DROP iptables -A INPUT -p tcp -m multiport --dports 80,443 -m string -- hex-string "0x89" --algo bm --from 21 --to 300 -j DROP iptables -A INPUT -p tcp -m multiport --dports 80,443 -m string -- hex-string "0xF0" --algo bm --from 21 --to 300 -j DROP
Re: Question - breakin attempt
Author: Jeremy Bentham
Date: Tue, 01 Sep 2015 18:57
Date: Tue, 01 Sep 2015 18:57
46 lines
2992 bytes
2992 bytes
>> Does anyone know what these www log records are about? I can't >> seem to block them with iptables. It looks like someone is using >> hex code to try to break in. I was hopeing that a string match on >> "x00" would stop this, but the top record has "x00" and got through >> anyway. >> >> "\xE9Gn\x0F\x89\x9A\x1ET\x16\xB8\x91\xF0\x9A\x >> 1ET\x89\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0 >> 0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ >> x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0 >> 0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 400 >> 172 "-" "-" >> >> "\x96)\x83\x228\xD5\x92j\x14O\x09\x91\xE6\xC7s=8\xB4\x90T-\xC5- >> \x16\xE0\x10\xD6\xDF\xF0\xC1'==\x82k\x1B\xA0\xF0\x9A\xEE\xAC\xC >> 1Q'\xB3P\xBElQ\xEDp\xB1\x18\xEE\xFC\x84}\x95a\xA4\x99M\xC7\x8D\ >> x87\xC5\xE2\xCAk\xF5\xE5\x98\xF7*5\x01$\xD6\xCF\x16nC\xCA\x83\x >> ED\xBBYS$\xD7\xF0)\x966x\x18@\xEF" 400 172 "-" "-" >> >> "\x02%m\xE4V\x89:\x9E\xA1V\xDF\xAB\xFF\x9E\xE9 >> \xC1\xD7;\xE2E\xFA\xDD<\xA7\xE0\x0CC\x8B\xAD\x >> C3Z\xB4\xBE\x80\x8FU\x87\xEC\x1A\xCA+\x02n\xD5 >> \x9B\xE6\x93\x90\x11\x01\xF4t\xDE\xA6\x07@\x98 >> \x14S\xA8\xDE(\xE3\xB8Z\xCF\x9D\xDA)^\xBF\xC7\ >> xB7\xE3\x9B\xE1\x16*)}z\x9CC\xE1$|\xEAc\xBA\x9 >> 5\xE9a$\xB1g\x83a\xE6uy\x9Ak\xE8\x95%\x9D\x13\ >> xD1\xB1\x09\xFA\x05\x14" > > Try this. x00, x16, x89, xF0 seem to be common to some of the > records. "--from 21" should keep you out of the TCP header. If > this works and you get another hex string in the payload, see if > x00, x16, x89, and/or xF0 is in the payload. If one of them is, > then the DROP string isn't working as planned. If the hex > characters are not in the payload, then add one of the hex > characters from that payload in the iptables. > > iptables -A INPUT -p tcp -m multiport --dports 80,443 -m string -- > hex-string "0x00" --algo bm --from 21 --to 300 -j DROP > iptables -A INPUT -p tcp -m multiport --dports 80,443 -m string -- > hex-string "0x16" --algo bm --from 21 --to 300 -j DROP > iptables -A INPUT -p tcp -m multiport --dports 80,443 -m string -- > hex-string "0x89" --algo bm --from 21 --to 300 -j DROP > iptables -A INPUT -p tcp -m multiport --dports 80,443 -m string -- > hex-string "0xF0" --algo bm --from 21 --to 300 -j DROP I would up '--from' 21 to '--from 55'.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads