The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: AgentSmithers on July 10, 2009, 09:26:55 PM

Title: DB in .code
Post by: AgentSmithers on July 10, 2009, 09:26:55 PM
vars_start:
                     db 0ffh,0ffh
                     db "MyString",0ffh
                     db "AnotherString",0h ;Marker to know we


I added this code to the of my .code segment
It dosent add it enless I have db 0ffh,0ffh at the start, Why is that?
Is there a better way?
Title: Re: DB in .code
Post by: Slugsnack on July 10, 2009, 09:43:39 PM
what do you mean.. ?

(http://img194.imageshack.us/img194/7348/stringe.jpg)
Title: Re: DB in .code
Post by: disintx on July 10, 2009, 11:07:03 PM
Wish I had a dual monitor setup :(

As you can see, the strings are still there...so I don't really understand what your problem is, you don't need 0ffh,0ffh...
Uness, of course, you are trying to not have NULLs. Which means you are copy/pasting (attempted) shellcode. lol.
However, if you really MUST be copying/pasting shellcode without knowing what you are doing, I'd suggest you seek help from the guy who wrote it ;)

Just so you know, we aren't stupid...dedndave has said it quite a few times...

P.S.
Quick google search will explain...

PPS: can I have your Call of Duty poster? it'd look better in my room.
Title: Re: DB in .code
Post by: AgentSmithers on July 11, 2009, 12:19:49 AM
Put it after the invoke process... Im sure it will be the same for you.
Title: Re: DB in .code
Post by: Slugsnack on July 11, 2009, 01:35:05 AM
and why would you put it there ? i'm so sick of your childish and script kiddy like antics now.. just stop this crap man..

on topic :

(http://img5.imageshack.us/img5/1001/49835466.jpg)
Title: Re: DB in .code
Post by: dedndave on July 11, 2009, 03:47:12 AM
lol - he wants to know how to modify code
and i ain't tellin - lol
i think he's trying to place a hook
Title: Re: DB in .code
Post by: disintx on July 11, 2009, 06:14:12 AM
To hutch:
my apologies for the link, I was only using it to validate my claims. Should have said "a quick google search will pull it up", but all the same I
shouldn't have posted it.
Title: Re: DB in .code
Post by: hutch-- on July 11, 2009, 06:44:47 AM
 :bg :U
Title: Re: DB in .code
Post by: sinsi on July 11, 2009, 09:54:43 AM
heh, did anyone notice the screenshots here were replaced for a while? Apparently imageshack got hacked by 'anti-sec'.
Title: Re: DB in .code
Post by: Mark Jones on July 11, 2009, 01:58:07 PM
This is your brain on "Security" topics:

(http://www.studentdepression.org/images/cartoons/down_spiral.gif) (http://www.studentdepression.org/images/cartoons/down_spiral.gif)
Title: Re: DB in .code
Post by: sinsi on July 11, 2009, 02:24:32 PM
Nah, this is my brain on "Security" topics
(http://www.rootology.com/images/exploding_head.jpg)
Title: Re: DB in .code
Post by: AgentSmithers on July 13, 2009, 07:12:38 PM
Quote from: dedndave on July 11, 2009, 03:47:12 AM
lol - he wants to know how to modify code
and i ain't tellin - lol
i think he's trying to place a hook

I odda post links to all the DLL injection and hooks ive written in C++ so you would shut the hell up about security, I was asking a simple question and had nothing to do with a hook at all I'm sure DB is explained in page 3 of a ASM book and I was asking something that isn't usually covered. your usually helpful but sometimes you just see my name and if you see mean put anything in this forum as close to xor eax,eax you'de probably accuse my of writing shellcode for a buffer overflow, I assure you this is a legit question.

Now back on track

MyLabel:
                    call call_back
                     db 0ffh,0ffh
                     db "MyFirstString",0
                     db "Test",0h ;Marker to know we


Not sure but when I do remove db 0ffh It dose not add it =(

Yeah just did it again and looked in olly without db 0ffh,0ffh I dont see it getting added to the binary at all, its confusing.

Ahh Okie now its olly thats overlooking it

After 0ffh twice it shows ascii information but If I dont it take the ASCII information and thinks its opcodes, So instead of seeing my strings I was seeing stuff such as PUSH EBP etc etc... Why does olly look at it as opcodes but when I put to Hex Digets infront it sees them for what they are as ascii char's?
Title: Re: DB in .code
Post by: dedndave on July 13, 2009, 08:00:00 PM
lol - you're suuuuuuch a skiddy
if windows didn't provide copy/paste, you'd be playing tetris
try not to insult our intelligence quite so much - you'll get a lot more help
Title: Re: DB in .code
Post by: Mark Jones on July 13, 2009, 08:31:19 PM
Tell me secret agent boy, why should we help you learn to break programs, when some of us are trying to make a living creating them? Isn't that like shooting oneself in the foot? :eek "Here's a loaded gun kid, have fun... no, don't point it at me... BANG"

Or is it "our" problem for assuming there is inherent value in finely crafted code? :'( In that case, I guess Omish furniture should also be "free," along with everything else in life which is created by humans? So... human time is worthless, is that what you're saying? Why then, should I bother with this reply?

That's it... I quit coding. It is no longer worth it. One less app for you to break I guess.

Tell ya what. When you get your dream job and are working hard to pay for your children's education, I'm gonna come out there and offer your boss that I do your job for free. Once you're out of work and starving, I'll gloat in a public forum about how this kind of "security" should be tolerated and how I have done nothing wrong.
Title: Re: DB in .code
Post by: Slugsnack on July 13, 2009, 08:40:31 PM
why doesn't someone just ban this damn skiddy

AgentSmithers : disintx already busted your ass earlier with a link from where you ripped ( again ) your 'code'

do you think bragging about dll injection and writing a hook is impressive ? it's kids play, some simple API calls. i did that crap when i was like 13

you 'assure' us you are asking a 'legit question' yet time and time again you have been shown to be lying or just called out on your crap. unlike on the 'hacking' forums you no doubt frequent, people here are actually intelligent and can see straight through your half-assed attempts at deceit

from now unless i deem any questions from you legitimate, i will not be replying to any more of your threads. i'm sure that goes the same for many of the others that have helped you time and time again
Title: Re: DB in .code
Post by: AgentSmithers on July 13, 2009, 08:43:19 PM
Quote from: dedndave on July 13, 2009, 08:00:00 PM
lol - you're suuuuuuch a skiddy
if windows didn't provide copy/paste, you'd be playing tetris
try not to insult our intelligence quite so much - you'll get a lot more help

Im not insulting your intelligence im well aware of you being more skill then I at asm but Ive tryed making a point in severval threads showing my intrested in how a processor actual works and you discourage me every change you get making up reasons anyway possible to show miscellaneous attempts coming from me which arnt even remotely Correct/True, I want you to see that. Im asking a honest question and trying to be a member of this forum.
Title: Re: DB in .code
Post by: dedndave on July 13, 2009, 08:56:15 PM
Quote...and you discourage me every change you get making up reasons anyway possible to show miscellaneous attempts coming from me which arnt even remotely Correct/True...
i have helped you several times - with things having to do with how to write assembly language code
i am sure you can understand why we are suspicious - lol
you brought that on yourself
if it looks like you are trying to do something out of the norm (which is most of the time), we are likely to question it
we have reason for doing that - and you gave us that reason
so - don't try to turn the table on me and make me look like the bad guy - again, insulting our intelligence
if you do not like the way you are treated, remember, you are to blame for that
Title: Re: DB in .code
Post by: AgentSmithers on July 13, 2009, 10:57:38 PM
Quote from: dedndave on July 13, 2009, 08:56:15 PM
Quote...and you discourage me every change you get making up reasons anyway possible to show miscellaneous attempts coming from me which arnt even remotely Correct/True...
i have helped you several times - with things having to do with how to write assembly language code
i am sure you can understand why we are suspicious - lol
you brought that on yourself
if it looks like you are trying to do something out of the norm (which is most of the time), we are likely to question it
we have reason for doing that - and you gave us that reason
so - don't try to turn the table on me and make me look like the bad guy - again, insulting our intelligence
if you do not like the way you are treated, remember, you are to blame for that

You consider using DB in .code block to be out of the ordinary, I'm not trying to make you look like a bad guy and im sure this question has been asked before.
Title: Re: DB in .code
Post by: AgentSmithers on July 13, 2009, 11:03:13 PM
Quote from: Slugsnack on July 13, 2009, 08:40:31 PM
why doesn't someone just ban this damn skiddy

AgentSmithers : disintx already busted your ass earlier with a link from where you ripped ( again ) your 'code'

do you think bragging about dll injection and writing a hook is impressive ? it's kids play, some simple API calls. i did that crap when i was like 13

you 'assure' us you are asking a 'legit question' yet time and time again you have been shown to be lying or just called out on your crap. unlike on the 'hacking' forums you no doubt frequent, people here are actually intelligent and can see straight through your half-assed attempts at deceit

from now unless i deem any questions from you legitimate, i will not be replying to any more of your threads. i'm sure that goes the same for many of the others that have helped you time and time again

I have no idea wtf your talking about disintx finding a link, Post it please?

And this was a legit question, I was wondering why my ASCII was missing. I found out it wasn't, My string started with a 'U' which was a Legit OPCode so olly thought it was all code and 0FFH was not a Legit Opcode so everything it saw after that appeared as plane ascii, This thread was totaled hosed down horribly for nothing. it was a simple Legit question.
Title: Re: DB in .code
Post by: disintx on July 13, 2009, 11:47:26 PM
Google search ",0h ;Marker to know we
The link was removed because that's not stuff the forum wants to be associated with.

Why don't you try to explain to us what possible legitimate applications you could have in doing this?
Moreover, why, when we search, does it point to something illegitimate?

As dedndave said (along these lines)
QuoteHe is asking how to build C, A, & T and not expecting us to read it as "CAT"

I am all for asking questions and learning but don't expect anyone to be hunky dory when most people are vehemently against what you are trying to do. You are simply insulting everyone here by trying to pretend this is not out of the ordinary.

Nick, please stop this crap. If you knew what you "say you know (http://controllingtheinter.net/BOFMSCPP.php)" (link goes to his website), then why would you be asking about this stuff? :)
Title: Re: DB in .code
Post by: AgentSmithers on July 13, 2009, 11:55:56 PM
Cause the question's I ask are legit 100% you guys just assume otherwise. Period.
Title: Re: DB in .code
Post by: disintx on July 14, 2009, 12:00:51 AM
Explain how it's legit. If it truly is legit, I'm sure most of us will apologize.
Title: Re: DB in .code
Post by: dedndave on July 14, 2009, 01:42:37 AM
i think this subject has been covered
stick a fork in it, or .....
(http://board.xwponline.net/emoticons/beatingA_DeadHorse.gif)