How to find files on the Linux filesystem.

The find command is very useful for locating files on your Linux filesystem. Below is an example of wildcards to locate files in the /boot directory. ubuntu@ip-172-31-20-16:~$ sudo find /boot -name "vm*" /boot/vmlinuz-3.13.0-44-genericubuntu@ip-172-31-20-16:~$ sudo find /boot -name "vm*" /boot/vmlinuz-3.13.0-44-generic Here I am searching the whole / filesystem for a set of files that end in … Read more

Sony pictures servers compromised and files stolen.

Sony pictures serves were recently hacked and some files were stolen. Apparently, there was a single folder named “Passwords” and this contained all of the files that were stolen. Apparently a DVDrip of the movie Fury was downloaded as well as countless passwords and other files. 47,000 social security numbers for various Hollywood stars including … Read more

How to use scp to download files from a remote machine over a secure encrypted connection.

This is the sample command I am using to download my OpenVPN keys from a remote VPN server to allow me to setup a local connection. And to backup the keys safely. [1]homer@deusexmachina ~ $ scp -i Goku.pem -P 443 [email protected]:/home/ubuntu/easy-rsa/keys/*.* /home/homer/vpn/ 01.pem 100% 5589 5.5KB/s 00:00 ca.crt 100% 1736 1.7KB/s 00:00 ca.key 100% 1704 … Read more

How to use SFTP on Linux and copy files easily.

This video shows how to use the SFTP command on Linux and transfer files easily. How to use sftp to retrieve files from a remote Linux server securely. https://securitronlinux.com/debian-testing/how-to-use-sftp-to-retrieve-files-from-a-remote-linux-server-securely/. Copy a file from one UNIX/Linux machine to another using the sftp utility. https://securitronlinux.com/debian-testing/copy-a-file-from-one-unixlinux-machine-to-another-using-the-sftp-utility/. How to upload files to your Amazon AWS instance using the bash … Read more

How to scan your Kali Linux system for security vulnerabilities using the lynis tool.

The lynis tool for Kali Linux allows you to scan your computer system for security vulnerabilities. Execute this command as root and this will allow you to find out if you have any problems with your installation. root@kali:/home/homer# lynis –check-all   [ Lynis 1.4.1 ]   ################################################################################ Lynis comes with ABSOLUTELY NO WARRANTY. This is … Read more

Useful bash commands and how to manage packages with dpkg on a Debian distro.

This is another way to find out who your user is. bash 07:15:16 Fri Jul 05 [homer@deep-thought $ who is linux homer pts/0 2013-07-05 19:10 (:0.0)bash 07:15:16 Fri Jul 05 [homer@deep-thought $ who is linux homer pts/0 2013-07-05 19:10 (:0.0) And this command lists all logged in users on your Linux system. bash 07:15:09 Fri … Read more

Another good grep trick to find strings that end in numbers but you are not sure which.

How do you search a binary file for a certain string that ends in a number; but you are not sure what the number is? Then this command will perform this task. john@adeptus-mechanicus ~/Documents/master $ strings vesperas.wad | grep -a "MAP[0-9]" MAP15john@adeptus-mechanicus ~/Documents/master $ strings vesperas.wad | grep -a "MAP[0-9]" MAP15 I was using this … Read more

Keeping your data safe by backing up your data. A good hard disk and external housing for backups.

Backing up your precious data to protect your files is essential; the Seagate range of hard drives provide a reliable solution for backing up your data or a large capacity hard drive for installing Linux to. I remember I installed Mandrake Linux once onto a 80 Gigabyte hard disk and due to the large capacity … Read more

Miscellaneous Perl programming information. How to use for loops and printing HTML properly.

Opening a folder and listing the contents, and not listing certain files. This is the Perl code I was using on my very old Tripod.com website. opendir(DNAME, "$folder") || die "I cannot open the requested directory $folder \n $!"; @dirfiles2 = readdir (DNAME); @dirfiles2 = sort(@dirfiles2); foreach $x2 (@dirfiles2) { if ($x2 eq ".") { … Read more

Very useful .cshrc file that will also work with the tcsh shell.

Very useful .cshrc file that will also work with the tcsh shell on Linux and UNIX. This gives you a nice prompt and a lovely colored ls output. This .cshrc file requires a .complete file for proper functioning, this is available here: http://www.securitronlinux.com/files/complete.tar.gz. # /etc/csh.login: This file contains login defaults used by csh and tcsh. … Read more

Filesonic file-sharing service forced to stop sharing.

“In the wake of the Megaupload takedown, Filesonic has elected to take preventative measures against a similar fate. The front page and all files now carry the following message: ‘All sharing functionality on FileSonic is now disabled. Our service can only be used to upload and retrieve files that you have uploaded personally.’ Whether or … Read more

Interesting /bin/cat trick. How to join mp3 files together.

I was playing around with /bin/cat on my FreeBSD laptop and I typed this command. This is a useful trick to join mp3 files together in one long audio file. jason@Yog-Sothoth:~/Music$ cat Dune\ \(1983\)\ OST\ -\ Dune\ Prophecy\ \(Long\ Version\)-UWFm2LIYNjg.mp3 > ambient-winter.mp3jason@Yog-Sothoth:~/Music$ cat Dune\ \(1983\)\ OST\ -\ Dune\ Prophecy\ \(Long\ Version\)-UWFm2LIYNjg.mp3 > ambient-winter.mp3 And now … Read more