Author Topic: [Bash] Google Define in bash  (Read 3863 times)

0 Members and 1 Guest are viewing this topic.

Offline 0poitr

  • Peasant
  • *
  • Posts: 149
  • Cookies: 64
    • View Profile
[Bash] Google Define in bash
« on: February 02, 2013, 08:59:27 pm »
Get word definitions from Google define: searches right in your shell :P
Very simple script. You can also just keep it as a function in your .bashrc
Code: [Select]
#!/bin/bash
## define by 0poitr @ evilzone.org

[[ -z $1 ]] && echo "Define what?" && exit 1
[ ! `which links 2>/dev/null` ] && echo "Can has links?" && exit 1

uagent='Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0'

links -dump https://www.google.com/search?q=define+${1} -http.fake-user-agent "$uagent" |\
sed -n '/Search Results/,/More info/ p'|sed -e '1,4 d' -e 's/^[ ]*//g' -e '$ d'
Screenshot:
« Last Edit: February 03, 2013, 07:48:51 am by 0poitr »
Imagination is the first step towards Creation.

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: [Bash] Google Define in bash
« Reply #1 on: February 02, 2013, 10:43:59 pm »
Nice concept. Good job +1
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet