Last active
January 11, 2016 16:19
-
-
Save josy1024/fe39201169f5e3cec115 to your computer and use it in GitHub Desktop.
searches with in current directory for "not accessable" files puts it out to console and stores it to /tmp/noaccess
This file contains 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
#!/bin/bash | |
# searches with in current directory for "not accessable" files puts it out to console and stores it to /tmp/noaccess | |
# noaccess no access | |
# | |
# author: Josef lahmer | |
# 11.1.2016 | |
# https://gist.github.com/josy1024/fe39201169f5e3cec115 | |
# http://josy1024.blogspot.co.at/2016/01/mr-robots-noaccess.html | |
# | |
# inspired by MR. ROBOT | |
# follows Elliot, a cyber-security engineer by day and vigilante hacker by night, who gets recruited by a mysterious underground group to destroy the firm he is paid to protect. | |
# snippled: | |
# test: folder owend by root and 700 permissions | |
# drwx------ 2 root root 4096 11. Jan 16:31 noaccessdir | |
# ls example | |
ls -R . 2>&1 1>/dev/null | tee -a /tmp/noaccess | |
# expected output with ls | |
# ls: Öffnen von Verzeichnis ./noaccessdir nicht möglich: Keine Berechtigung | |
# find example | |
find . 2>&1 1>/dev/null | tee -a /tmp/noaccess | |
# expected output with find | |
# "./noaccessdir": Keine Berechtigung | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment