Skip to content

Instantly share code, notes, and snippets.

@Gitart
Created October 29, 2016 15:32
Show Gist options
  • Save Gitart/319f2da44d05f2a8f445d4cf989e3a01 to your computer and use it in GitHub Desktop.
Save Gitart/319f2da44d05f2a8f445d4cf989e3a01 to your computer and use it in GitHub Desktop.
unx command
# Find all files containing text
grep -Ril "text to find" /
# Write test to file using sudo
echo 'This is the test.' | sudo tee /etc/configfile
# Send a log using curl
curl -X POST -T file.txt https://example.com/file_upload;
# Check supported ciphers on server
nmap --script ssl-cert,ssl-enum-ciphers -p 443,993 example.com
# Check package version
dpkg -s package-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment