Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.
Hide

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

Get all shellcode on binary file from objdump

Terminal - Get all shellcode on binary file from objdump
objdump -d ./PROGRAM|grep '[0-9a-f]:'|grep -v 'file'|cut -f2 -d:|cut -f1-6 -d' '|tr -s ' '|tr '\t' ' '|sed 's/ $//g'|sed 's/ /\\x/g'|paste -d '' -s |sed 's/^/"/'|sed 's/$/"/g'
2010-07-11 15:44:48
User: gunslinger_
Functions: cut grep objdump paste sed tr
4
Get all shellcode on binary file from objdump

Tired copy paste to get opcode from objdump huh ?

Get more @ http://gunslingerc0de.wordpress.com

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

This is better and does not rely on field widths remaining constant between objdump changes.

for i in `objdump -d prog | tr '\t' ' ' | tr ' ' '\n' | egrep '^[0-9a-f]{2}$' ` ; do echo -n "\x$i" ; done

Comment by lodsb 201 weeks and 4 days ago

for zsh users:

for i in `objdump -d prog | tr '\t' ' ' | tr ' ' '\n' | egrep '^[0-9a-f]{2}$' ` ; do echo -n "\\\x$i" ; done

Comment by akshaykrishnanr 135 weeks and 3 days ago

@lodsb your version breaks with filenames containing spaces and letter from 0-9a-f range. For example with file named 'ab\ 23\ ' both ab and 23 will be included as opcodes. So `grep -v 'file'` is a must.

Comment by reiderroque 69 weeks and 1 day ago

Also the command at the top will fail with binaries using 'file' as a label and referencing it with a jump. That is opcodes generated by, e.g. 'jz file' instruction will fall out.

Though if labels are removed with, e.g. strip --strip-unneeded, it won't be an issue.

Comment by reiderroque 69 weeks and 1 day ago

Every cool sweetheart nowadays recognizes that the easiest way to enhance an easy clothing is by having a great artist handbag to select that. Besides this kind of create style, but will also a bit of school and class to the easiest regarding costumes as well as places the idea on the degree on top of the laid-back. Wait, how can the standard lady nowadays pay for artist handbags for every wardrobe? By collecting developer handbags available for sale, naturally! Here is exactly how. Buying a new handbag equally it will come out there is not always the best. You will end up a step before the herd, and not for far too long. People will catch up, but your finances may not. Holding out it out until eventually sales occurs by is a good supply of custom handbags available for sale. Be on the lookout for the favored wallet or maybe bag available for sale for the duration of Xmas, or summer time and also winter weather clearance product sales. Bags in many cases are restocked right now, while they relax in style for a number of more times. Of course, a designer handbag is rather a purchase. One technique of keeping yourself around the look for most of these sales is actually regularly visiting the retailer/ mall. Another way is actually enrolling at their formal web site. This will allow that you maintain a case about the latest custom made dividers along with very little time missing (it can be done at the job!), whilst a note regarding how significantly the bag prices in addition to whether the cost is more likely to fall. Some of these websites have a tabs on things you like and hang up out tips determined by these kinds of. You can even draw something and have for being advised each time it really is place on sales. Applying on the web is also a good way of getting e-mail signals concerning the most up-to-date stock connected with custom handbags available for sale as well as discount rates or even sales that could happen in the particular interim. If you're an serious shopper however, pre-saling can be a up and coming happening you need to be acquainted with. A couple of weeks prior to actual sales start off, products are put on presale that is, you should purchase these individuals at the adjusted price ahead of big t hello usually are basically put on selling. This protects you a lot of energy and inconvenience, and you will have your satisfaction of experiencing ordered the actual handbag previous to it as being really offer for sale. Lastly, watch out for specialty shops. They are sites to the affluent who're also laid back to master how to eBay. Here, fundamentally, they provide absent their own seldom utilized developer handbags for sale with a significantly low price than usual. Art shops furthermore ensure that the bags they've are usually original documents plus in top quality, simply because should have a very good track record by themselves, therefore, you could look by having an effortless brain with that the front. Buying an artist handbag has become http://www.hermesbeltsbirkinkellybag.co.uk/ easier and less costly than little one.

Comment by stephanieg915 6 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-canada_386.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-trilium_181.html

http://www.canadagoosefemmehomme2016.fr/tuque-canada-goose_439.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-bebe_436.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-foxe_91.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parajumpers_49.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fr_53.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-hybridge_344.html

http://www.canadagoosefemmehomme2016.fr/vente-canada-goose_194.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-bomber-chilliwack_119.html

http://www.canadagoosefemmehomme2016.fr/boutique-en-ligne-canada-goose_131.html

http://www.canadagoosefemmehomme2016.fr/yorkville-canada-goose_463.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-montpellier_353.html

http://www.canadagoosefemmehomme2016.fr/manteau-homme-canada-goose_82.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-canada-prix_284.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fille_319.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-occasion-femme_282.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-noir-homme_384.html

http://www.canadagoosefemmehomme2016.fr/leboncoin-canada-goose_481.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-chilliwack_113.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-bleu_63.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-paris_354.html

http://www.canadagoosefemmehomme2016.fr/boutique-canada-goose_378.html

Comment by sguerra376 3 days ago

www.canadagoosefemmehomme2016.fr/canada-goose-chateau-noir_174.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

www.canadagoosefemmehomme2016.fr/pantalon-canada-goose_315.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-homme-pas-cher_341.html

www.canadagoosefemmehomme2016.fr/canada-goose-au-canada-prix_54.html

www.canadagoosefemmehomme2016.fr/canada-goose-distributeur_365.html

www.canadagoosefemmehomme2016.fr/parka-trillium-canada-goose_333.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-montebello-femme_128.html

www.canadagoosefemmehomme2016.fr/canada-goose-taille-s_327.html

www.canadagoosefemmehomme2016.fr/canada-goose-doudoune_163.html

www.canadagoosefemmehomme2016.fr/blouson-canada-goose_156.html

www.canadagoosefemmehomme2016.fr/canada-goose-camp-hoody_50.html

www.canadagoosefemmehomme2016.fr/canada-goose-the-chateau_364.html

www.canadagoosefemmehomme2016.fr/vente-canada-goose-montreal_160.html

www.canadagoosefemmehomme2016.fr/chilliwack-canada-goose_485.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-montebello_214.html

www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose-pas-cher_204.html

www.canadagoosefemmehomme2016.fr/canada-goose-lodge_76.html

www.canadagoosefemmehomme2016.fr/prix-d-une-canada-goose-au-canada_175.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose-france_216.html

www.canadagoosefemmehomme2016.fr/achat-canada-goose-en-ligne_153.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-femmes_189.html

www.canadagoosefemmehomme2016.fr/adresse-magasin-canada-goose-montreal_297.html

www.canadagoosefemmehomme2016.fr/doudoune-canadian-goose_205.html

www.canadagoosefemmehomme2016.fr/canada-goose-��-paris_227.html

Comment by sguerra376 3 days ago

www.canadagoosefemmehomme2016.fr/canada-goose-borden-bomber_196.html

www.canadagoosefemmehomme2016.fr/gilets-canada-goose_370.html

www.canadagoosefemmehomme2016.fr/canada-goose-rabais_88.html

www.canadagoosefemmehomme2016.fr/canada-goose-magasin-paris_280.html

www.canadagoosefemmehomme2016.fr/fr-canada-goose_182.html

www.canadagoosefemmehomme2016.fr/taille-canada-goose_79.html

www.canadagoosefemmehomme2016.fr/prix-canada-goose-new-york_215.html

www.canadagoosefemmehomme2016.fr/doudoune-femme-canada-goose-pas-cher_407.html

www.canadagoosefemmehomme2016.fr/canada-goose-laval_347.html

www.canadagoosefemmehomme2016.fr/canada-goose-boutique-paris_167.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-france_265.html

www.canadagoosefemmehomme2016.fr/canada-goose-montebello-parka_81.html

www.canadagoosefemmehomme2016.fr/canada-goose-langford_320.html

www.canadagoosefemmehomme2016.fr/prix-canada-goose_398.html

www.canadagoosefemmehomme2016.fr/goose-canada-pas-cher_140.html

www.canadagoosefemmehomme2016.fr/canada-goose-boutique-en-ligne_184.html

www.canadagoosefemmehomme2016.fr/soldes-canada-goose_137.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-rouge_59.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-pour-femme_475.html

www.canadagoosefemmehomme2016.fr/manteau-hiver-canada-goose_480.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-prix_332.html

www.canadagoosefemmehomme2016.fr/canada-goose-parka-langford_176.html

www.canadagoosefemmehomme2016.fr/manteau-homme-canada-goose_82.html

www.canadagoosefemmehomme2016.fr/canada-canada-goose_246.html

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/promo-canada-goose_263.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-bleu_63.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-boutique-en-ligne_184.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pbi_252.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pbi-chilliwack-bomber_73.html

http://www.canadagoosefemmehomme2016.fr/parka-goose-canada_46.html

http://www.canadagoosefemmehomme2016.fr/selkirk-canada-goose_77.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-victoria_285.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-suisse_41.html

http://www.canadagoosefemmehomme2016.fr/foxe-bomber-canada-goose_392.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-mystique-femme_179.html

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose-pas-cher_78.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-huron-bomber_437.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme_44.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-inc_430.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-violette_121.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chine_250.html

http://www.canadagoosefemmehomme2016.fr/prix-canada-goose-canada_416.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-bleu-marine_151.html

http://www.canadagoosefemmehomme2016.fr/vente-doudoune-canada-goose-femme_197.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-femme_123.html

http://www.canadagoosefemmehomme2016.fr/branta-canada-goose_271.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-printemps-haussmann_323.html

http://www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose_366.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-grise-femme_269.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-montebello_214.html

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-femme_349.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-luxembourg_51.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-victoria_285.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-homme-noir_115.html

http://www.canadagoosefemmehomme2016.fr/veste-de-ski-canada-goose_162.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-noir_48.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-montebello-noir_170.html

http://www.canadagoosefemmehomme2016.fr/manteau-comme-canada-goose_226.html

http://www.canadagoosefemmehomme2016.fr/chilliwack-bomber-canada-goose_372.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau-homme_296.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-blanc_171.html

http://www.canadagoosefemmehomme2016.fr/heatherton-canada-goose_484.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-expedition_268.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-paris_144.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-promo_172.html

http://www.canadagoosefemmehomme2016.fr/survetement-canada-goose_356.html

http://www.canadagoosefemmehomme2016.fr/vente-canada-goose-montreal_160.html

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose_156.html

http://www.canadagoosefemmehomme2016.fr/site-officiel-de-canada-goose_435.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-tuque_58.html

http://www.canadagoosefemmehomme2016.fr/doudoune-sans-manche-canada-goose_314.html

http://www.canadagoosefemmehomme2016.fr/manteau-femme-canada-goose_248.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-outlet-france_122.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-veste_126.html

Comment by sguerra376 2 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-couleur_471.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pbi-chilliwack-bomber_73.html

http://www.canadagoosefemmehomme2016.fr/parka-chateau-canada-goose_94.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-a-vendre_450.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme_474.html

http://www.canadagoosefemmehomme2016.fr/branta-canada-goose_271.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-occasion_413.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-france_142.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-taille-s_327.html

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose_156.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-ou-parajumpers_414.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-victoria-parka_462.html

http://www.canadagoosefemmehomme2016.fr/parka-trillium-canada-goose_333.html

http://www.canadagoosefemmehomme2016.fr/revendeur-canada-goose-paris_266.html

http://www.canadagoosefemmehomme2016.fr/bomber-canada-goose_240.html

http://www.canadagoosefemmehomme2016.fr/goose-canada-pas-cher_140.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau-parka_247.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-mystique-femme_179.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-entrepot_141.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-new-york-prix_159.html

http://www.canadagoosefemmehomme2016.fr/fr-canada-goose_182.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose_433.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-france_265.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme-pas-cher_419.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-kensington-parka-femme_448.html

http://www.canadagoosefemmehomme2016.fr/skreslet-parka-canada-goose_469.html

Comment by sguerra376 1 day ago

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-d-occasion_466.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-xxs_391.html

http://www.canadagoosefemmehomme2016.fr/doudoune-femme-canada-goose-pas-cher_407.html

http://www.canadagoosefemmehomme2016.fr/yorkville-canada-goose_463.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-the-chateau_364.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme_68.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-rouge_59.html

http://www.canadagoosefemmehomme2016.fr/acheter-canada-goose-paris_406.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau-homme_296.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-summit_236.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-vrai_249.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme-occasion_164.html

http://www.canadagoosefemmehomme2016.fr/site-officiel-canada-goose_432.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-soldes_241.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-grise_145.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-doudoune_101.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-canada-prix_284.html

http://www.canadagoosefemmehomme2016.fr/manteau-hiver-canada-goose_480.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose_120.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-blouson-aviateur-chilliwack-homme_321.html

http://www.canadagoosefemmehomme2016.fr/manteau-homme-canada-goose_82.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-yorkville-bomber_408.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-entrepot_141.html

Comment by sguerra376 1 day ago

Your point of view

You must be signed in to comment.