Skip to content

Commit

Permalink
Merge pull request #37 from InfamousSYN/develop
Browse files Browse the repository at this point in the history
added start and stop terminal logging
  • Loading branch information
InfamousSYN authored Jun 30, 2022
2 parents ba4edda + 72759fa commit 252949f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse

# application version
__version__ = "3.0.2"
__version__ = "3.0.3"

# application site
__location__ = "https://rogue.infamoussyn.com/"
Expand Down Expand Up @@ -79,6 +79,7 @@

# freeradius-wpe settings
freeradius_dir = "/usr/sbin"
#freeradius_bin = freeradius_dir + "/freeradius-wpe"
freeradius_bin = freeradius_dir + "/freeradius-wpe"
freeradius_log = logdir + "/freeradius-wpe.log"
freeradius_working_dir = "/etc/freeradius-wpe/3.0"
Expand Down
6 changes: 6 additions & 0 deletions rogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ def dhcpCidr(dhcp_netmask):
print("[!] Interface {} does not exist, {}".format(options['interface'], e))
exit(1)

from datetime import datetime
starttime=datetime.now()
print("[-] Launching rogue at: {}".format(starttime))
try:
utils.nmcli.set_unmanaged(options['interface'])

Expand Down Expand Up @@ -531,5 +534,8 @@ def dhcpCidr(dhcp_netmask):
exit(0)

rogueClass.rogue_shutdown(options)
endtime=datetime.now()
print("[-] Ending rogue at: {}".format(endtime))
print("[-] Rogue Duration: {} seconds".format((endtime-starttime).seconds))

exit(0)

0 comments on commit 252949f

Please sign in to comment.