Commit Graph

34 Commits (18829ba867813bb21689af520554034f111befbf)

Author SHA1 Message Date
HarmJ0y 26cd0089dd 2.0.0 beta, DerbyCon release 2016-09-23 14:04:35 -04:00
HarmJ0y fa2700b9b9 fix for issue #300 2016-08-11 17:01:10 -04:00
Christopher Jones bd72328bb3 Cast port from string to int when starting REST service
The REST API won’t start due to a bug:

./empire --rest --username "emp" --password "emp"

[*] Loading modules from: /mnt/hgfs/cjones/Empire/lib/modules/

Starting Empire RESTful API on port: 1337
RESTful API token: 2bjmeuwa6pr6yy4x0n88rauyyl1nve7cekdgkefh Traceback
(most recent call last): File "/usr/lib/python2.7/logging/init.py",
line 853, in emit msg = self.format(record) File
"/usr/lib/python2.7/logging/init.py", line 726, in format return
fmt.format(record) File "/usr/lib/python2.7/logging/init.py", line 465,
in format record.message = record.getMessage() File
"/usr/lib/python2.7/logging/init.py", line 329, in getMessage msg = msg
% self.args TypeError: %d format: a number is required, not str Logged
from file _internal.py, line 87
After casting the port from a string to an int, the REST service works.
2016-05-28 08:28:35 -04:00
Harmj0y 501ece8762 removed debug line 2016-05-27 13:43:32 -04:00
HarmJ0y 102c09b5d4 Merge pull request #227 from tristandostaler/master
adding the /api/map endpoint to retreive all endpoint possible
2016-05-27 10:40:05 -07:00
Tristan Dostaler 92b9d4d09e adding the /api/map endpoint to retreive all endpoint possible 2016-05-18 18:23:02 -04:00
Harmj0y 37f129fe81 tightened up argparse validation 2016-05-02 18:13:38 -04:00
Harmj0y 5e87f7d417 Changed 403 respones to 401s in RESTful API 2016-04-03 23:15:57 -04:00
Harmj0y b56e5d29ec listener starting now returns more verbose errors on failure in console and API
merge of @mynameisiv's .jpg screenshot PR
fix for path errors in some cases for ./setup/setup_database.py
2016-04-01 17:06:21 -04:00
Harmj0y 9e4e570a56 changed error responses to 400s 2016-03-30 21:58:00 -04:00
Harmj0y 739a45c8cd Added several POST /api/modules/search/* API calls to search modules
with a variety of methods.
2016-03-30 16:43:38 -04:00
Harmj0y 259390dbee fixed API tasking modules to 'all' agents 2016-03-26 21:13:51 -04:00
Harmj0y b3e8ebabe5 Expanded server/agent epoch check from +/- 10 minutes to +/- 12 hours 2016-03-26 00:00:40 -04:00
Harmj0y cd19fd4c66 Agged GET /api/creds to API 2016-03-25 23:49:16 -04:00
Harmj0y 5cb90f48e1 Changed agent tasking structure for API
POST /api/agents/<string:agent_name>/shell now tasks an agent to execute a shell command
POST /api/agents/<string:agent_name>/rename now renames an agent
GET/POST /api/agents/<string:agent_name>/clear now clears an agent task buffer
GET/POST /api/agents/<string:agent_name>/kill now kills an agent
DELETE /api/agents/<string:agent_name>/results now clears agent result buffer
2016-03-25 23:35:03 -04:00
Harmj0y 16fbd88339 For stagers generated through the API, if 'OutFile' is set in the
passed arguments, the 'Output' field in stager data return will
contain the base64 encoded value of the generated stager data.
2016-03-24 22:24:01 -04:00
Harmj0y 72f252f1cd fix for GET /api/config 2016-03-24 20:15:19 -04:00
Harmj0y 40cbdd048f Modification of JSON output format for several API functions. 2016-03-24 18:21:35 -04:00
Harmj0y 2790f1226d Changed specific API results to 404s. 2016-03-24 17:05:08 -04:00
Harmj0y db64c1e987 Added /api/admin/restart to restart RESTful API and/or Empire instance. 2016-03-24 16:50:54 -04:00
Harmj0y b43da089ef Added POST /api/modules/<path:module_name> to task a module with specified options
Fix multi-stager generation bug
More exception handling in empire.py
2016-03-24 16:03:31 -04:00
Harmj0y 31eb9d387a Changed API path from /empire/api/ to /api/
Fixed agent renaming bug
2016-03-23 14:30:54 -04:00
Harmj0y f2ad5da09c Cleaned up agent tasking in API
/empire/api/agents/all/results now returns all agent results
2016-03-22 21:23:47 -04:00
Harmj0y 7c142151a8 'result' -> 'success' 2016-03-22 20:03:18 -04:00
Harmj0y 356f3ea74b Added /empire/api/agents/stale to the API to retrieve stale agents. 2016-03-22 19:46:35 -04:00
Harmj0y 894fe44700 Added /empire/api/admin/login to retrieve the current server token for auth
The api username defaults to 'empireadmin' and the password is randomly generated and stored in empire.db
The username/password can be modified with the ./empire --username X --password Y flags
2016-03-22 19:28:23 -04:00
Harmj0y f85fbf7079 Moved empire-rest to empire
Added new ./empire options: --rest to run just the RESTful API, --headless to run the RESTful API and a full Empire instance
Added /empire/api/admin/shutdown to API to shut the server down
Added proper shutdown functionality
Added hooks for CTRL+C to shut everything down gracefully
2016-03-22 17:06:18 -04:00
Harmj0y 83cab0fae6 fixed headless termination 2016-03-21 20:28:05 -04:00
Harmj0y c15f445892 Revamp of some of the backend to allow for a proper RESTful API
Cleaned up some SQL calls
Moved tasking/results into database fields for agents, instead of being kept in memory on the client
Added --headless option to ./empire
2016-03-21 20:20:03 -04:00
Harmj0y 3b0003f0ce '--debug 2' now prints all debug signal output to the script as well as ./empire.debug 2016-02-17 20:06:33 -05:00
Harmj0y b0d90be6fe Updated changelog and version number. Added '--version' cli option. 2016-02-16 02:27:37 -05:00
Harmj0y 473be51acd Changed '--listeners' option to '--listener' 2016-02-16 02:02:18 -05:00
Harmj0y 734831b5fb Added a start to cli option parsing for displaying listeners/stagers and generating stagers. 2016-02-16 01:52:32 -05:00
Harmj0y 751d0c15d6 Initial BSidesLV '15 release of v1.0.0 2015-08-05 14:36:39 -04:00