Skip to main content

apt-get install CLI command for Cygwin

Installing a package using Linux CLI (Command Line Interface) like  "apt-get install" (Debian based) or "yum install" (Red-Hat based) is much more convenience that using GUI to install an tools or software and the like. It's automatically install and do everything you like and you just have to wait it to be complete and ready to run :)

But for Windows user who wish to have a Linux environment on their Windows box they can install "Cygwin". With Cygwin you can run your Windows box like Linux, and it's kind like a hybrid "win-nix".

Cygwin Logo

If you forgot to select and install the necessary package that you wanted to some command will be not available to run or it might pop-out an error message like "command not found" or "invalid command "

Now, if you wish to run a command like a mention above "apt-get install", you can download the code here make the script executable using chmod and move the script file to /usr/loca/bin and after that you ready to go!

Example :


wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
chmod +x apt-cyg
mv apt-cyg /usr/local/bin/
apt-cyg install bc

Now we can install a package using "apt-cyg install". Make sure all the necessary library file for your Cygwin are installed.

Comments

Popular posts from this blog

Create a session & restore abort/interrupted session in John The Ripper!

Been busy with report writing. Just wanna put some of these command and technique on how to restore interrupted session or aborted session in John The Ripper. 1. First step crack the hash with these commands : john --session=test --format=raw-sha --incremental=rockyou test.txt 2. To restore the abort /interrupted session that you wanted to resume just run these commands : john --restore=test Check the "test.log" Note:  Make sure that these file are not delete " .rec " and " .log " files if the file is deleted or missing it wont work. That's all happy cracking!

iOS - Convert .app to .ipa

While doing a iOS Security Testing, I wondered how do we convert .app into .ipa. So basically here are the structure of .ipa files. 1. First, SSH in your iPhone (Jailbroken). 2. Download the .app folder via scp  3. Copy the .app folder into a folder called Payload. 4. Compress it with .zip extension using any compression software. 5. Change the extension from file.zip to file.ipa. That’s it. Now you can use these .ipa files to install the app into your iPhone.

SQLiiiii

This is an re-post from an old archive ... From MySQL documentation : "The SELECT ... INTO OUTFILE 'file_name' form of SELECT writes the selected rows to a file. The file is created on the server host, so you must have the FILE privilege to use this syntax. file_name cannot be an existing file, which among other things prevents files such as /etc/passwd and database tables from being destroyed. As of MySQL 5.0.19, the character_set_filesystem system variable controls the interpretation of the filename." The INTO OUTFILE operator can be used during sql injection exploiting to write php shell on remote host. Unfortunately (fortunately?) this is only possible in some (very) race conditions : mysql user must have the FILE privilege; the operator requires a "quoted" file pathname, so the web application should not escape/filter them; httpd and mysql should be installed on the same machine, or (if you can) the file will be written on the dbms machi...