Giter Site home page Giter Site logo

Issue running script about warberry HOT 30 CLOSED

secgroundzero avatar secgroundzero commented on August 18, 2024
Issue running script

from warberry.

Comments (30)

jcpolo1 avatar jcpolo1 commented on August 18, 2024

I removed the top part of the file and now I get this.

root@kali:~# python warberry.py
Traceback (most recent call last):
File "warberry.py", line 32, in
from src.utils.info_banners import *
ImportError: No module named src.utils.info_banners

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

It seems that that part of the code is not commented out as it should be.

Pls provide some more indormation if you chanced anything etc

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

I just copied and pasted it straight from the https://github.com/secgroundzero/warberry/blob/master/warberry.py link.

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

Its better if you download the git folder rather that copying and pasting.

I think thats where it went wrong

Sent from my iPhone

On Aug 14, 2016, at 8:03 PM, jcpolo1 [email protected] wrote:

I just copied and pasted it straight from the https://github.com/secgroundzero/warberry/blob/master/warberry.py link.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

Did I not follow the installation directions? I did the

Auto installation of dependencies

sudo bash bootstrap.sh

and I couldn't find it so I just created the files myself via copy paste. What step did I miss?

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

Try with git clone the repo. Did u do that?

Sent from my iPhone

On Aug 14, 2016, at 8:08 PM, jcpolo1 [email protected] wrote:

Did I not follow the installation directions? I did the

Auto installation of dependencies

sudo bash bootstrap.sh

and I couldn't find it so I just created the files myself via copy paste. What step did I miss?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

I didn't see that anywhere in the instructions. was it in the bootstrap install?

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

No.

You first need to clone the repo. So from the command line while on the RPi run sudo git clone https://...

Google the instructions on how to clone a repo as i cannot provide the screenshots from here

Sent from my iPhone

On Aug 14, 2016, at 8:48 PM, jcpolo1 [email protected] wrote:

I didn't see that anywhere in the instructions. was it in the bootstrap install?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

ok, that did it. Its working now but still more errors, I'll try and see if its something I did or what.

root@kali:/home/pi/warberry# sudo python warberry.py -H -I wlan0


| | | |/ _ \ | ___ \ ___ \ | ___ \ ___ \ \ / /
| | | / /
\ | |
/ / |
/ / |__ | |/ / |/ /\ V /
| |/| | _ || /| ___ \ || /| / \ /
\ /\ / | | || |\ | |/ / |
| |\ | |\ \ | |
/ /| |/_| __//| __| _| _/

        TACTICAL EXPLOITATION

v4.0 @sec_groundzero
[email protected]

  [ DHCP SERVICE CHECK MODULE ]

DHCP Service Status... Not Running - Stealth

  [ IP ENUMERATION MODULE ]

[+] Internal IP obtained on wlan0: 192.168.1.193 netmask 255.255.255.0
[!] Could not reach the outside world. Possibly behind a firewall or some kind filtering

  [  SCOPE DEFINITION MODULE ]

Finding live IPs in order to include only those in the scans to minimize footprint

ERROR: --- Error in child 8588
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 35, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument
ERROR:scapy.runtime:--- Error in child 8588
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 35, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument

IP Addresses Found

Traceback (most recent call last):
File "warberry.py", line 279, in
main()
File "warberry.py", line 121, in main
int_ip = iprecon(iface)
File "/home/pi/warberry/src/core/enumeration/ip_enum.py", line 49, in iprecon
scope_definition(ifname, CIDR)
File "/home/pi/warberry/src/core/enumeration/ip_enum.py", line 71, in scope_definition
with open('../Results/live_ips', 'w') as ip_addresses:
IOError: [Errno 2] No such file or directory: '../Results/live_ips'

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

Ok i assume you downloaded all the files and folders correct?

For the first error make sure tcpdump is installed correctly.

For the second error create the ../Results directory manually

Sent from my iPhone

On Aug 14, 2016, at 9:14 PM, jcpolo1 [email protected] wrote:

ok, that did it. Its working now but still more errors, I'll try and see if its something I did or what.

root@kali:/home/pi/warberry# sudo python warberry.py -H -I wlan0

| | | |/ _ \ | ___ \ ___ \ | __ \ ___ \ \ / /
| | | / /\ | |/ / |/ / |_ | |/ / |/ /\ V /
| |/| | _ || /| ___ \ || /| / \ /
\ /\ / | | || |\ | |/ / || |\ | |\ \ | |
/ /_| |/| ___
/___/| __| _| _/

    TACTICAL EXPLOITATION

v4.0 @sec_groundzero
[email protected]

[ DHCP SERVICE CHECK MODULE ]
DHCP Service Status... Not Running - Stealth

[ IP ENUMERATION MODULE ]
[+] Internal IP obtained on wlan0: 192.168.1.193 netmask 255.255.255.0
[!] Could not reach the outside world. Possibly behind a firewall or some kind filtering

[ SCOPE DEFINITION MODULE ]
Finding live IPs in order to include only those in the scans to minimize footprint

ERROR: --- Error in child 8588
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 35, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument
ERROR:scapy.runtime:--- Error in child 8588
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 35, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument

IP Addresses Found

Traceback (most recent call last):
File "warberry.py", line 279, in
main()
File "warberry.py", line 121, in main
int_ip = iprecon(iface)
File "/home/pi/warberry/src/core/enumeration/ip_enum.py", line 49, in iprecon
scope_definition(ifname, CIDR)
File "/home/pi/warberry/src/core/enumeration/ip_enum.py", line 71, in scope_definition
with open('../Results/live_ips', 'w') as ip_addresses:
IOError: [Errno 2] No such file or directory: '../Results/live_ips'


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

I just let the install script run. I assumed it created them all.

root@kali:/home/pi/warberry# sudo bash bootstrap.sh

    STARTING WarBerry INSTALLATION SCRIPT...

CREATING DIRECTORIES...

    PERFORMING BASIC DEPENDENCIES INSTALLATION...

I created the results directory and verified TCP dump is installed and current. still get the same errors

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

Any more suggestions?

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

I would begin with a fresh installation and then install the dependencies manually with the instructions in the wiki.

On Aug 15, 2016, at 8:21 AM, jcpolo1 [email protected] wrote:

Any more suggestions?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

I did a fresh install of ubuntu, then the git, lastly the bootstrap. This is the output.

war@warberry:~/warberry$ sudo python warberry.py -I wlan0


| | | |/ _ \ | ___ \ ___ \ | ___ \ ___ \ \ / /
| | | / /
\ | |
/ / |
/ / |__ | |/ / |/ /\ V /
| |/| | _ || /| ___ \ || /| / \ /
\ /\ / | | || |\ | |/ / |
| |\ | |\ \ | |
/ /| |/_| __//| __| _| _/

        TACTICAL EXPLOITATION

v4.0 @sec_groundzero
[email protected]

  [ DHCP SERVICE CHECK MODULE ]

DHCP Service Status... Not Running - Stealth

  [ IP ENUMERATION MODULE ]

[+] Internal IP obtained on wlan0: 192.168.1.193 netmask 255.255.255.0
[!] Could not reach the outside world. Possibly behind a firewall or some kind filtering

  [  SCOPE DEFINITION MODULE ]

Finding live IPs in order to include only those in the scans to minimize footprint

ERROR: --- Error in child 7104
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 34, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument
ERROR:scapy.runtime:--- Error in child 7104
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 34, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument

IP Addresses Found

192.168.1.1
Traceback (most recent call last):
File "warberry.py", line 279, in
main()
File "warberry.py", line 121, in main
int_ip = iprecon(iface)
File "/home/war/warberry/src/core/enumeration/ip_enum.py", line 49, in iprecon
scope_definition(ifname, CIDR)
File "/home/war/warberry/src/core/enumeration/ip_enum.py", line 71, in scope_definition
with open('../Results/live_ips', 'w') as ip_addresses:
IOError: [Errno 2] No such file or directory: '../Results/live_ips'

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

is the folder Results present? one directory up?

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

Where was the script supposed to create them?

war@warberry:/warberry$ ls
bootstrap.sh README README.md REPORTING SCREENS src warberry.py
war@warberry:
/warberry$ cd ..
war@warberry:~$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos warberry

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

pls follow the installation instructions

https://github.com/secgroundzero/warberry/wiki/Installation

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

I did, I installed the auto version instead of the manual version. Am I supposed to do both?

Auto installation of dependencies

sudo bash bootstrap.sh

Manual Installation of dependencies

Optional: Change the hostname of the RaspberryPi to WarBerry

sudo nano /etc/hosts

sudo nano /etc/hostname

Reboot the WarBerry for the changes to take effect

Optional: Create a directory under /home/pi

sudo mkdir WarBerry

Create the Results subdirectory in /WarBerry

sudo mkdir Results

Download WarBerry by cloning the Git repository:

sudo git clone https://github.com/secgroundzero/warberry.git

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

war@warberry:/$ ls
bin boot dev etc home lib lost+found media mnt opt proc root run sbin snap srv sys tmp usr var
war@warberry:/$ cd home/
war@warberry:/home$ ls
pi war
war@warberry:/home$ cd pi/
war@warberry:/home/pi$ ls
WarBerry
war@warberry:/home/pi$ cd WarBerry/
war@warberry:/home/pi/WarBerry$ ls
Results Tools

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

ok so the folder Results exists. what is the error you are getting now?

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

same as before

ERROR: --- Error in child 20218
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 34, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument
ERROR:scapy.runtime:--- Error in child 20218
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 34, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument

IP Addresses Found

192.168.1.1
Traceback (most recent call last):
File "warberry.py", line 279, in
main()
File "warberry.py", line 121, in main
int_ip = iprecon(iface)
File "/home/war/warberry/src/core/enumeration/ip_enum.py", line 49, in iprecon
scope_definition(ifname, CIDR)
File "/home/war/warberry/src/core/enumeration/ip_enum.py", line 71, in scope_definition
with open('../Results/live_ips', 'w') as ip_addresses:
IOError: [Errno 2] No such file or directory: '../Results/live_ips'

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

there is something wrong with your file structure

the correct structure is /home/pi/WarBerry/warberry

Results and Tools should be under WarBerry

the warberry.py and src modules should be under warberry

whats the ls of WarBerry and the ls of warberry?

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

I'm not sure why it did it like this but I followed the auto install via bootstrap, I didn't do anything manually.

war@warberry:/warberry$ cd /home/pi/
war@warberry:/home/pi$ ls
WarBerry
war@warberry:/home/pi$ cd WarBerry/
war@warberry:/home/pi/WarBerry$ ls
Results Tools
war@warberry:/home/pi/WarBerry$ cd /home/war/warberry/
war@warberry:
/warberry$ ls
bootstrap.sh README README.md REPORTING SCREENS src warberry.py

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

move the entire warberry folder under WarBerry

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

war@warberry:$ sudo mv warberry/ /home/pi/WarBerry/
war@warberry:
$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos
war@warberry:~$ cd /home/pi/WarBerry/
war@warberry:/home/pi/WarBerry$ ls
Results Tools warberry

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

still get errors, but it is actually doing something now...

DHCP Service Status... Not Running - Stealth

  [ IP ENUMERATION MODULE ]

[+] Internal IP obtained on wlan0: 192.168.1.193 netmask 255.255.255.0
[!] Could not reach the outside world. Possibly behind a firewall or some kind filtering

  [  SCOPE DEFINITION MODULE ]

Finding live IPs in order to include only those in the scans to minimize footprint

ERROR: --- Error in child 20519
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 34, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument
ERROR:scapy.runtime:--- Error in child 20519
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 89, in sndrcv
pks.send(p)
File "/usr/lib/python2.7/dist-packages/scapy/supersocket.py", line 34, in send
return self.outs.send(sx)
error: [Errno 22] Invalid argument

IP Addresses Found

  [ IP NETWORK SNIFFING MODULE ]

Sniffer will begin capturing 20 packets
[+] Capture Completed. PCAP File Saved at ../Results/capture.pcap!

  [ PCAP CAPTURE PARSER MODULE ]

[*] Looking for interesting data in /Results/capture.pcap
[-] No interesting data found in the PCAP file

  [ HOSTNAMES ENUMERATION MODULE ]

Current Hostname: warberry

Searching for hostnames in 192.168.1.0/24

[+] Found Hostname: WEBBOX150189704

  [ NAMESERVER ENUMERATION MODULE ]

Doing NBT name scan for addresses from 192.168.1.0/24

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

i cannot replicate your error. just did a fresh install and not getting any errors

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

hmm, it has something to do with scapy, everything else appears to work normally.

I've done 2 fresh installs since I posted the above and I get the same each time. could it be the ubuntu mate os that I'm running?

from warberry.

secgroundzero avatar secgroundzero commented on August 18, 2024

cannot guarantee smooth operation on ubuntu. this was designed for raspbian.

closing the issue

from warberry.

jcpolo1 avatar jcpolo1 commented on August 18, 2024

ok, so I will try on raspbian then, I didn't realize the OS mattered.

from warberry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.