NetExec/nxc/protocols/wmi/db_navigator.py

18 lines
557 B
Python
Raw Normal View History

2023-01-31 20:20:47 +00:00
#!/usr/bin/env python3
from nxc.nxcdb import DatabaseNavigator, print_help
2023-01-31 20:20:47 +00:00
class navigator(DatabaseNavigator):
def do_clear_database(self, line):
2023-05-08 18:39:36 +00:00
if input("This will destroy all data in the current database, are you SURE you want to run this? (y/n): ") == "y":
self.db.clear_database()
def help_clear_database(self):
help_string = """
clear_database
THIS COMPLETELY DESTROYS ALL DATA IN THE CURRENTLY CONNECTED DATABASE
YOU CANNOT UNDO THIS COMMAND
"""
2023-05-02 15:17:59 +00:00
print_help(help_string)