Update portscan.py
parent
d1d9ba6e36
commit
d8dbcc7eea
|
@ -112,7 +112,7 @@ class Module:
|
||||||
def generate(self):
|
def generate(self):
|
||||||
|
|
||||||
# read in the common module source code
|
# read in the common module source code
|
||||||
moduleSource = self.mainMenu.installPath + "/data/module_source/situational_awareness/Network/Invoke-Portscan.ps1"
|
moduleSource = self.mainMenu.installPath + "/data/module_source/situational_awareness/network/Invoke-Portscan.ps1"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f = open(moduleSource, 'r')
|
f = open(moduleSource, 'r')
|
||||||
|
@ -138,4 +138,4 @@ class Module:
|
||||||
|
|
||||||
script += " | ? {$_.alive}| Select-Object HostName,@{name='OpenPorts';expression={$_.openPorts -join ','}} | ft -wrap | Out-String | %{$_ + \"`n\"}"
|
script += " | ? {$_.alive}| Select-Object HostName,@{name='OpenPorts';expression={$_.openPorts -join ','}} | ft -wrap | Out-String | %{$_ + \"`n\"}"
|
||||||
|
|
||||||
return script
|
return script
|
||||||
|
|
Loading…
Reference in New Issue