lnxg33k / webhandler

Bash simulator to control a server using PHP system functions.
GNU General Public License v3.0
102 stars 32 forks source link

Bug: @enum network causes crash #8

Closed infodox closed 11 years ago

infodox commented 11 years ago

See stacktrace

""" www-data@192.168.1.52:~(/var/www):$ @enum network Traceback (most recent call last): File "./webhandler.py", line 81, in commander.BackConnect() # Call BackConnect method to handle input File "/home/infodox/tools/webhandler/core/libs/executer.py", line 67, in BackConnect self.commandscommand_list[0] File "/home/infodox/tools/webhandler/core/libs/executer.py", line 216, in enum enumerate.ip() File "/home/infodox/tools/webhandler/modules/enumerate.py", line 128, in ip output += '[+] DHCP?: {0}'.format(ip[4]) IndexError: list index out of range """

Hopefully github doesnt fuck that up... If it does, heres the pastebin: http://pastebin.com/zh3K1iap

Only most recent git (post addition of TOR) causes this crash, worked fine yesterday against the same target (a VM on my LAN).

infodox commented 11 years ago

@enum seems to cause crash with "os" also.

www-data@192.168.1.52:~(/var/www):$ @enum os Traceback (most recent call last): File "./webhandler.py", line 81, in commander.BackConnect() # Call BackConnect method to handle input File "/home/infodox/tools/webhandler/core/libs/executer.py", line 67, in BackConnect self.commandscommand_list[0] File "/home/infodox/tools/webhandler/core/libs/executer.py", line 218, in enum enumerate.os() File "/home/infodox/tools/webhandler/modules/enumerate.py", line 149, in os output += '[+] Language: {0}'.format(os[5]) IndexError: list index out of range

lnxg33k commented 11 years ago

The issue was in the indexing, I've used iter() instead of slicing the list. If you faced issues similar to this one, please report it. Thanks @infodox