Last visit was: It is currently Thu Mar 28, 2024 10:25 am


All times are UTC-05:00




Post new topic Reply to topic  [20 posts ] 
Author Message
 Post subject:Re: OnlinkLogNuker
PostPosted:Mon May 24, 2010 12:13 pm 
User avatar
 

Joined:Tue Mar 02, 2010 4:55 pm
Posts:265
AOL:superactor001
Location:Everywhere and nowhere... But also right behind you and watching you in your sleep >.>
It was explained to me by someone i no longer trust that you can only paste it into msword. i used to find the clipboard folder and then cut it from there, but... i couldnt on xp.

_________________
access procedure in progress...
...
/root access granted
attempting to input customized user information
upload failure, connection loss
system console session terminated


Top
Offline  
 Post subject:Re: OnlinkLogNuker
PostPosted:Sun Nov 14, 2010 12:13 am 
 

Joined:Mon Apr 23, 2007 1:16 pm
Posts:190
Image
i guess this reply comes too late but, bioshacker001 its obvious you are new to cpp. (no flaming intended :P )
what i meant was
Code:
#include <cstdio> #include <cstdlib> #include <string.h> #define BUFFER_SIZE 4096 char buffer[BUFFER_SIZE]; char token[BUFFER_SIZE + 1]; int lookAhead; int bufferPos; int bufferLen; int nextChar(FILE *file){ if (bufferPos == bufferLen){ bufferLen = fread(buffer, 1, BUFFER_SIZE, file); if (bufferLen <= 0) return -1; bufferPos = 0; } return buffer[bufferPos++]; } void readUntil(FILE *file, char *buf, int &nowAt, char targetCh){ bool inStr = false; lookAhead = nextChar(file); while ((lookAhead != targetCh) || inStr){ buf[nowAt++] = lookAhead; if (lookAhead == '"') inStr = !inStr; lookAhead = nextChar(file); if (lookAhead < 0) return; } } void nextToken(FILE *file){ int nowAt = 0; token[nowAt++] = lookAhead; if (lookAhead == '<'){ readUntil(file, token, nowAt, '>'); token[nowAt++] = lookAhead; lookAhead = nextChar(file); } else readUntil(file, token, nowAt, '<'); token[nowAt] = '\0'; } bool beginWith(char *str, char *head){ int len = strlen(head); if (strlen(str) < len) return false; for (int i = 0; i < len; i++) if (str[i] != head[i]) return false; return true; } bool endWith(char *str, char *tail){ int len = strlen(tail); int slen = strlen(str); if (slen < len) return false; for (int i = 0; i < len; i++) if (str[slen - i - 1] != tail[len - i - 1]) return false; return true; } void printLogbankHead(char *head, FILE *file){ int i = 0; while (head[i] != ' '){ fprintf(file, "%c", head[i]); i++; } fprintf(file, " count=\"0\" "); do{ i++; } while (head[i] != ' '); i++; while ((head[i] != '/') && (head[i] != '>')){ fprintf(file, "%c", head[i]); i++; } fprintf(file, "/>"); } int main(int argc, char* argv[]){ if (argc != 3) { printf("\nusage:\n");printf(argv[0]);printf("\"input file\" \"output file\""); return 1; } FILE *xmlFile = fopen(argv[1], "r"); FILE *outputFile = fopen(argv[2], "w"); bufferPos = 0; bufferLen = 0; lookAhead = nextChar(xmlFile); while (lookAhead >= 0){ nextToken(xmlFile); if (beginWith(token, "<logbank ")){ printLogbankHead(token, outputFile); if (!endWith(token, "/>")) do{ nextToken(xmlFile); }while(strcmp(token, "</logbank>")); } else fprintf(outputFile, "%s", token); } fclose(xmlFile); fclose(outputFile); }
now you can call the exe from cmd, and the files can be anywhere you want
example:
OnlinkLogNuker.exe "C:\Users\Hans Henrik\Desktop\Hacked.xml" "C:\Users\Hans Henrik\Desktop\Hacked.LogsNuked.xml"


Top
Offline  
 Post subject:Re: OnlinkLogNuker
PostPosted:Sun Feb 13, 2011 11:13 pm 
 

Joined:Sun Feb 13, 2011 11:05 am
Posts:26
But....
where could i find my save file?


Top
Offline  
 Post subject:Re: OnlinkLogNuker
PostPosted:Tue Feb 22, 2011 1:42 pm 
 

Joined:Wed Dec 16, 2009 11:41 am
Posts:2
Quote:
But....
where could i find my save file?
If you use Windows Vista/7: \Users\[Username]\AppData\Roaming\Onlink\users
on XP it should be something like \Documents and Settings\AppData\Onlink\users or \Documents and Settings\Local Settings\AppData\Onlink\users.

I have the following problem: The log nuker creates a save file wich lets onlink always crash, when I try to load it. (I tried 0.2.0-a8-23-g0c617cf x68 and x86-64)
I used the code by hans henrik. (no compilation errors)


Top
Offline  
 Post subject:Re: OnlinkLogNuker
PostPosted:Thu May 19, 2011 6:26 am 
 

Joined:Mon Feb 16, 2009 12:42 am
Posts:11
Quote:
Quote:
But....
where could i find my save file?
If you use Windows Vista/7: \Users\[Username]\AppData\Roaming\Onlink\users
on XP it should be something like \Documents and Settings\AppData\Onlink\users or \Documents and Settings\Local Settings\AppData\Onlink\users.

I have the following problem: The log nuker creates a save file wich lets onlink always crash, when I try to load it. (I tried 0.2.0-a8-23-g0c617cf x68 and x86-64)
I used the code by hans henrik. (no compilation errors)
Actually this is not a perfect solution, a perfect solution should be an optimization made by the author of this game. In Chinese, this called "饮鸩止渴", whose meaning is that you drink poison water to keep you from thirsty.


Top
Offline  
Display posts from previous: Sort by 
Post new topic Reply to topic

All times are UTC-05:00


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created by Miah with assistance from hyprnova