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.
To me, "assembly language" is a user-friendly way of describing the basic "machine language" that interfaces directly with the processor. SW that interacts at hardware level can ALSO be written in higher level languages, but assembly is usually faster and more efficient.
The shell is typically the iinteface to the kernel, and not directly to the hardware. Thus, would not be written in assembler.
You can get the source code for all of the common Linux shells and utilities---my guess is that most are written in C or a similar compiled language.
To me, "assembly language" is a user-friendly way of describing the basic "machine language" that interfaces directly with the processor. SW that interacts at hardware level can ALSO be written in higher level languages, but assembly is usually faster and more efficient.
The shell is typically the iinteface to the kernel, and not directly to the hardware. Thus, would not be written in assembler.
You can get the source code for all of the common Linux shells and utilities---my guess is that most are written in C or a similar compiled language.
From u i got that shellcode has its own language??isn't it?
Can i write shellcode for windows,because my doubt is that the kernal exist in linux. And the shell also exist in linux. So does a shellcode is possible to write in windows???? how it is possible.from Where i can study it?
Yes, you can write shell code in Windows.
Like in every language you can write it with your favorite editor.
There is nothing special.
Except you have to watch out for line endings.
Windows uses \r\n
Linux just \n
But this is easily done, as some tools are provided by each and every distro.
If you install "cygwin" on youre Windows box you can run shell scripts on your Windowsbox.
Cygwin is a kind of Linux on a Windows machine.
From u i got that shellcode has its own language??isn't it?
Can i write shellcode for windows,because my doubt is that the kernal exist in linux. And the shell also exist in linux. So does a shellcode is possible to write in windows???? how it is possible.from Where i can study it?
I think you're possibly using the wrong terminology. It isn't clear to me from your questions what you're asking about. What exactly do you mean by "shellcode"?
Also, please write your words out in full (i.e. "you", not "u") as per the LQ rules. There are also some typos in your post (e.g. "kernel", not "kernal").
I think you're possibly using the wrong terminology. It isn't clear to me from your questions what you're asking about. What exactly do you mean by "shellcode"?
Also, please write your words out in full (i.e. "you", not "u") as per the LQ rules. There are also some typos in your post (e.g. "kernel", not "kernal").
My question is that ,what is the language for build shellcode. If you know please tell me a site to study shellcode deeply.
Yes, you can write shell code in Windows.
Like in every language you can write it with your favorite editor.
There is nothing special.
Except you have to watch out for line endings.
Windows uses \r\n
Linux just \n
But this is easily done, as some tools are provided by each and every distro.
If you install "cygwin" on youre Windows box you can run shell scripts on your Windowsbox.
Cygwin is a kind of Linux on a Windows machine.
I had already installed cygwin. but in windows there is no kernel. Then how it is possible?? Is the shellcode is mainly focus on Unix like system?
As Nylex asked (and you did not answer), what do you mean by "shell-code"? Maybe shellcode or shell script.
Shellcode may be written in any language. Shell script is written in the language of the shell it is designed for. Windows has the CMD shell (when running cmd.exe). Linux has many shells; bash is popular.
According to Wikipedia the GUI may also be called a shell. In that case it's the Windows GUI and on Linux it is the desktop GUI and there are several to choose from: Gnome, KDE, Xfce etc.
Both Linux and Windows have a kernel.
There are many places online and many books about programming command line shells such as CMD and bash.
He's asking for the kind of Shellcode help a simple query like http://www.google.com/search?q=linux...al&btnG=Search would show. Note shellcode itself is a given so asking about it in general is no violation of the LQ Rules but asking for help with writing shellcode or help with delivering payloads would be. (Practically speaking this and this question is OK. This one is borderline and IMO this should never have been allowed to exist.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.