Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Given below a shellcode,
char shellcode[] = <moderated>
What it means(that is what is \x31 ,\xc0 etc.)?
basically, what you show is just a string that consists of an apparently arbitrary sequence of bytes. In C, you can use the escape sequence \xHH, where HH is the hexadecimal representation of a byte.
I have no idea why the programmer calls it shellcode, nor in what context this byte sequence makes sense.
Quote:
Originally Posted by mr.cracker
Is shell code and assemby language are SAME?
No. There is no such thing as shellcode, that's probably an invented name the programmer chose as being appropriate for what he's about to do. Hence your follow-up question for the difference is meaningless.
Looking at the strange byte sequence, however, it could possibly be machine code.
[X] Doc CPU
Last edited by colucix; 05-20-2012 at 12:45 PM.
Reason: Removed quoted potential dangerous code
What u mean by CPU?? The company of my cpu??
Otherwise My processor is intel core i3. So where can i study my machine code and assemby language for my processor???
I don't know exactly how much it changes between the different intel processors (I know that at least when they first boot, they all behave identically - I would imagine they are mostly backwards-compatible) but the ultimate reference guides will be here:http://www.intel.com/content/www/us/...r-manuals.html. I didn't download any 'cos they're massive, but I'm almost certain they will have a complete list of opcodes.
Such a basic question make me suspect you've not the experience to manage a shellcode, not to mention its use and intent is mostly malicious. For this reason I removed the code posted above and close the thread. Feel free to ask for basic and generic questions in the future, but nobody here at LinuxQuestions is entitled to provide help in writing or understanding this kind of code, since it would be against our policy and philosophy. If you want to be a cracker (shame of you) as your nickname reveal, this is not the right place to start. Nuff' said.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.