LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-19-2012, 10:10 PM   #1
mr.cracker
Member
 
Registered: May 2012
Posts: 58

Rep: Reputation: Disabled
shellcode=assembly language???


Is shell-code is written in assembly language??
 
Old 05-19-2012, 10:27 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 05-19-2012, 11:06 PM   #3
es0teric
Member
 
Registered: Apr 2007
Distribution: Ubuntu
Posts: 105

Rep: Reputation: 19
No.
 
Old 05-19-2012, 11:54 PM   #4
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
Just to complicate things a bit more..

Kernel and most of basic tools are written in C
Some C source codes of the kernel use inline assembler too, not only C

Desktop Environments are usually written in C++
but some parts in C
 
Old 05-20-2012, 12:14 AM   #5
mr.cracker
Member
 
Registered: May 2012
Posts: 58

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pixellany View Post
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?
 
Old 05-20-2012, 12:22 AM   #6
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
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.
 
Old 05-20-2012, 02:06 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by mr.cracker View Post
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").
 
Old 05-20-2012, 02:54 AM   #8
mr.cracker
Member
 
Registered: May 2012
Posts: 58

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Nylex View Post
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.
 
Old 05-20-2012, 02:56 AM   #9
mr.cracker
Member
 
Registered: May 2012
Posts: 58

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by uhelp View Post
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?
 
Old 05-20-2012, 03:02 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by mr.cracker View Post
My question is that ,what is the language for build shellcode. If you know please tell me a site to study shellcode deeply.
But what do you mean by "shellcode"?
 
Old 05-20-2012, 03:13 AM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by mr.cracker View Post
Is shell-code is written in assembly language??
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.
 
Old 05-20-2012, 04:29 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.)
 
1 members found this post helpful.
Old 05-20-2012, 06:26 AM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
considering unSpawn's notes above, I think the OP needs to tell us exactly he is trying to do.....
 
Old 05-20-2012, 06:37 AM   #14
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by pixellany View Post
I think the OP needs to tell us exactly he is trying to do.....
Doesn't his username provide a clue?
 
Old 05-20-2012, 06:52 AM   #15
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by brianL View Post
Doesn't his username provide a clue?
Indeed---also his posting history.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly Language ashish anand Programming 9 10-18-2011 10:53 PM
assembly language ramorous24 Programming 4 08-21-2011 11:31 PM
assembly language! please help me! thanks in advance! topheraholic Programming 6 03-21-2011 02:35 PM
Is Assembly Language considered a Structured Language? theKbStockpiler Programming 4 01-30-2011 09:09 AM
SPARC assembly language jclark00001 Programming 3 02-26-2003 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration