Best compression using tar and 7z

By technese - Last updated: Sunday, September 7, 2014

Compress using tar and 7z

$ tar cf - <source folder/file> | 7z a -si <Destination archive>.tar.7z

$ 7z x -so yourfile.tar.7z | tar xf - -C target_dir

Reference:
1. http://askubuntu.com/questions/300097/how-do-i-create-tar-7z-file-from-the-command-line

2. http://askubuntu.com/questions/341628/how-to-extract-tar-7z-files-from-command-line

Filed in General

Converting OVA to QCOW2 for use with QEMU/KVM

By technese - Last updated: Sunday, September 7, 2014

Extract the .ova file

$ tar -xvf file.ova

Convert the .vmdk to .qcow2

$ qemu-img convert -O qcow2 file.vmdk file.qcow2

Reference:

Filed in General

Block Inbound for Ports 135, 445, 1028 and Ping (ICMP 8) for Windows 7, 2008 Server

By technese - Last updated: Monday, April 1, 2013

For workstations/servers that are public Internet facing and do not have a  hardware/software firewall solution, use Windows Firewall with Advanced Security and block port 135, 445, 1028 and PING (ICMP 8) .  GRC’s Shields Up! shows these ports as being open.

Reference:

https://www.grc.com/x/ne.dll?bh0bkyd2
http://www.rackspace.com/knowledge_center/article/creating-an-inbound-port-deny-rule-for-windows-firewall-windows-2008

 

Filed in General

Check Linux with rootkithunter and chkrootkit

By - Last updated: Sunday, November 4, 2012

Debian Linux

# apt-get install chkrootkit rkhunter

OR

# aptitude install chkrootkit rkhunter

CentOS 6.x

# yum install chkrootkit rkhunter

Filed in General

Import Active Directory Domain Services Cmdlets

By technese - Last updated: Monday, October 29, 2012

Open Powershell Prompt

PS C:\> Import-Module active*
PS C:\> Get-Command -Module active

Reference:

http://blogs.technet.com/b/heyscriptingguy/archive/2010/01/25/hey-scripting-guy-january-25-2010.aspx

Filed in General

Resetting the ESX host firewall policy in ESX 4.x

By - Last updated: Monday, October 29, 2012

Resetting the ESX host firewall policy in ESX 4.x

You cannot stop the firewall service in ESX 4.x. If you try, you see the
message:

Firewall can’t be stopped. To disable the firewall run:
esxcfg-firewall –allowIncoming –allowOutgoing

You can allow all packets through the firewall by running the command:

$ esxcfg-firewall --allowIncoming --allowOutgoing

To return the firewall configuration to its previous setting, run the
command:

$ esxcfg-firewall --blockIncoming --blockOutgoing

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003634

Filed in General

create backup of entire filesystem with tar and bzip compression

By technese - Last updated: Monday, October 29, 2012

# tar -cjvpf backup.tar.bz2 --exclude=backup.tar.bz2 --exclude=proc --exclude=sys --exclude=dev .

Filed in General

dd using netcat to /dev/sdx / or from/to image file

By technese - Last updated: Monday, October 29, 2012

destination:

# nc -l 19000 | bzip2 -d | dd bs=16M of=/dev/sda

source:

# dd bs=16M if=/dev/sda | bzip2 -c | nc serverB.example.net 19000

Reference:
http://www.ndchost.com/wiki/server-administration/netcat-over-ssh

OR

dd from source partition to destination image file

destination:

#nc -l 19000 | bzip2 -d | dd bs=16M of=/path/imagefile.dd

source:

# dd bs=16M if=/dev/sda | bzip2 -c | nc source.server.com 19000

dd from source image file to destination partition

destination:

#nc -l 19000|bzip2 -d | dd bs=16M of=/dev/sda

source:

# dd bs=16M if=/path/imagefile.dd|bzip2 -c | nc source.server.com 19000

Filed in General

Reset iptables firewall

By technese - Last updated: Monday, October 29, 2012

# /sbin/iptables -F
# /sbin/iptables -X
# /sbin/iptables -t nat -F
# /sbin/iptables -t nat -X
# /sbin/iptables -t mangle -F
# /sbin/iptables -t mangle -X
# /sbin/iptables -P INPUT ACCEPT
# /sbin/iptables -P FORWARD ACCEPT
# /sbin/iptables -P OUTPUT ACCEPT

Filed in General

Online Anti-Virus Websites and Tools

By technese - Last updated: Monday, October 29, 2012
Free online service that analyzes files enabling the identification of viruses, worms, trojans and other kinds of malicious content detected by antivirus engines and website scanners

http://www.virscan.org

http://virusscan.jotti.org

http://vscan.novirusthanks.org

http://www.viruschief.com

http://www.metascan-online.com

https://www.virustotal.com

http://www.garyshood.com/virus

http://online.drweb.com/

http://www.threatexpert.com/filescan.aspx

http://www.clamwin.com/content/view/89/85

Free service that analyzes and facilitates the quick detection of viruses, worms, trojans, and all kinds of malware.

http://ScanURLs.com
Real-time website malware scanner.

http://URLVoid.com
Analyze domains and subdomains with multiple blacklists and web reputation services.

http://IPVoid.com
Analyze IP addresses with multiple blacklists and IP reputation services.

http://Vscan.NoVirusThanks.org
Scan files and URLs with multiple Antivirus software.

http://HTMLSniffer.com
View the entire HTML source code without visiting the URL.

http://JSGrab.com
Capture all JS and VBScript scripts from a web page.

http://ThreatLog.com
Database of malicious URLs logged by honeypots.

http://URLVir.com
Automatically monitor changes of malicious URLs.

Free Anti-Virus Online Scanner for Workstations
http://www.bitdefender.com/scanner/online/free.html

http://housecall.trendmicro.com
http://www.pandasecurity.com/activescan/index
http://www.f-secure.com/en/web/labs_global/removal-tools/-/carousel/view/143
http://www.pandasecurity.com/homeusers/solutions/activescan
http://www.eset.com/us/online-scanner
http://www.emsisoft.com/en/software/ax/
http://personalfirewall.comodo.com/scan/avscanner.html
http://security.symantec.com/sscv6/WelcomePage.asp

Free Malware Scanner

http://malwarebytes.org

 

Filed in General