Toolkit for easilly building Metasploit-like framework consoles
Project description
SploitKit
This toolkit is aimed to easilly build framework consoles in a Metasploit-like style. It provides a comprehensive interface to define CLI commands, modules and models for its storage database.
Quick Start
Setup
pip install sploitkit
Create a project
$ sploitkit-new my-sploit
$ cd my-sploit
$ gedit main.py
Usage
From this point, main.py has the following code:
#!/usr/bin/python3
from sploitkit import FrameworkConsole
class MySploitConsole(FrameworkConsole):
# set your console items here
pass
if __name__ == '__main__':
MySploitConsole(
"MySploit",
# configure your console settings here
).start()
And you can run it from the terminal:
Base features
Sploitkit provides a base set of entities (consoles, commands, modules, models).
Multiple base console levels already exist (for detailed descriptions, see the console section):
FrameworkConsole: the root console, started throughmain.pyProjectConsole: the project console, for limiting the workspace to a single project, invoked through theselect [project]commandModuleConsole: the module console, started when a module is invoked through theuse [module]command
This framework provides more than 20 base commands, distributed in sets of functionalities (for detailed descriptions, see the command section):
- general: commands for every level (e.g.
help,show,set) - module: base module-level commands (e.g.
use,run,show) - project: base project-level commands (e.g.
select,load,archive) - recording: recording commands, for managing
.rcfiles (record,replay) - root: base root-level commands (
help) - utils: utility commands (
shell,pydbg,memory)
It also holds some base models for its storage:
- users: for user-related data (
User,Email,Password) - systems: for system-related data (
Host,Port,Service) - organization: for organization-related data (
Organization,Unit,Employee) - notes: for linking notes to users, hosts or organizations
No module is provided with the framework as it is case-specific.
Customization
Sploitkit defines multiple types of entities for various purposes. The following entities can be subclassed:
Console: a new console for a new level of interaction (e.g.ProjectConsole) ; the "root" level is owned by theFrameworkConsole,Consoleshall be used to create new subconsoles, to be called by commands from the root console (see an example here for the module-level commands withModuleConsole(Console)andUse(Command))Command: a new command associated with any or defined consoles using thelevelattributeModule: a new module associated to a consoleModel,BaseModel,StoreExtension: respectively for new models, their association tables and store additional methods (e.g.User(Model),Email(Model),UserEmail(BaseModel),UsersStorage(StoreExtension))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sploitkit-0.3.1.tar.gz.
File metadata
- Download URL: sploitkit-0.3.1.tar.gz
- Upload date:
- Size: 62.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/2.7.15+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91015c5992883599510b070cf73d7e206e11f12715900d9b5bd87ccfececebb9
|
|
| MD5 |
db6442d44accc90096ab4b17434e8590
|
|
| BLAKE2b-256 |
7c1c1edc1c34a4bc7e5f34a715b75d2b846638811d019eed89b96a5569905270
|