InfamousSYN / rogue

An extensible toolkit providing penetration testers an easy-to-use platform to deploy Access Points during penetration testing and red team engagements.

Home Page:https://the-rogue-toolkit.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Certificate artifact existence exception not raised

InfamousSYN opened this issue · comments

If a file is not located, an exception is meant to be raised to alert the user to run --cert-wizard and exit cleanly. Currently the check silently fails and continues.

rogue/rogue.py

Lines 120 to 137 in 3b2bd79

elif(options['auth'] == 'wpa-enterprise'):
import os
try:
print('[-] Checking required RADIUS certificate files exist...')
if(not os.path.isfile(config.server_pem)):
print('[!] \'{}\' does not exist!'.format(config.server_pem))
if(not os.path.isfile(config.private_key)):
print('[!] \'{}\' does not exist!'.format(config.private_key))
if(not os.path.isfile(config.trusted_root_ca_pem)):
print('[!] \'{}\' does not exist!'.format(config.trusted_root_ca_pem))
if(not os.path.isfile(config.dh_file)):
print('[!] \'{}\' does not exist!'.format(config.dh_file))
print('[-] Check RADIUS certificate files exist passed...')
except Exception as e:
print('[!] Run \'sudo python3 rogue.py --cert-wizard\' command to generate the required certificate files')
exit(0)
else:
pass