Making an ISO image from an existing CD/DVD disk.
If permissions needed to access CD/DVD drive as root, login, then execute
1.) dd if=/dev/cdrom of=name.iso
Making an ISO image from files or folders.
1.) mkisofs -o name.iso inputfilesfolders
Making a Perfect Clone of a Hard Drive
1.) Login as root - preferably from a bootable LIVE Linux installation
2.) Make sure the destination hard drive is the same or greater in size as that of the source disk
3.) dd if=/dev/sda of=/dev/sdb (were sda is source drive and sdb is destination drive) ** TRIPLE CHECK YOU HAVE THE CORRECT DRIVES!!! **
Change the Date or Time of a Computer
1.) Login as root
2.) date --set="15 March 2001 17:20:45" (will set the current time to March 15, 2001 5:20:45pm)
Securely Remote Copy using SSH a file or directory from a Remote Machine to a Local Machine
1.) scp -P portnumber username@remotemachine.com:/home/username/file .
Using IP Chains to Block IP Address
Some examples...
To block 116.10.191.* addresses:
$ sudo iptables -A INPUT -s 116.10.191.0/24 -j DROP
To block 116.10.*.* addresses:
$ sudo iptables -A INPUT -s 116.10.0.0/16 -j DROP
To block 116.*.*.* addresses:
$ sudo iptables -A INPUT -s 116.0.0.0/8 -j DROP
Be careful using this, you could easily prevent yourself
access to your remote machine or other legitimate traffic.
Remove Spaces From All Filenames in the Current Directory
for name in *\ *; do mv -v "$name" "${name// /}"; done
Network Tracking from Oracle's VirtualBox
1.) VBoxManage modifyvm [your_vm_name] --nictrace[adapter-number] on --nictracefile[adapter-number] filename.pcap
2.) VirtualBox -startvm [your_vm_name]
So it would look like...
1.) VBoxManage modifyvm testvm --nictrace1 on --nictracefile1 tracefile.pcap
2.) VirtualBox -startvm testvm
After doing what you need to do, shutdown the VM, then you can open the pcap file with Wireshark
Copyright © Zachary Burns. All Rights Reserved.
Home | My Blog | My Hobbies | My Software | Résumé | About Me | Contact Info