Post: How To - Get Call of Duty 4 Hacks Back
06-01-2008, 06:12 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); First Off Here Is The Packet (DIS WANSNT WRITIN BY ME) :


#define SRC_ETHER_ADDR "aa:aa:aa:aa:aa:aa"
#define DST_ETHER_ADDR "bb:bb:bb:bb:bb:bb"
#define SRC_IP "192.168.0.10"
#define DST_IP "192.168.0.11"

typedef struct EthernetHeader{

unsigned char destination[6];
unsigned char source[6];
unsigned short protocol;

}EthernetHeader;

typedef struct ArpHeader{

unsigned short hardware_type;
unsigned short protocol_type;
unsigned char hard_addr_len;
unsigned char prot_addr_len;
unsigned short opcode;
unsigned char source_hardware[6];
unsigned char source_ip[4];
unsigned char dest_hardware[6];
unsigned char dest_ip[4];
}ArpHeader;


int CreateRawSocket(int protocol_to_sniff)
{
int rawsock;

if((rawsock = socket(PF_PACKET, SOCK_RAW, htons(protocol_to_sniff)))== -1)
{
perror("Error creating raw socket: ");
exit(-1);
}

return rawsock;
}

int BindRawSocketToInterface(char *device, int rawsock, int protocol)
{

struct sockaddr_ll sll;
struct ifreq ifr;

bzero(&sll, sizeof(sll));
bzero(&ifr, sizeof(ifr));

/* First Get the Interface Index */


strncpy((char *)ifr.ifr_name, device, IFNAMSIZ);
if((ioctl(rawsock, SIOCGIFINDEX, &ifr)) == -1)
{
printf("Error getting Interface index !\n");
exit(-1);
}

/* Bind our raw socket to this interface */

sll.sll_family = AF_PACKET;
sll.sll_ifindex = ifr.ifr_ifindex;
sll.sll_protocol = htons(protocol);


if((bind(rawsock, (struct sockaddr *)&sll, sizeof(sll)))== -1)
{
perror("Error binding raw socket to interface\n");
exit(-1);
}

return 1;

}


int SendRawPacket(int rawsock, unsigned char *pkt, int pkt_len)
{
int sent= 0;

/* A simple write on the socket ..thats all it takes ! */

if((sent = write(rawsock, pkt, pkt_len)) != pkt_len)
{
/* Error */
printf("Could only send %d bytes of packet of length %d\n", sent, pkt_len);
return 0;
}

return 1;


}

EthernetHeader* CreateEthernetHeader(char *src_mac, char *dst_mac, int protocol)
{
EthernetHeader *ethernet_header;


ethernet_header = (EthernetHeader *)malloc(sizeof(EthernetHeader));

/* copy the Src mac addr */

memcpy(ethernet_header->source, (void *)ether_aton(src_mac), 6);

/* copy the Dst mac addr */

memcpy(ethernet_header->destination, (void *)ether_aton(dst_mac), 6);

/* copy the protocol */

ethernet_header->protocol = htons(protocol);

/* done ...send the header back */

return (ethernet_header);
}

ArpHeader *CreateArpHeader(void)
{
ArpHeader *arp_header;
in_addr_t temp;

arp_header = (ArpHeader *)malloc(sizeof(struct ArpHeader));

/* Fill the ARP header */
arp_header->hardware_type = htons(ARPHRD_ETHER);
arp_header->protocol_type = htons(ETHERTYPE_IP);
arp_header->hard_addr_len = 6;
arp_header->prot_addr_len = 4;
arp_header->opcode = htons(ARPOP_REPLY);
memcpy(arp_header->source_hardware, (void *)ether_aton(SRC_ETHER_ADDR) , 6);
temp = inet_addr(SRC_IP);
memcpy(&(arp_header->source_ip), &temp, 4);
memcpy(arp_header->dest_hardware, (void *) ether_aton(DST_ETHER_ADDR) , 6);
temp = inet_addr(DST_IP);
memcpy(&(arp_header->dest_ip), &temp, 4);

return arp_header;
}



/* argv[1] is the device e.g. eth0 */

main(int argc, char **argv)
{

int raw;
unsigned char *packet;
EthernetHeader *ethernet_header;
ArpHeader *arp_header;
int pkt_len;

/* Create the raw socket */

raw = CreateRawSocket(ETH_P_ALL);

/* Bind raw socket to interface */

BindRawSocketToInterface(argv[1], raw, ETH_P_ALL);

/* create Ethernet header */

ethernet_header = CreateEthernetHeader(SRC_ETHER_ADDR, DST_ETHER_ADDR, ETHERTYPE_ARP);

/* Create ARP header */

arp_header = CreateArpHeader();

/* Find packet length */

pkt_len = sizeof(EthernetHeader) + sizeof(ArpHeader);

/* Allocate memory to packet */

packet = (unsigned char *)malloc(pkt_len);

/* Copy the Ethernet header first */

memcpy(packet, ethernet_header, sizeof(EthernetHeader));

/* Copy the ARP header - but after the ethernet header */

memcpy((packet + sizeof(EthernetHeader)), arp_header, sizeof(ArpHeader));

/* Send the packet out ! */

if(!SendRawPacket(raw, packet, pkt_len))
{
perror("Error sending packet");
}
else
printf("Packet sent successfully\n");

/* Free the memory back to the heavenly heap */

free(ethernet_header);
free(arp_header);
free(packet);

close(raw);

return 0;
}

Ok To Get The Hacks Back Running, Change -
unsigned char destination[4];
unsigned char source[4];
unsigned short protocol;

Put This Whole Thing Into - GRADO_MP And Put All of The Unsigned Ones Into CM and MP Also Have The Hack Files In The MP & CM.

(not written by me)
(adsbygoogle = window.adsbygoogle || []).push({});
06-19-2008, 05:31 PM #11
Oc
****ING NINJA SHIT
^GOD, just browse the forum or search google!

and how te **** would a RAW socket work in a gamesave?
tell me?, i don't even think you know what all those things are you copyed...

and btw, what if you got another IP?
#define SRC_IP "192.168.0.10" <-----
#define DST_IP "192.168.0.11" <-----
06-19-2008, 07:37 PM #12
Kirizmaxx
Don't Fear the Repear
lol threads like this make me laugh, mybye we can compile it into a packet somehow, and send it??? See if it does anything? Because obviously if this was posted long ago and hidden, those codes have something to do with it? Idk but it's another trial and error process. Also just in case any1 asks what these two codes are

#define SRC_IP "192.168.0.10" <-----
#define DST_IP "192.168.0.11" <-----

SRC means source which i think would be your comp ( but the packet came from ps3 first )

and DST obviously means Destination.
06-19-2008, 07:51 PM #13
4ce
Keeper
any update if this works?.
06-21-2008, 05:43 PM #14
i know ah this prob messes up your s3 or some thing why dont you learn how to use packet injection and then try it your self then post a thread on it ok in stead of thinking it works
06-21-2008, 06:20 PM #15
Limp5560
Trained to Kill
This is a linux program that will forge the packet header allowing you to send packets into the game, its from securityfreak.com
You need to compile this in linux or Cygin to get it to work. I love how this site is nothing but retarded kids, It was obviously made to keep the noob faggots away from NGB.

This source code is very helpful to get packet injection to work, infact its neccesary...
06-22-2008, 10:44 PM #16
Originally posted by Limp5560 View Post

This source code is very helpful to get packet injection to work, infact its neccesary...


well look who won the noble prize award of-course its neccesary u noob its a raw packet pmsl u no nothing **** off
06-23-2008, 12:15 AM #17
Limp5560
Trained to Kill
**** you faggot. YOU know nothing. A raw socket forges the header so the game will accept it. I highly doubt you will know what to do with this source. You probably didn't even know it had to be compiled in linux. you noob
06-23-2008, 12:18 AM #18
4ce
Keeper
Guys calm down, flaming wont do anything. If anyone wants to go ahead try something please just do it and dont whine about anything, just dont flame, wont get u anywhere.
06-23-2008, 04:37 AM #19
Limp5560
Trained to Kill
I will tell you packet injection works perfectly. compile this, find your packets and go from there. (not at all easy)

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo