Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unobfuscate code, fix memory consumption and update validators #17

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Umbriferous
Copy link

Code is no longer obfuscated - you can see what is going on.
Memory leaks fixed - the use of queues wasn't necessary and the whole process was simplified.
The old validators were changed with the currently working ones - half of the packets are not needlessly thrown away anymore!

The code was unnecessarily populating queues, which resulted in high memory consumption over time. I simplified the code so that it does not rely on queues at all and cleaned it up a bit
Old validators weren't working so I updated the links to some currently working ones.  They work as bonus external bots that apply extra pressure to the host as they try to validate it
DRipper.py Outdated
-p : -port default 80
-q : -quiet
-t : -threads default 135 \033[0m ''')
Copy link

@su-hs su-hs Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISREGARD. CLEAR NOW.

Could someone explain, why in README is shown usage of -t 135 when turbo mode is ALWAYS enabled and has value 135. I would consider this default behavior which no need to repeat all the time. Another case, when value is 443, and that is my 2nd question - when can it be? How beneficial it would be?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why it was referred to as 'turbo' to begin with, as -t parameter was always for defining the number of threads that would send packets simultaneously. I have no idea why they use numbers 135 and 443, my personal tests show that about 300 would be optimal, but that might depend on hardware and connectivity.

DRipper.py Outdated
-s : -server ip
-p : -port default 80
-q : -quiet
Copy link

@su-hs su-hs Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that -q is not really quiet mode. With or without output is the same.

Here is screenshot when -q used. So it's NOT quiet.

Screenshot 2022-03-03 at 03 58 30

Or I don't get something, please explain or extend help info or command code.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-q changes the logging level of messages from ERROR to INFO. The thing is, it never uses the logger afterward. So yeah, good stuff, it's practically useless currently. I will fix it shortly

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will fix it shortly

Great, Thanks in advance.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, now with -q only the errors are shown

Comment on lines -45 to +7
`git clone https://github.com/palahsu/DDoS-Ripper`
`git clone https://github.com/Umbriferous/DDoS-Ripper`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Umbriferous if you consider yourself as additional contributor to this repo then you should NOT commit this change.

But if @palahsu passed maintenance of codebase to you, then OK, but still weird.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I very much doubt that @palahsu will accept any of my changes, but the old version of ripper has memory leaks, validators that no longer work, issues with logging, etc. I want the link to point to the new version for now, and if the merge ever occurs, the link can be modified back

Copy link

@su-hs su-hs Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Umbriferous Nik, Nikolaj I assume, could you please confirm that all you do is in favor for Ukraine, at least in this tough moment. :) Пароль?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I am from Ukraine and support it wholeheartedly.
Паляниця


<a href="https://t.me/CyberClans"><img src="https://img.shields.io/badge/Telegram-Group%20Telegram%20Join-blue.svg?logo=telegram"></a>
example: `python3 DRipper.py -s 0.00.00.00 -p -80 -t 300`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Umbriferous nice, now at least it's reasonable to show another value for -t than 135. Finally.

@su-hs
Copy link

su-hs commented Mar 3, 2022

main - ur latest changes
@Umbriferous -threads DOES NOT work

-t and --threads works. Please change - or let me know where i am mistaken

image

@su-hs
Copy link

su-hs commented Mar 3, 2022

Same w -quit

Screenshot 2022-03-03 at 13 35 31

@Umbriferous
Copy link
Author

Umbriferous commented Mar 3, 2022

Yeah, it was never supposed to. It is a common standard to define full arguments with a double dash (eg. --threads or --quiet) or short versions with a single dash (eg. -t or -q)

@su-hs
Copy link

su-hs commented Mar 3, 2022

Yeah, I know, I know. So need to at least change in help section to not mislead people when they will read (if they read) :)

@Umbriferous
Copy link
Author

Oh, I see what you mean, will do

-s : --server ip
-p : --port default 80
-q : --quiet mode (only log errors)
-t : --threads default 135 (best within 100-400)\033[0m ''')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice @Umbriferous Thanks ;)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Umbriferous

Confirmed WORKS

Screenshot 2022-03-03 at 13 50 55

Screenshot 2022-03-03 at 13 51 12

@su-hs
Copy link

su-hs commented Mar 3, 2022

@Umbriferous what is ur plan in regards merging? I assume @palahsu will not accept, it's OK.

So will u publish some message in Telegram when ur main is stable enough?

@su-hs
Copy link

su-hs commented Mar 3, 2022

Ou, btw @Umbriferous I frequently see, people use command like this:

python3 DRipper.py -s yandex.by -p 80 -t 135 -q 10000

And as I dig in code, last free input parameter is NOT expected and NOT taken into consideration.

Could you please confirm?

@Umbriferous
Copy link
Author

@Andrii-L-DDoSer Yeah, it's useless

@su-hs
Copy link

su-hs commented Mar 3, 2022

btw @Umbriferous tracing looks great now. Reasonable finally. THANKS :)

When do u plan inform Telegram about final stable version of main ?
Screenshot 2022-03-03 at 15 30 56

@su-hs su-hs mentioned this pull request Mar 5, 2022
@su-hs
Copy link

su-hs commented Mar 8, 2022

@Umbriferous could you please look to this repo?
https://github.com/alexmon1989/russia_ddos

Looks like there are some newest commits, just wanna be sure whos fork is better so far at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants