Check These Out
Style analyses the surface characteristics of the writing style of a document. It prints various readability grades, length of words, sentences and paragraphs.
It can further locate sentences with certain characteristics. If no files are given, the document is read from standard input.
style is part of "diction" package
Can be run as a script `ftrace` if my_command is substrituted with "$@"
It is useful when running a command that fails and you have the feeling it is accessing a file you are not aware of.
Based on capsule8 agent examples, not rigorously tested
Suppose you made a backup of your hard disk with dd:
dd if=/dev/sda of=/mnt/disk/backup.img
This command enables you to mount a partition from inside this image, so you can access your files directly.
Substitute PARTITION=1 with the number of the partition you want to mount (returned from sfdisk -d yourfile.img).
1. find file greater than 10 MB
2. direct it to xargs
3. xargs pass them as argument to ls
Need package: gksu
Note:
Launching gui app in background that needs sudo, won't work great with our old
friendly style of launching:
$ sudo gedit /etc/passwd &
because this would put sudo in background !
Using gksudo as demonstrated, would popup a gui sudo window.
May be this is a common knowledge, but not knowing this
frustrated me during my newbie year.
file carving helps if you know where the file you are looking for starts and ends. It's also an easy way to get data and catalog them for future use with forensic tools like scalpel.
Create a exact mirror of the local folder "/root/files", on remote server 'remote_server' using SSH command (listening on port 22)
(all files & folders on destination server/folder will be deleted)
Need to query hundreds of hosts with an ssh command ?
Of course you'll have setup keys on all your remote HOSTs. But in the case a key is not present this command will skip that node, proceeding on to the next.
-t:
Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine. Also prevents unwanted stty messages being sent to console
-q:
Quiet mode.
-o "BatchMode yes"
If set to yes, passphrase/password querying will be disabled. This option is useful in scripts and other batch jobs where no user is present