Compare commits
3 Commits
e8eb9803d8
...
18eaa61dda
Author | SHA1 | Date | |
---|---|---|---|
18eaa61dda | |||
5144bf6c79 | |||
bd5d7a2647 |
16
README.md
16
README.md
@ -6,8 +6,11 @@ This too has several functions:
|
|||||||
|
|
||||||
## To-Do
|
## To-Do
|
||||||
|
|
||||||
|
* Add chisel x64
|
||||||
|
* Integrate msfvenom
|
||||||
|
* Add Webshells sync
|
||||||
|
* Ability to add comments or description
|
||||||
* Prettier code
|
* Prettier code
|
||||||
* Only update once per day, except if `-u` `--update`
|
|
||||||
* Adding more services to listen to ?
|
* Adding more services to listen to ?
|
||||||
|
|
||||||
## Pre-requisites
|
## Pre-requisites
|
||||||
@ -28,7 +31,16 @@ This too has several functions:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
`python pendora-box.py`
|
```
|
||||||
|
user@wow$ python pendora-box.py -h
|
||||||
|
usage: pendora-box.py [-h] [-u]
|
||||||
|
|
||||||
|
Sync your files and starts a listener on HTTP, SMB or SMB2.
|
||||||
|
|
||||||
|
options:
|
||||||
|
-h, --help show this help message and exit
|
||||||
|
-u, --update update your files (described in config.json)
|
||||||
|
```
|
||||||
|
|
||||||
## Adding a file to track
|
## Adding a file to track
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
"githubreleasesync": {
|
"githubreleasesync": {
|
||||||
"carlospolop/PEASS-ng": {
|
"carlospolop/PEASS-ng": {
|
||||||
"local_version": "20220424",
|
"local_version": "20220515",
|
||||||
"files": [
|
"files": [
|
||||||
"linpeas.sh",
|
"linpeas.sh",
|
||||||
"winPEAS.bat",
|
"winPEAS.bat",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import argparse
|
||||||
import json
|
import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import hashlib
|
import hashlib
|
||||||
@ -99,8 +100,6 @@ def githubreleasesync(reponame, repoinfo, credz):
|
|||||||
filename = filename['filename']
|
filename = filename['filename']
|
||||||
filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version)
|
filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version)
|
||||||
localfile = Path('files').joinpath(Path(binpath).name)
|
localfile = Path('files').joinpath(Path(binpath).name)
|
||||||
if filename.endswith('.gz'):
|
|
||||||
is_gz = True
|
|
||||||
print(f" * {localfile} ", end='')
|
print(f" * {localfile} ", end='')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
@ -108,6 +107,11 @@ def githubreleasesync(reponame, repoinfo, credz):
|
|||||||
localfile = Path('files').joinpath(Path(filename).name)
|
localfile = Path('files').joinpath(Path(filename).name)
|
||||||
print(f" * {localfile} ", end='')
|
print(f" * {localfile} ", end='')
|
||||||
|
|
||||||
|
if filename.endswith('.gz'):
|
||||||
|
is_gz = True
|
||||||
|
else:
|
||||||
|
is_gz = False
|
||||||
|
|
||||||
urldl = f'https://github.com/{reponame}/releases/download/{last_version}/{filename}'
|
urldl = f'https://github.com/{reponame}/releases/download/{last_version}/{filename}'
|
||||||
|
|
||||||
if not localfile.exists():
|
if not localfile.exists():
|
||||||
@ -429,9 +433,15 @@ def menu_choice(menu_options):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
parser = argparse.ArgumentParser(description='Sync your files and starts a listener on HTTP, SMB or SMB2.')
|
||||||
|
parser.add_argument('-u', '--update', action='store_true', help='update your files (described in config.json)')
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
with open("config.json", "r") as jsonfile:
|
with open("config.json", "r") as jsonfile:
|
||||||
config = json.load(jsonfile)
|
config = json.load(jsonfile)
|
||||||
|
|
||||||
|
if args.update:
|
||||||
update(config)
|
update(config)
|
||||||
tmp = Path('files/tmp')
|
tmp = Path('files/tmp')
|
||||||
is_empty = not any(tmp.iterdir())
|
is_empty = not any(tmp.iterdir())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user