-
Notifications
You must be signed in to change notification settings - Fork 42
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 #44 from alexmon1989/test_setup_tools
Setup tools
- Loading branch information
Showing
10 changed files
with
104 additions
and
58 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
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,18 +1 @@ | ||
import sys | ||
import signal | ||
from ripper.services import main | ||
|
||
|
||
if __name__ == '__main__': | ||
try: | ||
sys.exit(main()) | ||
except KeyboardInterrupt: # The user hit Control-C | ||
sys.stderr.write('\n\nReceived keyboard interrupt, terminating.\n\n') | ||
sys.stderr.flush() | ||
# Control-C is fatal error signal 2, for more see | ||
# https://tldp.org/LDP/abs/html/exitcodes.html | ||
sys.exit(128 + signal.SIGINT) | ||
except RuntimeError as exc: | ||
sys.stderr.write(f'\n{exc}\n\n') | ||
sys.stderr.flush() | ||
sys.exit(1) | ||
print('Deprecated. Please, call "dripper ..." instead of "python DRipper.py ..."') |
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,14 +1,7 @@ | ||
FROM python:3.10-alpine | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
RUN mkdir -p /app/ripper | ||
COPY ./ripper/* /app/ripper/ | ||
COPY DRipper.py requirements.txt /app/ | ||
RUN apk add curl git && \ | ||
pip install --upgrade pip git+https://github.com/alexmon1989/russia_ddos.git | ||
|
||
RUN apk add curl && \ | ||
pip install --upgrade pip && \ | ||
pip install -r /app/requirements.txt && \ | ||
rm -rf /app/requirements.txt | ||
|
||
WORKDIR /app | ||
ENTRYPOINT ["python", "DRipper.py"] | ||
ENTRYPOINT ["dripper"] |
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,20 @@ | ||
from setuptools import setup, find_packages | ||
from ripper.constants import VERSION | ||
|
||
setup( | ||
name='dripper', | ||
version=VERSION, | ||
packages=['ripper'], | ||
install_requires=['rich==12.0.0', 'pysocks==1.7.1'], | ||
package_data={ | ||
'ripper': [ | ||
'headers.txt', | ||
'useragents.txt', | ||
], | ||
}, | ||
entry_points={ | ||
'console_scripts': [ | ||
'dripper=ripper.services:cli', | ||
], | ||
}, | ||
) |