4 responses

  1. LinuxSytesNet
    August 21, 2013

    The script has indents in every single line at the beginning, also ‘os’ is imported but I can’t see where you specified it to be used. Also indents below “def” must contain 4 spaces, not 8 or 10 (except in the case of more if,else or elif

    • Ambition
      August 21, 2013

      I run the script and it works fine for me. I don’t understand what it the problem with the os module, i imported it because i will add more features to the script. Who told you that it must contain 4 spaces , not 8 or 10? As long as code is indented properly it does not matter. This article is about python, not about nmap. Doing nmap -sV -O -PN does not teach you anything :) It is very high level.


  2. LinuxSytesNet
    August 21, 2013

    The os module is imported but it is not used. Instead explaining why you should indent your code with 4 spaces (additional 4 spaces for each block), I rather recommend you to download an Python IDE called: NINJA-IDE to find your errors which are displayed in real time without the necessity from running your code. Also don’t say it’s indented properly because it is not. I do started learning Python and understand some things, these days will post contribution to a python static website generator in my website (my whole website is driven by python).

    Edit: This is a copy and paste of your code in NINJA-IDE:

    Once I indent every single line properly it displays that ‘os’ module is imported but it is not used.

  3. waste
    November 20, 2013

    Seems to be borrowed from ‘Violent Python’ Book

Leave a Reply




Back to top
mobile desktop