Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consolidate bofbelt object location #27

Merged
merged 1 commit into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
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
Binary file removed Bofbelt/ObjectFiles/dir.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/dir.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/enumlocalsessions.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/enumlocalsessions.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/env.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/env.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/ipconfig.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/ipconfig.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/ldapsearch.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/ldapsearch.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/netuserenum.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/netuserenum.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/reg_query.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/reg_query.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/tasklist.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/tasklist.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/uptime.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/uptime.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/whoami.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/whoami.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/windowlist.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/windowlist.x86.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/wmi_query.x64.o
Binary file not shown.
Binary file removed Bofbelt/ObjectFiles/wmi_query.x86.o
Binary file not shown.
24 changes: 12 additions & 12 deletions Bofbelt/bofbelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ def ipconfig_with_callback( demonID, callback, *params ):
demon : Demon = None
demon = Demon( demonID )

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/ipconfig.{demon.ProcessArch}.o", b'' )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/ipconfig.{demon.ProcessArch}.o", b'' )

def uptime_with_callback( demonID, callback, *params ):
demon : Demon = None
demon = Demon( demonID )

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/uptime.{demon.ProcessArch}.o", b'' )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/uptime.{demon.ProcessArch}.o", b'' )

def whoami_with_callback( demonID, callback, *params ):
demon : Demon = None
demon = Demon( demonID )

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/whoami.{demon.ProcessArch}.o", b'' )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/whoami.{demon.ProcessArch}.o", b'' )

def windowlist_with_callback( demonID, callback, *params ):
demon : Demon = None
demon = Demon( demonID )

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/windowlist.{demon.ProcessArch}.o", b'' )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/windowlist.{demon.ProcessArch}.o", b'' )

def reg_query_parse_params( demon, params ):
packer = Packer()
Expand Down Expand Up @@ -89,7 +89,7 @@ def reg_query_with_callback( demonID, callback, *params ):
if packed_params is None:
return False

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/reg_query.{demon.ProcessArch}.o", packed_params )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/reg_query.{demon.ProcessArch}.o", packed_params )

def wmi_query_parse_params( demon, params ):
packer = Packer()
Expand Down Expand Up @@ -133,13 +133,13 @@ def wmi_query_with_callback( demonID, callback, *params ):
if packed_params is None:
return False

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/wmi_query.{demon.ProcessArch}.o", packed_params )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/wmi_query.{demon.ProcessArch}.o", packed_params )

def env_with_callback( demonID, callback, *params ):
demon : Demon = None
demon = Demon( demonID )

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/env.{demon.ProcessArch}.o", b'' )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/env.{demon.ProcessArch}.o", b'' )

def enumlocalsessions_with_callback( demonID, callback, *params ):
demon : Demon = None
Expand All @@ -151,7 +151,7 @@ def enumlocalsessions_with_callback( demonID, callback, *params ):
demon.ConsoleWrite( demon.CONSOLE_ERROR, "Too many parameters" )
return False

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/enumlocalsessions.{demon.ProcessArch}.o", b'' )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/enumlocalsessions.{demon.ProcessArch}.o", b'' )

def userenum_parse_parans( demon, params ):
packer = Packer()
Expand Down Expand Up @@ -189,7 +189,7 @@ def userenum_with_callback( demonID, callback, *params ):
if packed_params is None:
return False

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/netuserenum.{demon.ProcessArch}.o", packed_params )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/netuserenum.{demon.ProcessArch}.o", packed_params )

def bofdir_parse_params( demon, params ):
packer = Packer()
Expand Down Expand Up @@ -228,7 +228,7 @@ def bofdir( demonID, *params ):

TaskID = demon.ConsoleWrite( demon.CONSOLE_TASK, f"Tasked demon to list a directory" )

demon.InlineExecute( TaskID, "go", f"ObjectFiles/dir.{demon.ProcessArch}.o", packed_params, False )
demon.InlineExecute( TaskID, "go", f"../SituationalAwareness/ObjectFiles/dir.{demon.ProcessArch}.o", packed_params, False )

return TaskID

Expand All @@ -240,7 +240,7 @@ def bofdir_with_callback( demonID, callback, *params ):
if packed_params is None:
return False

return demon.InlineExecuteGetOutput( callback, "go", f"ObjectFiles/dir.{demon.ProcessArch}.o", packed_params )
return demon.InlineExecuteGetOutput( callback, "go", f"../SituationalAwareness/ObjectFiles/dir.{demon.ProcessArch}.o", packed_params )

def tasklist_parse_params( demon, params ):
packer = Packer()
Expand Down Expand Up @@ -270,7 +270,7 @@ def tasklist( demonID, *params ):

TaskID = demon.ConsoleWrite( demon.CONSOLE_TASK, f"Tasked demon list running processes" )

demon.InlineExecute( TaskID, "go", f"ObjectFiles/tasklist.{demon.ProcessArch}.o", packed_params, False )
demon.InlineExecute( TaskID, "go", f"../SituationalAwareness/ObjectFiles/tasklist.{demon.ProcessArch}.o", packed_params, False )

return TaskID

Expand Down
Loading