Giter Site home page Giter Site logo

Comments (3)

secgroundzero avatar secgroundzero commented on July 19, 2024

Ok this is an ommission as the script had to check if the file is present first.

Thank you for the bug

Sent from my iPhone

On May 30, 2016, at 7:03 PM, stephenreda [email protected] wrote:

/resources/network_scanners.py

You use the with open to retrieve files. However, in this example, if no service is found on port 80, no webservers80 will be created in Results. This results in a IOError, No such file or directory.
You will have to catch the exception if you want the script to continue.

nm.scan(hosts=CIDR, arguments='-Pn -T4 -p80 --open')
for host in nm.all_hosts():
with open('/home/pi/WarBerry/Results/webservers80', 'a') as webservers80:
print('----------------------------------------------------')
print bcolors.OKGREEN +(' *** Web Server Found : %s via port 80 ***' % (host)) + bcolors.ENDC
webservers80.write('%s\n' %host)


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

from warberry.

secgroundzero avatar secgroundzero commented on July 19, 2024

i cannot replicate this issue.

do you have the same problem with the other services scan?

the file is opened for appending, if not results are found webservers80.write('%s\n' %host) will not write anything.

please provide some more information as from my side it works fine

from warberry.

 avatar commented on July 19, 2024

issue closed, linked pull request was closed, not merged

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.