what you don't know can hurt you

rwxbo.c

rwxbo.c
Posted Aug 17, 1999
Authored by KByte

RWX Back Orifice Sweep Scanner - RWXBO is a simple program that will log attempts to scan your ip range, and logs some commands that the attacker might type.

systems | unix
MD5 | 88d5fe7bb1063a45a2ca784185d39328

rwxbo.c

Change Mirror Download
/*                ------------------------------
RWX PROUDLY PRESENTS:
------------------------------
RwXBO v. 0.0.0.2 beta 127.0.0.1

Visit http://rwx.ml.org - RwX Security Zine in Portuguese

Now using syslog!

RWX Back Orifice Sweep Scanner

Authors: [0x5002](xsatanic@rwx.ml.org) 'n KByte(kbyte@rwx.ml.org)
Help by lrk0rx
[ Issues, Programs, Mail List => http://rwx.ml.org ]

RWXBO eh um programa simples nascido da ide'ia de pegar os engracadinhos
que ficam destruindo o computador de pobres mulheres indefesas.

RWXBO is a simple program that will log attemps to scan your ip range, and
logs some commands that the attacker might type.
Look at your syslog file for the logs (Usually /var/log/messages)

Tested on RedHat 5.1 Linux and SlackWare 3.5 Linux

*/
#include <syslog.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#define DIR 0
#define INFO 1
#define HTTPON80 2

char scanstr[1024]="ÎcÑÒçÏ9¥¥†MŠ´fª2";
char dir[1024]="ÎcÑÒçÏ<¥¥†";
char info[1024]="ÎcÑÒçÏ8¥¥†";
char httpon80[1024]="ÎcÑÒçÏ>";

char buffer[1024]="ÎcÑÒçÏ¥¥†¼uK™ªxÄãÖ¦eQuQë*?í0|[ˆÑæ§Á";

char *host;

int main()
{
struct sockaddr_in serv, cli;
char request[400], reply[400];
int sockfd, n, clilen;
if ( (sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
perror("socket error");

openlog("rwxbo", LOG_PID|LOG_CONS, LOG_WARNING);

memset(&serv, 0, sizeof(serv));

serv.sin_family = AF_INET;
serv.sin_addr.s_addr = htonl(INADDR_ANY);
serv.sin_port = htons(31337);

if (bind(sockfd, (struct sockaddr_in *) &serv, sizeof(serv)) < 0)
perror("bind");

while(fork()==0) {
for ( ; ; ) {
clilen = sizeof(cli);
if ( (n = recvfrom(sockfd, request, 400, 0,
(struct sockaddr_in *) &cli, &clilen)) < 0)
syslog(LOG_ERR, "fake reply");

host = inet_ntoa(cli.sin_addr);

if (strstr(request,scanstr))
syslog(LOG_WARNING, "-----(%s) is scanning you------\n", host);

if (strstr(request,dir))
syslog(LOG_WARNING, "RwXBO:%s>dir\n", host);

if (strstr(request,info))
syslog(LOG_WARNING, "RwXBO:%s>passes or info\n", host);

if (strstr(request,httpon80))
syslog(LOG_WARNING, "RwXBO:%s>httpon 80\n", host);

fflush(stdout);

sendto(sockfd, buffer, sizeof(buffer), 0, (struct sockaddr *)&cli,sizeof(cli));
}
}
}
Login or Register to add favorites

File Archive:

November 2021

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

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close