forked from EmpireProject/Empire
-
-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #400 from BC-SECURITY/dev
Empire 3.6.1 Release
- Loading branch information
Showing
40 changed files
with
1,962 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
name: Wiki Sync | ||
jobs: | ||
update-wiki: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Sync Wiki | ||
uses: joeizzard/action-wiki-sync@master | ||
with: | ||
username: Cx01N | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
wiki_folder: wiki | ||
commit_username: 'Cx01N' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.6.0 | ||
3.6.1 |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
* [User Login](#User-Login) | ||
* [User Logout](#User-Logout) | ||
* [Restart the RESTful API Server](#restart-the-restful-api-server) | ||
* [Shutdown the RESTful API Server](#shutdown-the-restful-api-server) | ||
|
||
## User Login | ||
|
||
### Handler | ||
|
||
* **Handler** : POST /api/admin/login | ||
* Description : Retrieves the API token given the correct username and password. | ||
* No parameters | ||
|
||
### Example | ||
|
||
**Request**: | ||
```bash | ||
curl --insecure -i -H "Content-Type: application/json" https://localhost:1337/api/admin/login -X POST -d '{"username":"empireadmin", "password":"Password123!"}' | ||
``` | ||
|
||
**Response**: | ||
```json | ||
{ | ||
"token": "ks23jlvdki4fj1j23w39h0h0xcuwjrqilocxd6b5" | ||
} | ||
``` | ||
## User Logout | ||
|
||
### Handler | ||
|
||
* **Handler** : POST /api/admin/logout | ||
* Description : Logs out of current user account. | ||
* No parameters | ||
|
||
### Example | ||
|
||
**Request**: | ||
```bash | ||
curl --insecure -i -H "Content-Type: application/json" https://localhost:1337/api/admin/logout -X POST | ||
``` | ||
|
||
**Response**: | ||
```json | ||
{ | ||
"success": "True" | ||
} | ||
``` | ||
## Restart the RESTful API Server | ||
|
||
### Handler | ||
|
||
* **Handler** : GET /api/restart | ||
* Description : Restarts the RESTful API server. | ||
* No parameters | ||
|
||
### Example | ||
|
||
**Request**: | ||
```bash | ||
curl --insecure -i https://localhost:1337/api/admin/restart?token=ks23jlvdki4fj1j23w39h0h0xcuwjrqilocxd6b5 | ||
``` | ||
|
||
**Response**: | ||
```json | ||
{ | ||
"success": true | ||
} | ||
``` | ||
|
||
## Shutdown the RESTful API Server | ||
|
||
### Handler | ||
|
||
* **Handler** : GET /api/shutdown | ||
* Description : Shutdown the RESTful API server. | ||
* No parameters | ||
|
||
### Example | ||
|
||
**Request**: | ||
```bash | ||
curl --insecure -i https://localhost:1337/api/admin/shutdown?token=ks23jlvdki4fj1j23w39h0h0xcuwjrqilocxd6b5 | ||
``` | ||
|
||
**Response**: | ||
```json | ||
{ | ||
"success": true | ||
} | ||
``` |
Oops, something went wrong.