Last active
          November 19, 2018 16:45 
        
      - 
      
 - 
        
Save rgruesbeck/f3d58d553a5cd7e991aa to your computer and use it in GitHub Desktop.  
    quickly query commandlinefu.com from the commandline (highlight potentialy malicious commands)
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | cfu () { | |
| WARN='^.*wget\s-q(O| -O).*$|^.*\|\s(bash |sh ).*$|^.*eval.*$ | |
| |$' | |
| QC=$(echo $1 | recode ascii../b64 | sed 's/...$//') | |
| curl "https://www.commandlinefu.com/commands/matching/$1/$QC/plaintext" | egrep --color=always $WARN | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment