DanMcInerney / net-creds

Sniffs sensitive data from interface or pcap
GNU General Public License v3.0
1.65k stars 432 forks source link

Import error of geteuid, devnull #17

Closed ghost closed 6 years ago

ghost commented 8 years ago

Import error of geteuid, devnull from os library capture

DanMcInerney commented 8 years ago

What version of python are you using? I thought os was a standard library. This is meant to run on 2.7.

DavidHaintz commented 3 years ago

Same problem here. Tried versions: 2.7.18 3.9.1 (with print-call correction)

Both on windows.

How to reproduce? Install newest python version and run it. Looks like it's not available for windows.

My workaround: Uncomment following lines:

3 from os import geteuid, devnull

39 DN = open("log.txt", 'w')

986 if geteuid():

987 exit('[-] Please run as root')