0xsauby / yasuo

A ruby script that scans for vulnerable & exploitable 3rd-party web applications on a network
GNU General Public License v3.0
569 stars 139 forks source link

Windows do not have /dev/null #16

Closed fuuddanni closed 8 years ago

fuuddanni commented 9 years ago

I, [2015-05-29T19:42:13.741321 #272] INFO -- : Initiating port scan C:/Users/Besitzer/Documents/GitHub/yasuo/yasuo.rb:119:in `reopen': No such file or directory - /dev/null (Errno::ENOENT)

    from C:/Users/Besitzer/Documents/GitHub/yasuo/yasuo.rb:119:in `nmap_scan'
    from C:/Users/Besitzer/Documents/GitHub/yasuo/yasuo.rb:104:in `run'
    from C:/Users/Besitzer/Documents/GitHub/yasuo/yasuo.rb:574:in `<main>'

C:\Users\Besitzer\Documents\GitHub\yasuo>

Is is possible to port this script in windows?

0xsauby commented 9 years ago

Hey, we've tested it extensively on *nix systems but not on windows. I can look into porting it to windows but it'll take a while. In the meantime, you can install and run it on Kali Linux VM.

fuuddanni commented 9 years ago

That sounds good. Thanks a lot for your attention. I´ll run your script in Kali too.

KINGSABRI commented 9 years ago

Hi you can use a temp file instead of /dev/null then delete it(if you want).

$stdout.reopen("tmp.log", "w")
File.delete "tmp.log"
0xsauby commented 8 years ago

I don't think I'd have time anytime soon to work on a windows build.