View Full Version : Zero is innocent! could be?
Renegade
March 15th, 2002, 13:07
http://gbxplayer.emuunlim.com/
read the very first news post.
see, I think that'll be more persuasive.
Slougi
March 15th, 2002, 13:30
I don't think so. Look at www.kinox.org. There are a few posts about this.
DuDe
March 15th, 2002, 14:27
I must say that the file comparison test looks very convincing... ZeRo should get here and explain the whole thing, it ain`t adding much prestige to him...
Zero
March 15th, 2002, 14:48
As I explained to mesman00 , PeterD (Emuunlim) , The Fox (Emuunlim) is the fact that I myself haven't released 0.75 yet because that it's still in development adn hasn't been fully tested yet.
And what's this about versions 0.25 , 0.3 and 0.5 not being legit ??? ?
And what the hell is WINGBC ??? ? (I have never heard of it before)
Well if you think I'm no more then a fake your wrong but everybody is entitled to their opinion.
IceLord
March 15th, 2002, 14:53
he speaks.......
EDIT: i'll make my own comparison..
zorbid
March 15th, 2002, 17:15
Originally posted by Zero
the fact that I myself haven't released 0.75 yet
How did "the lamer" know that your future version would be 0.75 ? ???
IceLord
March 15th, 2002, 17:28
ok here are the comparisons,
1st
http://www.vvnsoftware.com/untitled.jpg
Zero
March 15th, 2002, 17:30
Icelord the pics don't show.(EDIT : Now they do.)
Origionally posted by zorbid :
How did "the lamer" know that your future version would be 0.75 ?
I announced that a little while back here on Emutalk.
Jaz
March 15th, 2002, 17:32
Why is everyone giving Zero a hard time, again? ???
IceLord
March 15th, 2002, 17:33
there we go, now they do :)
i know this isn't inconclusive, but just something to ponder
Zero
March 15th, 2002, 17:36
Where can I get this WINGBC ?
I want to see for myself as well.
IceLord
March 15th, 2002, 17:39
http://www.geocities.co.jp/SiliconValley-Oakland/4496
(Note it could be just you guys are using the same compiler or something...)
zorbid
March 15th, 2002, 17:53
WinGBC's .ini
[Other]
Emulator=1
Wait=1
FrameSkip=0
Priority=2
RomPath=C:\jeux\emulation\GBA\Roms\CPL-ZOOA.GBC
[Video]
ScreenSize=2
EnableBG=1
EnableWIN=1
EnableOBJ=1
[Sound]
Sound1Enable=1
Sound2Enable=1
Sound3Enable=1
Sound4Enable=1
EnableEcho=0
GBX Player's .ini
[Other]
Emulator=2
Wait=1
FrameSkip=2
Priority=2
RomPath=C:\jeux\emulation\GBA\Roms\CPL-ZOOS.GBC
[Video]
ScreenSize=0
EnableBG=1
EnableWIN=1
EnableOBJ=1
[Sound]
Sound1Enable=1
Sound2Enable=1
Sound3Enable=1
Sound4Enable=1
EnableEcho=1
The menu is (almost) the same.
The speed is the same (exactly the same framerates with the same options : 7fps on triple video with no frameskip, need 1x gfx and skip 2 frames to get sound without cracks)
Zero
March 15th, 2002, 17:57
Note: That that is an old version checkout www.t-tutomu.com for the latest release (1.02) or chek the old site you gave me and hit Link and then T-Tutomu's Homepage.
I compared it and it's really strange that that is the same.
you might be right about that we are using the same compiler or so.
I still don't get it though.
zorbid
March 15th, 2002, 18:00
and about the ini, speed and menu?
And why didn't you document the soundecho in 0.3 version (it was possible to turn it on whith the ini) ?
You announced it a new feature of 0.5.
Y o u . a r e . a . l a m e r.
blizz
March 15th, 2002, 18:17
Originally posted by Jaz
Why is everyone giving Zero a hard time, again? ???
Why should we care? ???
Zero
March 15th, 2002, 18:20
I'll check my Ini right now.
Here it is :
GBXPLAYER INI
Only for use with GBXPLAYER 0.6 and higher.
[Other]
Emulator=1
Wait=1
FrameSkip=0
Priority=2
RomPath= undefined
[Video]
ScreenSize=1
[Sound]
Sound Channel 1=1
Sound Channel 2=1
Sound Channel 3=1
Sound Channel 4=1
Note that this is the INI from private beta 0.6
About speed :
WINGBC screen size 3 speed and no frameskip = 10 ~ 30 FPS
GBXPLAYER screen size 3 speed and no frameskip = Always 11 FPS.
WINGBC screen size 1 and no frameskip and no wait = 310 ~ 350 FPS.
GBXPLAYER screen size 1 and no frameskip and no limit = 275 ~ 300 FPS.
So I guess WINGBC is a bit faster then GBXPLAYER.
Note that this using the private beta (0.6)
I got to admit that the menu's are pretty similair but that's a basic GUI for emu's.
Zero
March 15th, 2002, 18:25
Originally posted by zorbid
and about the ini, speed and menu?
And why didn't you document the soundecho in 0.3 version (it was possible to turn it on whith the ini) ?
You announced it a new feature of 0.5.
Y o u . a r e . a . l a m e r.
I told people they were able to do that before but that it then required INI editing so it wasn't exactly a new feature but a more worked out feature.
{sarcasm mode on}
Thanks for your support Zorbid (the Y o u . a r e . a . l a m e r. comment I mean by this)
{sarcasm mode off}
Zero
March 15th, 2002, 18:28
Read the post above yours.
zorbid
March 15th, 2002, 18:37
Release the source of ver. 0.25, and tell how you compiled it.
Zero
March 15th, 2002, 18:44
As I told a while back here on Emutalk I ain't gonna release a source code ever because of the fact that someone could try to make a hacked copy of GBXPLAYER.
I compiled it using Visual Basic 6.0 Service Pack 5 enterprise Edition.
zorbid
March 15th, 2002, 19:19
Farewell.
Jaz
March 15th, 2002, 19:26
Originally posted by blizz
Why should we care? ???
True true..
aprentice
March 16th, 2002, 10:07
Why ask him for the source, he aint got it.
And Hacked version of GBXPLAYER? ROTF get your shit
straight, who wants to hack a hacked version of visual boy or wingbc? And your fps shit isnt convincing, and your storyline is straight out of hollywood. Who you trying to fool, save yourself while you still can, you 3 inch small penis afghan hairy pussy girl.
Josep
March 16th, 2002, 10:31
lemme get this straight, are you guys nailing Zero because he is trying to get credit for something he didn't do, or something he just copied? If so, um, WHO CARES, its all free and nothing but cock and bull if you ask me;)
2fast4u
March 16th, 2002, 10:58
Originally posted by Josep
lemme get this straight, are you guys nailing Zero because he is trying to get credit for something he didn't do, or something he just copied? If so, um, WHO CARES, its all free and nothing but cock and bull if you ask me;)
the point is that he took credit for something someone else did, what qualifies him as a lamer.
DK64
March 16th, 2002, 11:14
well, heres a way to prove urself, zero...
compile an old copy of ur source with a completely different gui, that will earn u some brownie points...i have serious doubts about ur ability to do it though...
another way would be to make it show a boot-screen while u load a rom, that would be hella hard w/o source
go on, do either/both of those...
zorbid
March 16th, 2002, 12:47
If you have some time to lose open gbx player 0.5 and WinGBC 0.5c in a hex editor. You find 99% of WinGBC in GBX player. The only differences are the gui and the icons:
WinGBC uses windows dlls to display it's gui. Zero replaced it by a "custom" one. That's why GBX player is 100 Kb heavier.
So the only thing he could change is this gui...
Sadly GBXPlayer is fake.
I wouldn't have mind that much if:
1. he hadn't denied the obvious.
2. he had not faked his brother's death. (does he exist anyhow?).
Zero must be a very lonely guy. I think we should give him a second chance. He is a nice guy(gui?), when he doesn't try to fool people. ;)
P-Strife
March 16th, 2002, 13:34
Let's also not forget how he has basically insulted two authors. Did you know the WinGBC author actually knew about this before any of us did, outside of a few Japanese emulation people. Check the WinGBC BBS out, it's been known for awhile over there. I think they found it funny how it blew up in his face here at emutalk, they were interested - especially the author.
So let's see, he insulted two authors, lied about a death, lied about the truth of hacks twice on here alone, and now he keeps lying about it to everyone despite the obvious fact that they are damn good hacks (my opinion, only positive).
What does such a mighty thing warrant on here should be the question. Emulators Unlimited is a different item he has to handle.
Mista P
Zero
March 16th, 2002, 14:28
What would you like to see a GBC GUI or something it is possible it's just not that easy and as for all of you doubting me please respond what kinda GUI you want and I'll try to make it and I will release the private 0.6 beta as soon as possible.
Just you guys wait and see.
Jaz
March 16th, 2002, 15:27
We'll wait.. :)
zorbid
March 16th, 2002, 15:52
Just you guys wait and see.
:D
Keith
March 16th, 2002, 16:51
Why wait and see? The Damage is done. There is no reason to keep this going on any longer. You have been found guilty by the obvious evidence against you. Atleast have the dignity to apologize to the authors whos work you stole and left uncredited, apologize to all the users you lied to and tried to trick into feeling some sort of sympathy for the faked death of your brother X, and apologize to yourself for being so damn stupid.
Martin
March 16th, 2002, 18:35
Alright, this is getting tiresome. I'll write down some points that the Admins of EmuTalk have noticed and therefore can prove Zero as a liar.
1. In this thread (http://www.emutalk.net/showthread.php?threadid=3180) Zero posts a fake screenshot of a high score of a flash game. His score is 872, and after I say that a score like that is impossible, he suddenly changes his mind and says he got a score that high because he's at his uncle's place using a 486. The funny thing is that he's on the exact same IP as any other post he posted during the last 3 weeks (we only checked his activity at EmuTalk 3 weeks back).
2. In this thread (http://www.emutalk.net/showthread.php?threadid=3344) Zero posts about his brother's death and the release to come. Same IP.
3. In this thread (http://www.emutalk.net/showthread.php?threadid=843) Zero offers downloads of his GB emu on his FTP. Same IP as above. On the second page of that thread he says "I know the download isn't working now that's due to Windows XP crashing (and I mean totally crashing ) But now I have reinstalled Windows 98 SE and it seems to make my PC run slower anybody who knows how to fix this ? The download will be up when I have rebuilded my FTP server which was lost in the crtashing period". He posted that with the same IP as before, and the FTP is, as mentioned above, also on that IP.
The IP was traced to Chello, an ISP in Amsterdam.
Also, hmm...who was it that claimed that his friend had hacked into his account at the BoycottAdvance forum and released a fake version of BoycottAdvance some months ago? This all makes sense now.
sk8bloke22
March 16th, 2002, 19:21
wat a silly billy! all i can say to zero is EAFOS
h-e-l-l-o
March 16th, 2002, 19:53
well zero do you want to say something more?:hrm: never expectet this but o well :plain: zero is a faker and out:angry:
Evil Squall
March 16th, 2002, 20:23
now I 'm wondering which emulator he is going to rip off as he said he is doing a GENESIS player and SNES player.;)
2fast4u
March 16th, 2002, 21:17
Originally posted by Evil Squall
now I 'm wondering which emulator he is going to rip off as he said he is doing a GENESIS player and SNES player.;)
forget it. no one is ever gonna believe him a thing anymore.
Josep
March 16th, 2002, 23:19
Sad story, now i think you guys are figuring out the nothingness in Zero's life, he's probably crying now;) 'hence the name zero, Irony in this all?
Jaz
March 17th, 2002, 01:52
It is a rather sad story.. :P
Zero
March 17th, 2002, 02:08
Well I'm confessing right here and right now that I Zero am guilty of the facts laid out by Martin and everybody here. I take full responsibility for the actions I took.
Furthermore I want to apologize to the real emu authors , Forgotten and T-Tutomu they deserve all credit for their wonderfull emu's.
Furthermore I apologize to all the users which I quite frankly lied to.
Furthermore there is one thing you can learn from all of this and that's the fact that people are tricked to fast to believe that an emu is legit , this was my entire idea , to see how fast people would find out that the emu is a fake , I made it more easier for you guys by each release.
The fact is that I'm a Hacker.
And as P-Strife posted :
"despite the obvious fact that they are damn good hacks (my opinion, only positive)"
So you see that a pretty good Hacker can make people believe a lot of things.
As for Emulators Unlimited , PeterD, The Fox , Mesman00
I kept this a secret for all of you because otherwise i would never know how fast someone would find out without anyone knowing.
So Emuunlim can take down the site , I don't care about the site that much (no offense Mesman00 but thanks for all your help on proving this fact)
As for the "death of my brother" this was just something to make the story sound even more fishy.
Well after this last statement I will leave the emu scene forever.
That is in the sense of hacking emu's I will still remain a frequent Emutalk user to help out people with their problems an to give some feedback.
I hope this clears everything up , and once again i'm sorry for doing what I did but the most important lesson has been learned to a lot of people : always make sure an emu is 100% legit before believing it is.
MOST OF ALL I WANT TO APOLOGIZE TO :
- Forgotten , one of the best emu authors out there,
- T-Tutomu , also a great emu author,
- The whole Emuunlim Crew,
- Mesman00 ,
- Every user who believed GBXPLAYER was legit ,
- Anybody who I have offended in every other way.
Zero.
Redah
March 17th, 2002, 02:17
s<censored>w you :angry:
f<censored>ck you :pissed:
You <censored> <censored> <censored> <censored> <censored> <censored> <censored> piece of <censored>.
There. Now that that's out of the way... this was probably the LAMEST confession ever. "Just wanted to see..." Yeah, right. It's not a <censored> experiment man.
Had your fame?
Now <censored> off. No need to help people, we got Smiff for that :plain:
Slougi
March 17th, 2002, 02:17
Ghey
blizz
March 17th, 2002, 02:26
for his next trick Zero will provide the worlds first Naomi 2 emulator which can run on Pentium 100Mhz with MB ram :D
Zero
March 17th, 2002, 02:38
Redah, In the Official flame Zero thread :
I didn't mean that I meant since the word got out that GBXPLAYER was fake it where about 20 ~ 30 within one day conserning the fake emu.
2fast4u
March 17th, 2002, 02:40
i guess u cried for it, zero. dont whine now, its too late.:angry:
Zero
March 17th, 2002, 02:49
I ain't crying about anything it was my intention to get caught eventually , but I have to admit it was easy to fool everyone so I made the story a little more fishy so that you guys whould get suspicious.
Sorry for making use of your emu's , Forgotten & T-Tutomu , but this was just an experiment.
I hope I haven't caused to much harm with this experiment and I apologize once again.
Remote
March 17th, 2002, 02:53
Originally posted by Zero
Furthermore there is one thing you can learn from all of this and that's the fact that people are tricked to fast to believe that an emu is legit , this was my entire idea , to see how fast people would find out that the emu is a fake , I made it more easier for you guys by each release.
As for Emulators Unlimited , PeterD, The Fox , Mesman00
I kept this a secret for all of you because otherwise i would never know how fast someone would find out without anyone knowing.
As for the "death of my brother" this was just something to make the story sound even more fishy.
I find this explination of yours a little hard to believe, if you wanted to make an expirment then the logical time for you to come clean would be shortly after you had won you first and last award, not under gunthreat directly after you were cought. This entire post sounds like a post production, your real intent was to decieve people into believing you were dedicated and skilled enough to make your own product, apparently you are not. Also re you hacking skills, you are an incredible "hacker" you downloaded a resource editor and gave it a face lift. Unfortanetely for us, you weren't the first one nor last...
2fast4u
March 17th, 2002, 02:56
Originally posted by Zero
I ain't crying about anything it was my intention to get caught eventually , but I have to admit it was easy to fool everyone so I made the story a little more fishy so that you guys whould get suspicious.
Sorry for making use of your emu's , Forgotten & T-Tutomu , but this was just an experiment.
I hope I haven't caused to much harm with this experiment and I apologize once again.
read remote's post - exactly wot i think.
Trotterwatch
March 17th, 2002, 02:56
Remote has said all that I was going to say.
Zero
March 17th, 2002, 02:58
I have never in my life used a resource editor I always do it the traditional "hacker" way. (I won't explain the technique here it might make people want to create hacked versions of emu's for instance)
2fast4u
March 17th, 2002, 03:00
Originally posted by Zero
(I won't explain the technique here it might make people want to create hacked versions of emu's for instance)
and all of the sudden u think that way, huh? then what was before? sorry ur story still seems fishy and not worth believing.
Zero
March 17th, 2002, 03:08
As I explained this was an experiment , I know that hacking an emu is a bad thing and therefore i don't want to promote this or anything it was just an experiment no more no less.
Remote
March 17th, 2002, 03:11
Originally posted by Zero
I have never in my life used a resource editor I always do it the traditional "hacker" way. (I won't explain the technique here it might make people want to create hacked versions of emu's for instance)
Hmm, so if you were to say how you and the rest of the "hacker community" does things you would not only risk being being the direct source for more rip offs, you would also break the secret hacker code, and by doing this you wouldn't be able to use the secret hacker greeting... It is people like you who gives skilled people a bad reputation... If you truly are a hacker, then write your own boot sector erasor and post a part of it here...
Dominator
March 17th, 2002, 03:28
I have never in my life used a resource editor I always do it the traditional "hacker" way. (I won't explain the technique here it might make people want to create hacked versions of emu's for instance)
LoL. If I had time to waste, I'd look into your binary to find out the usual "resource hacker" tools signatures.
However, some lamers like Crewde and his Mimix/Hydrahle thingie already experienced the realm of fooling people with resource hacked emus. And they always get caught with blood on their hands.
So you're into "traditional hacking" right? No kids tool? Oldskool?
Hmm .. Let's go with an easy question then.
Gimme a single way you'd use to optimize the asm core of reversed Win32 PE file without changing any section, adding any section, moving any part of the code (you know what the consequences are, right?) or go with some dumbass "code snippet" method.
alright .. go query your favorite search engine. :devil:
Remote
March 17th, 2002, 03:41
Originally posted by Dominator
Hmm .. Let's go with an easy question then.
Gimme a single way you'd use to optimize the asm core of reversed Win32 PE file without changing any section, adding any section, moving any part of the code (you know what the consequences are, right?) or go with some dumbass "code snippet" method.
alright .. go query your favorite search engine. :devil:
If that is an easy question, I really wouldn't want to be the one who had to answer to a hard one... Out of pure interest, what is PE abbrevated from? I have never heard nor seen that. Eventhough asking someone to post a code snippet is a plain method it shows if someone is skilled or not. Most people would query a search engine a come back with a couple of lines of code, written in such a way there is no way they could have written it themself...
Teamz
March 17th, 2002, 04:00
"Furthermore I apologize to all the users which I quite frankly lied to.
Furthermore there is one thing you can learn from all of this and that's the fact that people are tricked to fast to believe that an emu is legit , this was my entire idea , to see how fast people would find out that the emu is a fake , I made it more easier for you guys by each release."
Like Martin said in another thread, you not only lied about the fake emu, but about other things, so these were pure lies.
pathetic .. go hide now
gokuss4
March 17th, 2002, 04:04
(to this whole entire thread besides page 1)
[/spam] :p
Zero
March 17th, 2002, 04:12
Here's a code snippet (a pretty long one) to perform several string operations, like trimming, find next occurence of a substring, get next word, take a substring, remove all occurences of a substring, etc,etc this one is for C++ by the way :
#ifndef STRINGOPERATIONS_H
#define STRINGOPERATIONS_H
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
class StringOperations
{
public:
StringOperations();
~StringOperations();
public:
/** This method finds next occurence of 'substring' in
* 'string' starting at position 'pos'. Returns the position
* where this new occurence starts.
*/
int nextOccurence(char *string, char* substring, int pos);
/** This method is simetric to the previous one.
*/
int previousOccurence(char *string, char *substring, int pos);
/** Copies a part of 'origin' into 'dest'. Starts copying in
* 'start' and finishes in 'end'.
*/
void copyFragment(char *origin, char *dest, int start, int end);
/** Removes the segment [start --- end] from given
* string. This method does not deallocate memory.
*/
void removeSubstring(char *string,int start, int end);
/** Adapted from a function created by David Fillion (tarot@users.sourceforge.net)
* Returns a substring.
* This method allocates memory.
*/
char *substring (char *buffer, unsigned int start, unsigned int length);
/** This method starts at 'pos' and skips all 'isspace()' characters.
* Places at 'pos' the position of the first non-whitespace and
* returns 0 if corrrect and 1 if there have been any problems.
*/
int skipWhitespaces(char *string, unsigned int *pos);
/** This method returns a string with next word
* from 'string' starting at '*pos'.
* If (string[*pos]) is a whitespace, then returns NULL.
* Sets in '*pos' the position of the first character that
* is not included in returned word.
* This function allocates memory.
*/
char *getNextWord(char *string, unsigned int *pos);
/** This method returns a new string that is a copy
* of the given one until finding 'token'.
* If 'token' is not found, returned sting is a
* copy of the given one.
* This method allocates memory
*/
char *substringUntil(char *string, char *token);
/** This method returns a new string that is
* a substring of 'string' starting at the first
* occurence of 'token' until the end of 'string'.
* If token is not found, it returns NULL.
* This method allocates memory.
*/
char *substringFrom(char *string, char *token);
/** Converts given string to uppercase.
*/
void uppercase(char* string);
/** Removes all whitespaces from string
*/
void trim(char*string);
/** Removes character 'which' from 'string'.
* I don't deallocates memory, simply moves
* character positions.
*/
void removeCharacter(char *string, unsigned int which);
/** This method creates a new string which is a copy
* of the given one except by it's first and last characters
* if they are quotes (simple or double).
* This method allocates memory.
*/
char *removeLeadingQuotes(char *origin);
/** This method encodes the string passed. I transforms
* the '\n' character in '\\n'
* the '\' character in '\\'
* the '"' character in '\"'
* This method allocates memory.
*/
char *encodeText(char *origin);
/** The simetric method to the one above.
* This method allocates memory.
*/
char *decodeText(char *origin);
/** This method returns a new string equal to 'origin' but
* whitout any occurence of the 'toRemove' character.
* This method allocates memory.
*/
char *removeAllOccurences(char *origin, char toRemove);
/** This method returns the number of occurences of character
* 'c' in the given string.
*/
unsigned int howManyTimesAppear(char *string, char c);
};
#endif
/
#include "stringoperations.h"
StringOperations::StringOperations()
{
}
StringOperations::~StringOperations()
{
}
/**************************************** *********************************/
/** This function copies a part of origin into dest.
* it starts copying in 'start' and ends in 'end'.
*/
void StringOperations::copyFragment(char *origin, char *dest, int start, int end)
{
int i;
for (i=start;i<=end;i++)
{
dest[i-start]=origin[i];
}
dest[end-start+1]='\0';
}
/**************************************** *********************************/
int StringOperations::nextOccurence(char *string, char* substring, int pos)
{
/** Searches the next occurence of "substring" in "string" starting
* at 'pos'
* If it doesn't exist, returns -1
*/
int i;
int j;
int k;
int found;
int longitud;
int longitudSub;
found = 0;
i = pos;
longitud = strlen(string);
longitudSub=strlen(substring);
j = 0;
while ((!found) && (i<longitud))
{
if (string[i]==substring[j])
{
k = i+1;
j++;
found = 1;
while ((i<longitud) && (j<longitudSub) && (found))
{
if (string[k] == substring[j])
{
k++;
j++;
}
else
{
found = 0;
}
}
if (j<longitudSub)
{
found = 0;
}
if (!found)
{
i++;
j=0;
}
}
else
{
i++;
}
}
return(found?i:-1);
}
/**************************************** *********************************/
int StringOperations::previousOccurence(char *string, char *substring, int pos)
{
/** Searches the previous occurence of "substring" in "string" starting
* at 'pos'
* If it doesn't exist, returns -1
*/
int i;
int j;
int k;
int found;
int longitud;
int longitudSub;
found = 0;
i = pos;
longitud = strlen(string);
longitudSub=strlen(substring);
j = longitudSub-1;
while ((!found) && (i>=0))
{
if (string[i]==substring[j])
{
k = i-1;
j--;
found = 1;
while ((i>=0) && (j>=0) && (found))
{
if (string[k] == substring[j])
{
k--;
j--;
}
else
{
found = 0;
}
}
if (j>=0)
{
found = 0;
}
if (!found)
{
i--;
j=longitudSub-1;
}
}
else
{
i--;
}
}
return(found?i:-1);
}
/**************************************** *********************************/
void StringOperations::removeSubstring(char *string,int start, int end)
{
int i;
int longitud;
int howMany;
howMany=end-start;
longitud = strlen(string);
for (i=start;i<longitud-howMany;i++)
{
string[i] = string[i+howMany+1];
}
}
/**************************************** *********************************/
/* Function created by David Fillion (tarot@users.sourceforge.net)
Return a substring
Note:
If LENGTH is greater then the length of BUFFER, then a copy of BUFFER
is returned.
If LENGTH < 1, a NULL is returned.
If START < 0, a NULL is returned.
The starting position begins at 1.
*/
char *StringOperations::substring (char *buffer, unsigned int start, unsigned int length)
{
static char *sub;
if ((start > strlen (buffer)))
return NULL;
if (strlen (buffer) < length)
{
sub = (char*) strdup (buffer);
return buffer;
}
sub = (char*)malloc (sizeof (char) * (length + 1));
if (sub == NULL)
{
fprintf (stderr, "substring(): insufficient memory, exiting\n");
exit (1);
}
memset (sub, '\0', length + 1);
/* Copy substring */
buffer += start;
memcpy (sub, buffer, length);
return sub;
}
/**************************************** *********************************/
int StringOperations::skipWhitespaces(char *string, unsigned int *pos)
{
unsigned int len;
int found;
found = 0;
len = strlen(string);
while ((!found) && (*pos<len))
{
found = !isspace(string[*pos]);
if (!found)
{
(*pos)++;
}
}
return(!found);
}
/**************************************** *********************************/
char *StringOperations::getNextWord(char *string, unsigned int *pos)
{
unsigned int len;
int found;
unsigned int start;
char *word;
word = NULL;
start = *pos;
found = 0;
len = strlen(string);
while ((!found) && (*pos<len))
{
found = isspace(string[*pos]);
if (!found)
{
(*pos)++;
}
}
// if (found)
// {
(*pos)--;
if (*pos-start>0)
{
word = substring(string,start,(*pos-start+1));
}
(*pos)++;
// }
return(word);
}
/**************************************** *********************************/
char *StringOperations::substringUntil(char *string, char *token)
{
int until;
until = nextOccurence(string,token,0);
if (until<0)
{
until = strlen(string)+2;
}
return(substring(string,0,until));
}
/**************************************** *********************************/
char *StringOperations::substringFrom(char *string, char *token)
{
int until;
unsigned int start;
unsigned int end;
char *value;
until = nextOccurence(string,token,0);
if (until<0)
{
value = NULL;
}
else
{
start = until+strlen(token);
end = strlen(string)-start;
value = substring(string,start,end);
}
return(value);
}
/**************************************** *********************************/
void StringOperations::uppercase(char* string)
{
unsigned int i;
unsigned int len;
len = strlen(string);
for (i=0; i<len;i++)
{
string[i] = toupper(string[i]);
}
}
/**************************************** *********************************/
void StringOperations::trim(char*string)
{
unsigned int i;
unsigned int len;
len = strlen(string);
i=0;
while (i<len)
{
if (isspace(string[i]))
{
removeCharacter(string,i);
len = strlen(string);
}
else
{
i++;
}
}
}
/**************************************** *********************************/
void StringOperations::removeCharacter(char *string, unsigned int which)
{
unsigned int i;
unsigned int len;
len = strlen(string);
for (i=which;i<len;i++)
{
string[i] = string[i+1];
}
}
/**************************************** *********************************/
char *StringOperations::removeLeadingQuotes(c har *origin)
{
unsigned int i;
unsigned int len;
unsigned int newLen;
unsigned int begin;
unsigned int end;
char *value;
len = strlen(origin);
newLen = len;
if ((origin[0]=='\'') || (origin[0]=='\"'))
{
newLen--;
begin=1;
}
else
{
begin=0;
}
if ((origin[len-1]=='\'') || (origin[len-1]=='\"'))
{
newLen--;
end = len-1;
}
else
{
end = len;
}
value = (char*)malloc(sizeof(char)*(newLen+1));
for (i=begin; i<end;i++)
{
value[i-begin] = origin[i];
}
value[i-1] = '\0';
return(value);
}
/**************************************** *********************************/
char *StringOperations::encodeText(char *origin)
{
unsigned int len;
unsigned int i;
unsigned int newLen;
unsigned int j;
char *newString;
len = strlen(origin);
i=0;
newLen = 0;
while (i<len)
{
switch(origin[i])
{
case '\n':
newLen +=2;
break;
case '\"':
newLen +=2;
break;
case '\\':
newLen += 2;
break;
default:
newLen++;
break;
}
i++;
}
newString = (char*)malloc(sizeof(char)*(newLen+1));
j = 0;
for (i=0;i<len;i++)
{
switch(origin[i])
{
case '\n':
newString[j] = '\\';
j++;
newString[j]='n';
j++;
break;
case '\"':
newString[j] = '\\';
j++;
newString[j]='"';
j++;
break;
case '\\':
newString[j] = '\\';
j++;
newString[j]='\\';
j++;
break;
default:
newString[j] = origin[i];
j++;
break;
}
}
newString[j] = '\0';
return(newString);
}
/**************************************** *********************************/
char *StringOperations::decodeText(char *origin)
{
char *newString;
unsigned int len;
unsigned int newLen;
unsigned int i;
unsigned int j;
len = strlen(origin);
newLen = 0;
i = 0;
while (i<len)
{
if (i<len-1)
{
if (origin[i]=='\\')
{
switch(origin[i+1])
{
case 'n':
case '\"':
case '\\':
newLen++;
i+=2;
break;
default:
fprintf(stderr,"ERROR\n");
break;
}
}
else
{
newLen++;
i++;
}
}
else
{
newLen++;
i++;
}
}
newString = (char*)malloc(sizeof(char)*(newLen+1));
i=0;
j=0;
while (i<len)
{
if (i<len-1)
{
if (origin[i]=='\\')
{
switch(origin[i+1])
{
case 'n':
newString[j]='\n';
break;
case '\"':
newString[j]='\"';
break;
case '\\':
newString[j]='\\';
break;
default:
fprintf(stderr,"ERROR\n");
break;
}
i++;
}
else
{
newString[j] = origin[i];
}
}
else
{
newString[j] = origin[i];
}
i++;
j++;
}
newString[j]='\0';
return(newString);
}
/**************************************** *********************************/
char *StringOperations::removeAllOccurences(c har *origin, char toRemove)
{
char *newString;
unsigned int i;
unsigned int len;
unsigned int j;
len = strlen(origin);
i = howManyTimesAppear(origin,toRemove);
newString = (char*)malloc(sizeof(char)*(len-i+2));
j = 0;
for (i=0;i<len;i++)
{
if (origin[i]!=toRemove)
{
newString[j] = origin[i];
j++;
}
}
newString[j] = '\0';
return(newString);
}
/**************************************** *********************************/
unsigned int StringOperations::howManyTimesAppear(cha r *string, char c)
{
unsigned int value;
unsigned int len;
unsigned int i;
value = 0;
len = strlen(string);
for (i=0;i<len;i++)
{
if (string[i]==c)
{
value++;
}
}
return(value);
}
Sorry if it's al little long but you asked for it.
Josep
March 17th, 2002, 04:37
and for zero's next trick he will make nemu v0.7a look as if it is nemu v0.8;) and just take credit for the original v0.7a, and he will try to "Trick" everyone and see how easy it is! without being payed, without anyone knowing...without any underlying principle except you've been caught red handed, just shutup and take it, pathological liar, no matter what the excuse is get another hobby
Slougi
March 17th, 2002, 04:40
Still ghey. But I am curious to see what Dom says to this :devil:
Harteex
March 17th, 2002, 04:53
It didn't take long time for Zero to use google I see :devil:
2fast4u
March 17th, 2002, 05:00
4:28 - 5:12 ... u call that fast ?? :devil: ;)
Harteex
March 17th, 2002, 05:03
Yea it's fast to be Zero :devil:
Last times he was on "vacation" and it took some days for him to reply
Slougi
March 17th, 2002, 05:16
Originally posted by Zero
/** Adapted from a function created by David Fillion (tarot@users.sourceforge.net)
.......
/* Function created by David Fillion (tarot@users.sourceforge.net)
Return a substring
Would that really be mentioned in source code? I don't think so, except on some formal web-site :angry: Or on the web-site of that guy.
Remote
March 17th, 2002, 05:32
Originally posted by Slougi
Would that really be mentioned in source code? I don't think so, except on some formal web-site :angry: Or on the web-site of that guy.
Projects are freely hosted on sourceforge as long as they release all of their source, here is a perfect example of what people should be doing... Giving credit where credit belongs... and mentioning, to others, when you borrow someone elses work...
Dominator
March 17th, 2002, 06:07
Remote : PE stands for Portable Executable file. What most peole usually call "executable" file or "binary".
Zero : obviously, you couldn't even understand my question.
Please tell me how the hell you could optimize the asm core with a piece of C++ code without adding any new piece of code/section to the file?
And however, how can you HACK a file and deal with C++ unless you're strong and arrogant enough to pretend that you could rebuild the C++ source of any PE file? (assuming that this was originally a C++ program).
Man, before you're start claiming you've got the slightest hacking ability, make sure you know what HACKING means ;)
Redah
March 17th, 2002, 06:24
:bs:
Reznor007
March 17th, 2002, 06:39
Building on what Dom said...Zero, there is a big difference in hacking a compiled binary, and just altering someone's source and recompling. If you were really hacking something, there would be no C++ or high level language involved. You would need to disassemble the .exe and do some ASM coding, and going by your responses, I doubt you could do that.
sk8bloke22
March 17th, 2002, 07:55
zero, no offense man, but ur weird. i dont get wat kind of experiment this thing was for u. u wanted to see how long ppl wouldnt notice...and thats why u did this. u even faked someones death...now that is really odd. again no offence, but u must be a bit of a loner or something....i bet u even faked ur girlfriends, hmm EAFOS.
Renegade
March 17th, 2002, 09:13
all right guys, THIS IS ENOUGH, zero's said he is a lamer, now let's shut up, get on with life, and be more careful with what pple have to claim about emus (especially zero's)
:pj64:
Zero
March 17th, 2002, 11:59
Ok I confessed I am a lamer , so any of the mods please close this thread it's only causing spam now.
Keith
March 17th, 2002, 12:02
Ok closed it ... but your custom title stands :D
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.