Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,27 @@ def handleServiceNameAction(self, targets, actions, action, restoring=True):
command = str(self.settings.portActions[srvc_num][2])
command = command.replace('[IP]', ip[0]).replace('[PORT]', ip[1]).replace('[OUTPUT]', outputfile)

if '[INPUT_USERNAME]' in command:
username, ok = QtGui.QInputDialog.getText(self.view.ui.centralwidget, 'Username', 'Enter username (or leave blank for null)')
if ok:
command = command.replace('[INPUT_USERNAME]', username)
else:
return

if '[INPUT_PASSWORD]' in command:
password, ok = QInputDialog.getText(self.view.ui.centralwidget, 'Password', 'Enter password (or leave blank for null)')
if ok:
command = command.replace('[INPUT_PASSWORD]', password)
else:
return

if '[INPUT_DOMAIN]' in command:
domain, ok = QInputDialog.getText(self.view.ui.centralwidget, 'Domain', 'Enter domain (or leave blank for null)')
if ok:
command = command.replace('[INPUT_DOMAIN]', domain)
else:
return

if 'nmap' in command and ip[2] == 'udp':
command=command.replace("-sV","-sVU")

Expand Down