mirror of
https://github.com/DanMcInerney/LANs.py.git
synced 2025-07-06 04:52:18 -07:00
Changed location where logs opened
So as to fix bug where files were opened prior to checking if you have root.
This commit is contained in:
parent
ec04312cb1
commit
add164236c
1 changed files with 2 additions and 2 deletions
4
LANs.py
4
LANs.py
|
@ -153,8 +153,6 @@ C = '\033[36m' # cyan
|
|||
GR = '\033[37m' # gray
|
||||
T = '\033[93m' # tan
|
||||
|
||||
logger = open('LANspy.log.txt', 'w+')
|
||||
DN = open(os.devnull, 'w')
|
||||
#############################
|
||||
##### Start LANs.py Code####
|
||||
############################
|
||||
|
@ -1589,6 +1587,8 @@ def stop(signal, frame):
|
|||
if __name__ == "__main__":
|
||||
if not os.geteuid() == 0:
|
||||
exit("\nPlease run as root\n")
|
||||
logger = open('LANspy.log.txt', 'w+')
|
||||
DN = open(os.devnull, 'w')
|
||||
args = parse_args()
|
||||
if args.pcap:
|
||||
pcap_handler(args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue