pinatex / subterfuge

Automatically exported from code.google.com/p/subterfuge
GNU General Public License v3.0
0 stars 0 forks source link

IndexError: list index out of range #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Checkout code from svn
2. run with "sudo python manage.py runserver"
3. Access at browser and click "Start"

What is the expected output? What do you see instead?
Listing the captured data.

What version of the product are you using? On what operating system?
Debian Testing (Wheezy), Python 2.7.3rc2, 

Please provide any additional information below.
The return of command "ifconfig" is:

wlan0     Link encap:Ethernet  Endereço de HW 00:0d:f0:93:64:4b  
          inet end.: 192.168.25.2  Bcast:192.168.25.255  Masc:255.255.255.0
          endereço inet6: fe80::20d:f0ff:fe93:644b/64 Escopo:Link
          UP BROADCASTRUNNING MULTICAST  MTU:1500  Métrica:1
          RX packets:70350 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53774 errors:0 dropped:0 overruns:0 carrier:0
          colisões:0 txqueuelen:1000 
          RX bytes:78214713 (74.5 MiB)  TX bytes:8870728 (8.4 MiB)

The return of subterfuge log is:

Starting Pwn Ops...
Running AutoPwn Method...
No default gw on eth0
No default gw on wlan0
Traceback (most recent call last):
  File "/home/user/Desenvolvimento/subterfuge/attackctrl.py", line 157, in <module>
    attack(sys.argv[1])
  File "/home/user/Desenvolvimento/subterfuge/attackctrl.py", line 21, in attack
    autoconfig()
  File "/home/user/Desenvolvimento/subterfuge/attackctrl.py", line 134, in autoconfig
    ipaddress = re.findall(r'\d*.\d*.\d*.\d*', temp)[0]
IndexError: list index out of range
[30/Aug/2012 20:34:47] "GET / HTTP/1.1" 200 438

Original issue reported on code.google.com by sergio.b...@gmail.com on 31 Aug 2012 at 1:45

GoogleCodeExporter commented 8 years ago
I have the exact same Problem.

Original comment by neoli...@gmail.com on 9 Sep 2012 at 9:25

GoogleCodeExporter commented 8 years ago
This error was caused by an uncaught exception due to a user failing to have an 
IP on an interface. The issue should be fixed by revision 83.

Original comment by Mtoussain@gmail.com on 17 Mar 2013 at 12:04

GoogleCodeExporter commented 8 years ago
I've had the same issue due to an non English terminal (German). So ifconfig 
returns ip Adresse instead of ip addr.
Either change attackctrl.py or better install english os

Original comment by ueli.leu...@gmail.com on 27 Jan 2014 at 4:37