Jump to content

Hey people

So some of my mates made an imessage spam script that spams you a lot, and yeah I know it's just for fun, but also I was wondering how I would be able to create my own DOS protection script in python. I don't have a vast amount of knowledge of DDOS/DOS, Python, Scripts etc., so I'm looking for some help to creating a script to filter out all these spam messages. Also it would give me a sense of achievement, so any help would be appreciated. Thanks

 

Yay 800 Posts

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/
Share on other sites

Link to post
Share on other sites

Doesn't sound like a DOS attack... more like a flood of messages in skype, or hangouts, or something?  What is it?  That's going to matter :)

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7160831
Share on other sites

Link to post
Share on other sites

1 minute ago, Ryan_Vickers said:

Doesn't sound like a DOS attack... more like a flood of messages in skype, or hangouts, or something?  What is it?  That's going to matter :)

No maybe not, but it's imessage spam. (read the first sentence)

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7160849
Share on other sites

Link to post
Share on other sites

13 minutes ago, Killervolt said:

Hey people

So some of my mates made an imessage spam script that spams you a lot, and yeah I know it's just for fun, but also I was wondering how I would be able to create my own DOS protection script in python. I don't have a vast amount of knowledge of DDOS/DOS, Python, Scripts etc., so I'm looking for some help to creating a script to filter out all these spam messages. Also it would give me a sense of achievement, so any help would be appreciated. Thanks

 

Yay 800 Posts

1. Wrong section

2. DoS is when you actually incur a loss of services (ie. phone/computer stops working)

widget.png?style=banner2

PC: 9800X3D, 96GB Trident Z5 6200 CL28, 5090 FE, 3.84TB CM7

NAS: Xeon W-2195, 256GB ECC, 180TB Storage, 1660 Ti, TrueNAS Scale

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7160863
Share on other sites

Link to post
Share on other sites

14 minutes ago, Killervolt said:

Hey people

So some of my mates made an imessage spam script that spams you a lot, and yeah I know it's just for fun, but also I was wondering how I would be able to create my own DOS protection script in python. I don't have a vast amount of knowledge of DDOS/DOS, Python, Scripts etc., so I'm looking for some help to creating a script to filter out all these spam messages. Also it would give me a sense of achievement, so any help would be appreciated. Thanks

 

Yay 800 Posts

Yeah, not really a DoS in any form of the word.

QUOTE ME OR I PROBABLY WON'T SEE YOUR RESPONSE 

My Setup:

 

Desktop

Spoiler

CPU: Ryzen 9 3900X  CPU Cooler: Noctua NH-D15  Motherboard: Asus Prime X370-PRO  RAM: 32GB Corsair Vengeance LPX DDR4 @3200MHz  GPU: EVGA RTX 2080 FTW3 ULTRA (+50 core +400 memory)  Storage: 1050GB Crucial MX300, 1TB Crucial MX500  PSU: EVGA Supernova 750 P2  Chassis: NZXT Noctis 450 White/Blue OS: Windows 10 Professional  Displays: Asus MG279Q FreeSync OC, LG 27GL850-B

 

Main Laptop:

Spoiler

Laptop: Sager NP 8678-S  CPU: Intel Core i7 6820HK @ 2.7GHz  RAM: 32GB DDR4 @ 2133MHz  GPU: GTX 980m 8GB  Storage: 250GB Samsung 850 EVO M.2 + 1TB Samsung 850 Pro + 1TB 7200RPM HGST HDD  OS: Windows 10 Pro  Chassis: Clevo P670RG  Audio: HyperX Cloud II Gunmetal, Audio Technica ATH-M50s, JBL Creature II

 

Thinkpad T420:

Spoiler

CPU: i5 2520M  RAM: 8GB DDR3  Storage: 275GB Crucial MX30

 

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7160871
Share on other sites

Link to post
Share on other sites

1 minute ago, Killervolt said:

Sorry :(

Yeah I don't know much about this topic

Honestly I'm not even sure how you'd prevent that on an Apple device...

QUOTE ME OR I PROBABLY WON'T SEE YOUR RESPONSE 

My Setup:

 

Desktop

Spoiler

CPU: Ryzen 9 3900X  CPU Cooler: Noctua NH-D15  Motherboard: Asus Prime X370-PRO  RAM: 32GB Corsair Vengeance LPX DDR4 @3200MHz  GPU: EVGA RTX 2080 FTW3 ULTRA (+50 core +400 memory)  Storage: 1050GB Crucial MX300, 1TB Crucial MX500  PSU: EVGA Supernova 750 P2  Chassis: NZXT Noctis 450 White/Blue OS: Windows 10 Professional  Displays: Asus MG279Q FreeSync OC, LG 27GL850-B

 

Main Laptop:

Spoiler

Laptop: Sager NP 8678-S  CPU: Intel Core i7 6820HK @ 2.7GHz  RAM: 32GB DDR4 @ 2133MHz  GPU: GTX 980m 8GB  Storage: 250GB Samsung 850 EVO M.2 + 1TB Samsung 850 Pro + 1TB 7200RPM HGST HDD  OS: Windows 10 Pro  Chassis: Clevo P670RG  Audio: HyperX Cloud II Gunmetal, Audio Technica ATH-M50s, JBL Creature II

 

Thinkpad T420:

Spoiler

CPU: i5 2520M  RAM: 8GB DDR3  Storage: 275GB Crucial MX30

 

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7160885
Share on other sites

Link to post
Share on other sites

Just now, Rahnie said:

I know, I know!

 

"Block number" ;)

I've never owned an iOS device, so I didn't know that feature existed on iOS.

QUOTE ME OR I PROBABLY WON'T SEE YOUR RESPONSE 

My Setup:

 

Desktop

Spoiler

CPU: Ryzen 9 3900X  CPU Cooler: Noctua NH-D15  Motherboard: Asus Prime X370-PRO  RAM: 32GB Corsair Vengeance LPX DDR4 @3200MHz  GPU: EVGA RTX 2080 FTW3 ULTRA (+50 core +400 memory)  Storage: 1050GB Crucial MX300, 1TB Crucial MX500  PSU: EVGA Supernova 750 P2  Chassis: NZXT Noctis 450 White/Blue OS: Windows 10 Professional  Displays: Asus MG279Q FreeSync OC, LG 27GL850-B

 

Main Laptop:

Spoiler

Laptop: Sager NP 8678-S  CPU: Intel Core i7 6820HK @ 2.7GHz  RAM: 32GB DDR4 @ 2133MHz  GPU: GTX 980m 8GB  Storage: 250GB Samsung 850 EVO M.2 + 1TB Samsung 850 Pro + 1TB 7200RPM HGST HDD  OS: Windows 10 Pro  Chassis: Clevo P670RG  Audio: HyperX Cloud II Gunmetal, Audio Technica ATH-M50s, JBL Creature II

 

Thinkpad T420:

Spoiler

CPU: i5 2520M  RAM: 8GB DDR3  Storage: 275GB Crucial MX30

 

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7160911
Share on other sites

Link to post
Share on other sites

Just now, AnnoyedShelf said:

I've never owned an iOS device, so I didn't know that feature existed on iOS.

It didn't exist in the past, until iOS 6 if I remember correctly - so the only thing you could really do was to turn off iMessage altogether. Nowadays you can just block a number from sending you messages. Thankfully.

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7160925
Share on other sites

Link to post
Share on other sites

1 minute ago, AnnoyedShelf said:

I've never owned an iOS device, so I didn't know that feature existed on iOS.

I'd imagine he's refering to iMessage on OSX. 

 

2 minutes ago, Rahnie said:

I know, I know!

 

"Block number" ;)

Yes ^

widget.png?style=banner2

PC: 9800X3D, 96GB Trident Z5 6200 CL28, 5090 FE, 3.84TB CM7

NAS: Xeon W-2195, 256GB ECC, 180TB Storage, 1660 Ti, TrueNAS Scale

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7160926
Share on other sites

Link to post
Share on other sites

The solution seems obvious: if a message is received within 1 second of having received another message from that same user, do not show it, and every time a new message is received, reset the timer.  That would allow all normal messages through but would block messages sent in rapid succession.  It would be fairly easy to program assuming the right tools and controls were available, but it may be difficult or even impossible to actually implement.

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7160933
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...
11 minutes ago, Asterisk said:

This is a denial of service attack.

I think that's just slightly more sophisticated.  Typically is means hitting their network with so much traffic/requests that no legitimate traffic can get in or out.  It sounds to me like OP was just getting spammed with chat messages :P

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7245400
Share on other sites

Link to post
Share on other sites

During a real DOS attack, there is really no script that will help stop it. the most you can hope for is something that will help avoid your own hardware from amplifying the attack. e.g., many web servers will now automatically detect and mitigate many SYN and other low bandwidth attacks. Many consumer levels routers also carry these forms of DOS protection, they do 100% nothing for a packet flood, but they work for more of the low bandwidth stuff, where you can specify limits in packets per second, and various other parameters.

 

For the most basic form of DOS (packet flood), there is not much you can do, as your WAN connection is being saturated.

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7247574
Share on other sites

Link to post
Share on other sites

10 hours ago, Ryan_Vickers said:

I think that's just slightly more sophisticated.  Typically is means hitting their network with so much traffic/requests that no legitimate traffic can get in or out.  It sounds to me like OP was just getting spammed with chat messages :P

spamming someone with so many messages that their phone becomes unusable is indeed denial of service. 

Quote

In computing, a denial-of-service (DoS) attack is an attempt to make a machine or network resource unavailable to its intended users, such as to temporarily or indefinitely interrupt or suspend services of a host connected to the Internet.

 

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7248798
Share on other sites

Link to post
Share on other sites

2 hours ago, Asterisk said:

spamming someone with so many messages that their phone becomes unusable is indeed denial of service. 

 

By the very definition you posted you're confirming what I said; it is a term used to refer to when a server is hit with so much traffic it cannot do its job as a server anymore.  I suppose the wording provided could be stretched to include a phone getting lagged out by spam texts, but it's one hell of a stretch imo.

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7249202
Share on other sites

Link to post
Share on other sites

On 2/16/2016 at 1:58 AM, Ryan_Vickers said:

By the very definition you posted you're confirming what I said; it is a term used to refer to when a server is hit with so much traffic it cannot do its job as a server anymore.  I suppose the wording provided could be stretched to include a phone getting lagged out by spam texts, but it's one hell of a stretch imo.

https://www.schneier.com/blog/archives/2005/10/sms_denialofser_1.html

http://mo.co.za/open/silentdos.pdf

http://www.tomsguide.com/us/android-iphone-smartphone,news-9524.html

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7282552
Share on other sites

Link to post
Share on other sites

19 hours ago, Asterisk said:

Now those are DOS attacks! :)  They seem to be talking about sending so many messages in a given area that it completely clogs the network and makes all other texts and even phone calls impossible; a true DOS attack, that just happens to be using SMS messages as the method.  I still feel like the only similarity shared is the fact they and the OP's problem are both texts, but again, are these not a little different than the OP's issue?  It sounds to me like he is just being sent lots of messages.  As in, 1) it's only affecting him, and 2) his phone is still receiving messages, so it's not been completely overloaded - it's just a little annoying.

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
https://linustechtips.com/topic/540726-anti-dos-script-python/#findComment-7287871
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×