Mansoor A

Mansoor A

How to Manage your Azure account from the command line

Even though I'm a Linux guy, I'll agree on this - Azure is awesome. Especially for developers. If you have an MSDN subscription, things get a lot better. In essence, Azure is pure awesome. Create, deploy, test, destroy VMs and cloud services without any hiccups. Well, this post is for the command line junkies among you ( fortunately or unfortunately, I'm one of them.. 😉 ). Managing VMs ( or cloud services for that matter ) from the GUI is too main stream. Besides, it is insanely slow and consid
Mansoor A
Mansoor A
3 min read

How to install Software Center on Kali Linux 2.0 Sana

This is going to be a very quick tutorial on how to install the good old "Software Center"(the one we see in Ubuntu) in Kali Linux 2.0 ( Sana ). Some of you might ask, why the heck do we need a software center, well, admit it, not everyone knows their way around the command line. And if you're one of them, this post is for you. If this seems extremely simple for you, don't point your finger at me.. 😉 Let's get started > Update: It seems Kali removed the package from the repository and many pe
Mansoor A
Mansoor A
1 min read

Share a directory instantly through a simple HTTP server

TL;DR There is this amazing python module that allows you to server any directory in your file system through a web server > just open up a terminal window and "cd" to the directory you want to server and type the command "python -m SimpleHTTPServer", then visit http://:8000 to view the content Imagine you're in a conference, or you're in your office and you want to quickly share a file, some code, a video, anything, with your colleague. Let's just say that you wanted to show the "cat video"
Mansoor A
Mansoor A
1 min read

Update Cyanogenmod nightly without downloading the full ROM

> TL;DR The post shows you how to update your CyanogenMod nighly, without downloading 200+ megabyte ROM file I love CyanogenMod, so does many people. But, since it is maintained by the community, most of the devices out there have what's known as "Nightly build". Meaning, the ROM maintainer will release updates on a daily basis. Now, these files are around 300 megabytes. It will be difficult to download the full ROM every day and flash it. This is both time consuming and can take a lot of dat
Mansoor A
Mansoor A
1 min read

How to install CSF on Ubuntu 12/14, and Centos 6/7

CSF (ConfigServer Security and Firewall) is one of the best firewall/Intrusion detection-prevention tool out there for Linux. I myself use CSF on my server and it works just awesome. I don't have to worry about those bots trying to bruteforce my SSH, IMAP etc. CSF keeps all of them at the bay. This tutorial applies to the following Operating Systems * Ubuntu 12.04 * Ubuntu 14.04/15.04 * Centos 6.5/6.6/6.7 and Centos 7 Features of CSF includes: * Checks login authentication failures for SSH
Mansoor A
Mansoor A
3 min read

How to setup OpenVPN to browse internet securely - The easy way

Setting up OpenVPN can be such a pain. I had a really hard time trying to figure out what went wrong. I set up everything correctly, the connection between the client and the server is getting established, but alas, I (the client) don't have internet access. I spent a lot of time figuring out what might be the issue, then I stumbled upon "OpenVPN Access Server". All It took was 1 minutes to setup everything. No kidding. I was able to connect to the server without any issue at all. Today, I'll s
Mansoor A
Mansoor A
3 min read

Create your own Simple Port Scanner using Python

Go HERE [https://github.com/MansoorMajeed/simple-portscanner]
Mansoor A
Mansoor A
1 min read

How to set up the sources.lst on Kali Linux 2.0

If during the installation of Kali Linux 2.0, you have chose to not use any network mirrors, chances are you  will be using a pretty basic version of the sources.lst file. For those of you don't know, sources.lst file determines the software repositories from where you can install packages using "apt". If you have a minimal version of "sources.lst", you won't be able to install many of the packages. For example, if you try to install "htop", you will get an error saying "package not found". Foll
Mansoor A
Mansoor A
1 min read

How To Backup All Databases in MySQL [ Script ]

Hello Guys, This is a simple bash script I wrote to dump all the databases ( excluding information_schema and mysql. I thought I'd share it with you. Someone might find it useful, others might find it silly 😀 But, anyway, here it is #!/bin/bash # Checking if the /root/.my.cnf file exists or not if [[ ! -f /root/.my.cnf ]] then echo "/root/.my.cnf does not exist" echo "Did not dump any db. Exiting" exit fi dbs=$(mysql -e "SHOW DATABASES" | sed '1d') mkdir -p dumped_
Mansoor A
Mansoor A
1 min read

How to fix "Missing parameter in configuration file. Keyword: path" in Ubuntu

There is no point in talking much about it. You're probably trying to get your Ubuntu live USB to work. Let's get to the point. If you have just created a Live USB for Ubuntu ( 14.04/14.10/15.04/15.10 ) and while booting from the USB, you're getting this error "Missing parameter in configuration file. Keyword: path..". You have come to the right place, The fix is insanely simple. You just press the "Tab" key, and then type "live" and then press enter. Voila, your USB should boot now. Weird hu
Mansoor A
Mansoor A
1 min read

How to install and use Google Chrome on Kali Linux 2.0

Kali Linux 2.0 is here, which most of us love already. Also, we love Google Chrome, but these two ( Kali Linux 2.0 and Google chrome ) does not work well ( except when you do it right ). Today I will show you how to properly install google chrome on Kali Linux. There is a video tutorial on how to do this. > Update: Kali Linux is now a rolling release, meaning there is no specific version releases for the operating system, If you are already using the rolling, you might want to setup your sourc
Mansoor A
Mansoor A
3 min read

Hacking a Linux server by exploiting the FTP server ( Proftpd )

The vulnerability in the mod_copy module of Proftpd was disclosed a couple months back. Most servers using Proftp are still vulnerable to attacks as they're using older versions of the software. If you're using Proftpd version 1.3.5 or before, your server is vulnerable and it's just a matter of time before someone takes advantage of that vulnerability. So, I thought I'd do a write up about the same, including a demonstration of how easy and terrifying the situation is. Who all are affected? Any
Mansoor A
Mansoor A
3 min read