forked from Amulab/CAudit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. 添加exploit插件,已完成1/7
- Loading branch information
2867a0
committed
Apr 13, 2023
1 parent
4cb3b63
commit 46672ac
Showing
27 changed files
with
1,756 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from copy import copy | ||
|
||
from plugins.AD import PluginADScanBase | ||
from utils.consts import AllPluginTypes | ||
|
||
|
||
class PluginADXXX(PluginADScanBase): | ||
""" | ||
""" | ||
|
||
display = "" | ||
alias = "" | ||
p_type = AllPluginTypes.Scan | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
|
||
def run_script(self, args) -> dict: | ||
result = copy(self.result) | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import argparse | ||
from copy import copy | ||
|
||
from plugins.AD import PluginAdExploitBase | ||
from utils.consts import AllPluginTypes | ||
|
||
|
||
class PluginADLdapInformation(PluginAdExploitBase): | ||
""" | ||
LDAP信息收集 | ||
""" | ||
|
||
display = "LDAP信息收集" | ||
alias = "ldap_inf" | ||
p_type = AllPluginTypes.Exploit | ||
|
||
def __init__(self): | ||
super().__init__() | ||
|
||
def reg_argument(self, parser: argparse.ArgumentParser): | ||
parser.add_argument("--", help="", dest="") | ||
parser.add_argument("--", help="", | ||
dest="") | ||
|
||
def run_script(self, args) -> dict: | ||
""" | ||
脚本入口函数 | ||
:return: bool | ||
""" | ||
result = copy(self.result) | ||
# TODO | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import argparse | ||
from copy import copy | ||
|
||
from plugins.AD import PluginAdExploitBase | ||
from utils.consts import AllPluginTypes | ||
|
||
|
||
class PluginADNetBiosInformation(PluginAdExploitBase): | ||
""" | ||
netbios 协议探测 | ||
""" | ||
|
||
display = "netbios 协议探测" | ||
alias = "ntbs_inf" | ||
p_type = AllPluginTypes.Exploit | ||
|
||
def __init__(self): | ||
super().__init__() | ||
|
||
def reg_argument(self, parser: argparse.ArgumentParser): | ||
parser.add_argument("--", help="", dest="") | ||
parser.add_argument("--", help="", | ||
dest="") | ||
|
||
def run_script(self, args) -> dict: | ||
""" | ||
脚本入口函数 | ||
:return: bool | ||
""" | ||
result = copy(self.result) | ||
# TODO | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import argparse | ||
from copy import copy | ||
|
||
from plugins.AD import PluginAdExploitBase | ||
from utils.consts import AllPluginTypes | ||
|
||
|
||
class PluginADPsLogonInformation(PluginAdExploitBase): | ||
""" | ||
Pslogon信息收集 | ||
""" | ||
|
||
display = "Pslogon信息收集" | ||
alias = "pslg_info" | ||
p_type = AllPluginTypes.Exploit | ||
|
||
def __init__(self): | ||
super().__init__() | ||
|
||
def reg_argument(self, parser: argparse.ArgumentParser): | ||
parser.add_argument("--", help="", dest="") | ||
parser.add_argument("--", help="", | ||
dest="") | ||
|
||
def run_script(self, args) -> dict: | ||
""" | ||
脚本入口函数 | ||
:return: bool | ||
""" | ||
result = copy(self.result) | ||
# TODO | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import argparse | ||
from copy import copy | ||
|
||
from plugins.AD import PluginAdExploitBase | ||
from utils.consts import AllPluginTypes | ||
|
||
|
||
class PluginADSAMRInformation(PluginAdExploitBase): | ||
""" | ||
SAMR信息探测 | ||
""" | ||
|
||
display = "SAMR信息探测" | ||
alias = "samr_info" | ||
p_type = AllPluginTypes.Exploit | ||
|
||
def __init__(self): | ||
super().__init__() | ||
|
||
def reg_argument(self, parser: argparse.ArgumentParser): | ||
parser.add_argument("--", help="", dest="") | ||
parser.add_argument("--", help="", | ||
dest="") | ||
|
||
def run_script(self, args) -> dict: | ||
""" | ||
脚本入口函数 | ||
:return: bool | ||
""" | ||
result = copy(self.result) | ||
# TODO | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import argparse | ||
from copy import copy | ||
|
||
from plugins.AD import PluginAdExploitBase | ||
from utils.consts import AllPluginTypes | ||
|
||
|
||
class PluginADSpnScan(PluginAdExploitBase): | ||
""" | ||
spn 扫描 | ||
""" | ||
|
||
display = "spn扫描" | ||
alias = "spn_inf" | ||
p_type = AllPluginTypes.Exploit | ||
|
||
def __init__(self): | ||
super().__init__() | ||
|
||
def reg_argument(self, parser: argparse.ArgumentParser): | ||
parser.add_argument("--", help="", dest="") | ||
parser.add_argument("--", help="", | ||
dest="") | ||
|
||
def run_script(self, args) -> dict: | ||
""" | ||
脚本入口函数 | ||
:return: bool | ||
""" | ||
result = copy(self.result) | ||
# TODO | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import argparse | ||
from copy import copy | ||
|
||
from plugins.AD import PluginAdExploitBase | ||
from utils.consts import AllPluginTypes | ||
|
||
|
||
class PluginADAdiDNSDump(PluginAdExploitBase): | ||
""" | ||
AdiDNSDump信息探测 | ||
""" | ||
|
||
display = "AdiDNSDump信息探测" | ||
alias = "adi_dns_dmp" | ||
p_type = AllPluginTypes.Exploit | ||
|
||
def __init__(self): | ||
super().__init__() | ||
|
||
def reg_argument(self, parser: argparse.ArgumentParser): | ||
parser.description= "AdiDNSDump信息探测" | ||
parser.add_argument("--", help="", dest="") | ||
parser.add_argument("--", help="", | ||
dest="") | ||
|
||
def run_script(self, args) -> dict: | ||
""" | ||
脚本入口函数 | ||
:return: bool | ||
""" | ||
result = copy(self.result) | ||
# TODO | ||
return result |
Oops, something went wrong.