@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> folks, i have this method with the following signature: const string& getValue( const string& key). I want to return an empty string is the key is not found. Is the best way to do that is to return a ref to a object static member string initialised to blank?
<1> mozai: bool getValue( std::string &p_out ) have the functure return true copy the value to the parameter, otherwise just return false.
<1> mozai: alternately, make two functions. one to test existance and another to return references on the precondition of existance.
<2> http://hcore.nerim.net/tasoeur/2006/01/30/scene.org.jpg
<3> anyone know how to deconstruct an exe? or how to identify which language it was written in?
<2> nope
<2> find the source
<3> that would involve industrial espionage :)
<2> I don't understand why you would care what language it was written in
<2> ask the person who wrote it
<4> Most .exe's are potentially identifiable as to the language(s) it was compiled from, though re***embling it to the source is impossible unless it was compiled with debugging information.
<3> I figured that if I knew which language I could decompile
<4> You can, however, dis***emble the sections and view the ***embly source.
<3> apparently not though
<3> ooo sounds interesting Apsu...
<4> If you like ***embly, it is.



<2> what company do you work for? and what company's source are you trying to steal?
<2> I ask merely for curiosity
<3> doh. wish I'd had the cash for uni now
<3> Legally can't disclose who I work for :)
<2> Legally can't decompiled someone else's source
<2> doesn't seem to be stopping you from trying to do that
<4> Depends on the licensing agreement, actually.
<3> hehe I can ***ure that this company doesn't want me to decompile. Though my intentions are perfectly good
<4> Just run it through a dis***embler and learn x86 ***embly. If that is the architecture of the .exe, in fact.
<5> ouch if not
<3> mmm
<3> again wish I had the cash for a quick uni degree!
<4> Why would you need a degree? x86 ASM isn't that bad.
<3> no?
<4> It's quirky as all hell, but the protected mode model is much less so.
<3> where's a good starting point?
<4> You just have to get intimate with the basic layout and then learn the exceptions in behavior for some of the registers.
<4> Hrm.
<4> Probably Art of ***embly
<4> There's free resources online
<4> Google :P
<6> probably a better starting point might be to take a simple program and compile it to asm source
<3> but of course
<4> Agreed.
<6> like this in unix/linux: gcc -S your_prog.c
<4> Tackle an ***embly listing from a simple program with a mnemonic reference in hand.
<4> EW. Not a GAS output. Oh God
<6> also works in win with cygwin or mingw
<4> :(
<4> GAS syntax is the most horrid creature for something so widespread.
<6> if you don't like gas, then use as, nasm, or another asm
<6> gcc can be tuned to use your choice for asm
<3> OK, so basically I have to learn to use *nix and ASM before I can fix these peoples horrific programming?
<3> :)
<4> Jaf: If that's your goal, then yes. And get very intimate with a good debugger.
<3> lol
<4> You're going to have all kinds of joy if you change existing, generated code.
<3> thank you
<4> Sure thing.
<6> jaf, depending on what you're trying to do
<6> you might not need to decompile/dis***emble anything
<3> By now I am probably the worlds foremost debugger! :)
<3> dp2: yes?
<6> there are ways to invoke and wrap the code in question
<3> oh yes...
<3> surely one needs knowledge of the original code in question?
<6> in the good/bad ol' DOS days, developers often wrote wrappers that ran other code. and the wrapper code used traps and other tricks to handle any special conditions.
<6> not necessarily
<3> hmm, can you expand slightly on that at all pls?
<6> if you don't know the code, then you need to be able to reverse the code via a "dead" code listing (a la decompiled/dis***embled code),
<7> pee pee two!
<6> you can use various monitoring tools/utilities to analyse the code while it's running
<6> what's up sca?! :)
<6> you can also reverse the code by analysing the data and/or control flow
<3> which tool/s would be helpful dp2?
<6> or you can do a combo of the 3
<6> check out http://www.sysinternals.com/ for starters
<6> Mark Russinovich is a well known Windows internals expert
<7> I just slept for half an hour on two office chairs. actually not too uncomfortable



<6> this is his site. he's the one who discovered the Sony rootkit
<3> IC :)
<3> thanks for all the help dp2, it's much appreciated. I have lots to read by the looks of it.
<7> so far, I've done exactly *nothing* today
<6> should have added a third chair, a pillow, a blanket, and some soft music in order to put you in the mood :)
<7> :)
<7> oh, I've been in "the mood" all day ;)
<6> jaf: welcome to the wonderful world of debugging/reversing
<3> what have I let myself in for! :)
<6> well, lots of reading for starters :)
<6> and that's just the 32-bit stuff
<7> and more importantly, lots of trying and playing around
<6> the 64-bit stuff gets even more "exciting"
<7> nothing beats hands-on experience
<6> yo UW! :)
<7> it's just like ***...
<8> hey dp2 :)
<3> lol
<6> lol hands on experience and *** . . . sounds like sca had too much time on his hands--pun intended.
<7> hehe, yeah
<7> there was quite a bit of mutual *********ion
<7> and she tasted yummy
<3> too much info me thinx!
<3> sounds like a nice girl though
<7> *sigh*
<7> gotta run a lab in 15 minutes
<7> :/
<7> but in 2 hours, it's back to doing nothing
<7> I'm such a bad boy
<3> run a lab? (pls excuse ignorance)
<7> a laboratory exercise or tutorial for a comp sci cl***
<3> ohh
<3> You're a feather clucker :)
<7> a what? :P
<3> hehe j/k. a clever fcuker
<3> afternoon Koston
<9> =) hi whatz up
<3> the sky :)
<9> =)
<9> do ya have a live compiler in here ?
<3> possibly
<3> why?
<9> it's good to have sometimes
<5> much better than dead ones
<3> hehe. indeed
<9> i have a few rows and i get a memory leak somwhere, i have no idea =(
<9> char *inp = (char *) malloc(512);
<9> scanf("%s",&inp);
<9> printf("%s",inp);
<3> example &inp?
<9> ahh i solved it =) took away & from scanf
<3> well done amigo
<9> it's only in C yoou'll have to include & in scanf
<9> strange
<3> whatcha using?
<2> it's only in scanf that you'll have to include the & in scanf
<2> C++ doesn't remove that
<3> mmm
<9> thx guys
<9> damn have to go to school soon =(
<9> and write some nice code probably
<3> better than having to go to work soon
<9> lol yeah
<9> where are you from ?
<9> us?
<3> Near England :)
<3> you remember the UK? Your close ally....
<3> where you go to school?
<9> chalmers =)
<9> yeah UK is nice
<9> do you know about chalmers ?
<3> nope
<3> too many pigeons but generally nice in UK yeah
<3> what's chalmers?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#allnitecafe
test your might.mp3 mortal kombat
allnitecafe+ops
Zdenka_Podkapova
margie on dalnet
#chat-world
#india
#kl
#allnitecafe
#india



Home  |  disclaimer  |  contact  |  submit quotes