0% found this document useful (0 votes)
130 views3 pages

K3RN3LC0MP1L3R

This document contains code snippets from an iOS/Android mobile application and C++ networking program. The snippets reference functions and methods for authentication, location tracking, network packet capturing/filtering, XML parsing, and more.

Uploaded by

Murilo Ramos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
130 views3 pages

K3RN3LC0MP1L3R

This document contains code snippets from an iOS/Android mobile application and C++ networking program. The snippets reference functions and methods for authentication, location tracking, network packet capturing/filtering, XML parsing, and more.

Uploaded by

Murilo Ramos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

A

[appDel removeLocalObjectWithKey:@"email"]

[appDel removeLocalObjectWithKey:@"password"]

AppDelegate *appDel = (AppDelegate *) [[UIApplication sharedApplication] delegate]

B
bool buildConnect(std::string hostName, int portNumber);

bool buildListen(int listenPort);

C
cell.myData = [settings objectAtIndex:indexPath.row]

E
}else if([elementName isEqualToString:@"error"]){

F
for(int i=0; i < this->currentSubFilters.size(); i++){

G
getLogFileName(std::string logType){

goConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self]

I
if([elementName isEqualToString:@"pass"]){

if(i < ([theFormData count] -1)){

if([string isEqualToString:@"1"]){

if(this->currentSubFilters.size() > 0){

int send_string(int sockfd, const char *buffer);

int SpoofGetNewSpoofID();

N
(NSString*)magicConvertFormData:(NSMutableDictionary *)theFormData{

NSDictionary *info = [notification userInfo]

NSMutableData *body = [NSMutableData data]


NSMutableString *mString = [[NSMutableString alloc] init]

NSString *bar = [foo encodeString:NSUTF8StringEncoding]

NSString *foo = [NSString stringWithFormat:@"%@", [theFormData objectForKey:theKey]]

NSString *postURL = [NSString stringWithFormat:@"%@index.php", self.slingerDirectory]

P
[proData setObject:pic forKey:@"pictureFull"]

packet_dump(header, packet, this->logSniff);

pcapSlinger::filterTypes getFilterType();

pcapSlinger::pcapSlinger(int setID){

R
[reportData setValue:@"reportUser" forKey:@"action"]

[request setHTTPMethod:@"POST"]

[request setTimeoutInterval:60]

S
[self.locManager startUpdatingLocation]

[self.sView setContentOffset:svos animated:YES]

self.locManager = [[CLLocationManager alloc] init]

setFilter(std::vector<std::string> const &actionResults){

sniffStrings getSniffActionString(string const &theString);

socketOps getSocketOpString(std::string const &theString);

socketStrings getSocketActionString(string const &theString);

spoofStrings getSpoofActionString(string const &theString);

std::string buildPacketString(const unsigned char *packet);

std::vector<pcapSlinger::subFilterTypes> currentSubFilters;

sub_filter_GetPost(header, packet, this->logSniff);

T
[theXMLData setObject:currentText forKey:currentElement]

this->currentSubFilters.erase(this->currentSubFilters.begin());
V
vector<pcapSlinger*> sniffers;

void caught_packet(unsigned char *);

void checkAction(string const &theAction);

void checkSniffAction(vector<string> const &actionResults);

void checkSocketAction(vector<string> const &actionResults);

void checkSocketOperation(std::vector<std::string> const &operationResults);

void checkSpoofAction(vector<string> const &actionResults);

void decode_ethernet(const unsigned char*);

void decode_ip(const unsigned char *);

void dump(const unsigned char *data_buffer);

void packet_dump(const struct pcap_pkthdr packetHeader);

void pcap_fatal(const char *failed_in)

void setFilter(std::vector<std::string> const &actionResults);

void SniffFilter(vector<string> const &actionResults);

void sub_filter_GetPost(const struct pcap_pkthdr packetHeader);

U
UIImage *curIMG = (UIImage *)[files objectAtIndex:i]

unsigned char ethDestAddr[ethAddrLen];

unsigned int decode_tcp(const unsigned char*);

You might also like