Compare commits

..

No commits in common. "18eaa61dda77b3b0ae8f34b0e1e0ab4920b8bd95" and "e8eb9803d8a73299ffa6646f956b06dffb5971af" have entirely different histories.

3 changed files with 6 additions and 28 deletions

View File

@ -6,11 +6,8 @@ This too has several functions:
## To-Do
* Add chisel x64
* Integrate msfvenom
* Add Webshells sync
* Ability to add comments or description
* Prettier code
* Only update once per day, except if `-u` `--update`
* Adding more services to listen to ?
## Pre-requisites
@ -31,16 +28,7 @@ This too has several functions:
}
```
```
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)
```
`python pendora-box.py`
## Adding a file to track

View File

@ -21,7 +21,7 @@
},
"githubreleasesync": {
"carlospolop/PEASS-ng": {
"local_version": "20220515",
"local_version": "20220424",
"files": [
"linpeas.sh",
"winPEAS.bat",

View File

@ -1,4 +1,3 @@
import argparse
import json
from pathlib import Path
import hashlib
@ -100,6 +99,8 @@ def githubreleasesync(reponame, repoinfo, credz):
filename = filename['filename']
filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version)
localfile = Path('files').joinpath(Path(binpath).name)
if filename.endswith('.gz'):
is_gz = True
print(f" * {localfile} ", end='')
else:
@ -107,11 +108,6 @@ def githubreleasesync(reponame, repoinfo, credz):
localfile = Path('files').joinpath(Path(filename).name)
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}'
if not localfile.exists():
@ -433,16 +429,10 @@ def menu_choice(menu_options):
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:
config = json.load(jsonfile)
if args.update:
update(config)
update(config)
tmp = Path('files/tmp')
is_empty = not any(tmp.iterdir())
if not is_empty: