@# Quotes DB     useful, funny, interesting





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



Comments:

<0> Well, what you just said clicked in my head as a "why didn't I think of that."
<0> LOL
<1> sorry ?
<0> That only makes sense that libc would be tied to the ISRs, at least to some fault.
<1> yup
<0> I should right him.
<1> well, what did he say exaclty ?
<1> he wrote a book on it... he must know what he's doing...
<0> Let me see if I can find it.
<0> I'm going to have to go through the book later.
<0> It's burried in there somewhere.
<0> It was right along the lines of what I was saying earlier... I saw similar guidance on a Russion site, too.
<0> Eh, either way, it's basically writing C in ***embly.
<1> if you use libc, yes.
<0> Pireau, are you familiar with Win32 and NASM?
<0> Perhaps you can help me...



<0> Or, did I ask you this already.. I cannot even remember.
<1> it's "pireau", not "Pireau". i'm not that important.
<1> i can try to help...
<0> Sorry. I always capitalize my sentences. I will try to remember.
<0> Can I pm you a smallish code listing?
<0> The error appears at the close of the program, and I'm sure it's something obvious that I'm just not seeing.
<0> You still there?
<1> yuo
<0> Oh, so go ahead and pm it?
<1> there's pasting sites..
<0> Where to?
<1> like pastebin and the like
<1> -->
<1> http://paste.lisp.org/new/
<1> --> http://pastebin.com/
<0> Okay... it should be at http://paste.lisp.org/display/22514.
<1> okay, what's the problem ?
<0> Okay, everything works fine up until the after the call to MessageBoxA.
<0> I can't see if the problem is in how I'm destroying the stack frame, or if I'm calling ExitProcess wrong...
<1> err
<1> ;Remove the Parameters sub esp, 16
<1> do that before restoring...
<1> and you're calling exitprocess wrong
<1> call needs an address
<1> what you're doing is call double word value found @ ExitProcess
<0> Okay.... so it should be "call ExitProcess" then?
<1> witch should be like push ebp; mov ebp,esp
<1> and modyfing the stack frame after you poped the saved value
<0> Shoot... Got to run.
<0> Man, how's that for luck.
<0> Thank you.
<1> no problem
<2> Eek I really should learn ASM properly
<2> Do something more complicated then 'Hello world'
<2> or an echo-ing program.
<1> i have a proggy that sends "Ah Dja?!" to port 6009 of local host
<1> in asm, without libc.
<2> Nice.
<2> Not too sure what libc is.
<1> wnat to see it ?
<2> Oh, standard C library?
<2> or..
<1> yeah
<2> ok
<2> Sure
<1> the Standard C library, used in C programms.
<2> Yep, just not familiar with libc
<1> ah, windows environment ?
<2> No, I program in C, but I don't usually call it libc
<1> how do you call it ?
<2> :\ the standard library?
<2> because I don't do much programming other than C
<1> gah ! pastebin is slow :(
<1> ah !
<2> Do most people use libc when doing asm?
<2> Apparently some 'purists' think if you're doing asm you shouldn't be using libc
<2> You know, the speed thing
<2> Dunno
<1> i don't use libc
<1> and i sometimes use libc



<1> i mostly prog in asm for fun
<1> and to test things before putting then in my OS
<2> Are you using pastebin.com?
<2> If so, don't. It wasn't working last time I checked (like 2 days ago).
<2> Use like pastecode.com
<1> http://paste.lisp.org/display/22515
<1> there
<2> Nifty
<2> I didn't know you could %define stuff
<1> yup
<1> the code's more readable...
<2> What is dword?
<2> I'm not too familiar with it
<1> double word
<1> 32 bits
<2> mov dword [x_args], PF_INET
<2> oh so is x_args sort of like an array
<2> and every 4 bytes
<1> it's memory
<2> its another element?
<2> I dunno
<1> yeah
<1> since i used it by splitting it in 32bits slices
<2> What is lea?
<1> load effective address
<1> not just the offset
<2> Btw I get a broken pipe
<2> Linux x86?
<1> yup
<1> (you have to: nc -l -p 1337)
<1> or create a listening socket on port 1337 to receive the msg.
<2> Ah :)
<2> Works
<1> :)
<2> Has anyone actually made an IRC bot in ASM?
<2> It would be an enormous waste of time
<1> i guess it's been made.
<2> mov dword [sockaddr+8], 0x00000000 ; padding ...
<2> what is padding?
<1> doing something you like isn't a waste of time.
<1> ah thats for the system call
<2> you can't have an emtpy 3rd element?
<2> or something
<2> empty*
<1> or a non existant one
<2> err thats what I meant
<1> you could put 0xDEADBEEF, it'll work.
<1> that sapce is reserved.
<2> 0x0100007F
<2> so how exactly did you get that value
<2> for 127.0.0.1 :\
<1> read it back wards...
<1> like 7F, 00,00 01
<1> 7 = 127
<2> Ah
<1> so: 127,0,0,1 -> 127.0.0.1
<1> so, what do you want to so in asm ?
<2> I dunno. What _should_ I do?
<2> Just learning
<2> I'm not entirely familiar with asm yet.
<2> Like I said, the extent of my abilities is an echo-ing progam
<2> program*
<2> :(
<1> ah, you could look up a book on asm
<1> like programming from the ground up
<2> Currently reading Linux ***embly HOW-TO
<1> cool
<2> Do you prefer intel or at&t syntax?
<1> intel
<2> Well I only know Intel atm
<2> Not sure if I should get used to the other
<1> get used to both
<1> AT&T syntax is teh syntax that gas understands


Name:

Comments:

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






Return to #asm
or
Go to some related logs:

t
amarok sort by path
#gentoo
#perl
tintin retsin
nvidia alc880 ubuntu install
debian VITESSE 8201
#linux
mod_evasiv
#fedora



Home  |  disclaimer  |  contact  |  submit quotes