Category Archives: Linux Tricks

How to Upload Files to an FTP site via a Batch Script

This script can be used from the command line as a ‘no questions asked’ method of uploading one or many files with a single command. Additionally, you can call this script from batch files to perform automated file uploads. A … Continue reading

Share
Posted in Linux Tricks | Leave a comment

SSH Tips for the day

‘When you are forwarding ports through a tunnel, either locally or remotely (i.e., with the -L or -R switches), you can modify the session real-time. The way that you do this is after you start the session, you press SHIFT … Continue reading

Share
Posted in Linux Tricks | Leave a comment

Xorg.conf Hacking

This week I want to share a configuration file that I’ve used for years and other people might find useful. My Linux setup at home, currently running Fedora, uses two cheap LCD screens from Hanns-G. The model name is HW191D, … Continue reading

Share
Posted in Linux Tricks | Leave a comment

Is LZMA Algoritm is Better than Bzip2?

There are few tools that can be used to compress LZMA (like P7ZIP archiver), but I chose [url=http://tukaani.org/lzma/[/url]LZMA Utils[/url] because it has a command line compatible with gzip and bzip2, so replacing them with LZMA is simple. The command is … Continue reading

Share
Posted in Linux Tricks | Leave a comment

How to use Ndiswrapper on OpenSUSE 10.03 for Broadcom Wifi?

The exact specs of the wireless card, as listed by ‘lspci -v’ are: 0c:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 01) Subsystem: Dell Unknown device 0007 Flags: bus master, fast devsel, latency 0, IRQ 17 Memory at ecffc000 … Continue reading

Share
Posted in Linux Tricks | Leave a comment

How to scan Conficker with Nmap?

While Conficker is not a new worm it has been getting much press lately. Even though Redmond released a patch late October it is estimated that 5 to 10 million PC have been infected. The industry has been aware of … Continue reading

Share
Posted in Linux Tricks | 1 Comment

How to display PHP errors without using PHP.ini file

If you are using a shared server, or just have a limited account on your company servers, you might not have access to your php configuration file php.ini (this is usually found under /etc/php.ini in rhel/centos and /etc/php5/apache2/php.ini in debian/ubuntu). … Continue reading

Share
Posted in Linux Tricks | 1 Comment

What Mutation Techniques does Nikto Web Scanner Use?

A mutation will cause Nikto to combine tests or attempt to guess values. These techniques may cause a tremendous amount of tests to be launched against the target. Use the reference number to specify the type, multiple may be combined. … Continue reading

Share
Posted in Linux Tricks | 1 Comment

What Mutation Techniques does Nikto Web Scanner Use?

A mutation will cause Nikto to combine tests or attempt to guess values. These techniques may cause a tremendous amount of tests to be launched against the target. Use the reference number to specify the type, multiple may be combined. … Continue reading

Share
Posted in Linux Tricks | Leave a comment

PHP function to Genrate Random Passwords

function pass_gen($len) { $pass = ”; srand((float) microtime() * 10000000); for ($i = 0; $i < $len; $i++) { $pass .= chr(rand(33, 126)); } return $pass; }

Share
Posted in Linux Tricks | Leave a comment