TwitterRSS Feed

Esc.sh

Random notes from an Engineer

Setup Let's encrypt SSL for your domains - Centos 6/7

The wait is over. Let's encrypt is now in public beta, meaning, you and I can get valid, trusted SSL certificates for our domains, FOR FREE, FOR LIFE TIME. I know, even I didn't believe it the first time, but it's true. It's free. Free as in freedom. In this article, I'll show you guys how to set up an SSL certificate from Let's encrypt for your domain. . Please note that you need a dedicated server/VPS for this. Shared hosting is not supported ( Obviously ) > Update: If you are using cPanel,
Mansoor A
Mansoor A
6 min read

Setting up VirtualHost in Centos 7

This is gonna be a quick and dirty post about how to properly setup VirtualHost in Centos 7. I mainly made this as part of the Let's encrypt setup. So, yeah let's get started First of all, you obviously need to install the LAMP stack in your server. Go HERE [https://digitz.org/blog/how-to-setup-xampp-lamp-in-centos-7/] Create the directory structure We need a specific directory structure so that we can easily manage the VirtualHosts. Here, I'll be using the structure /var/www/site1.com/public_
Mansoor A
Mansoor A
1 min read

How to install GUI (X-Server) on Ubuntu Server

The thing about Linux servers is that, they don't come with a GUI for obvious reasons, including but not limited to "to conserve resource usage". I mean, you don't want your X server to be eating up all your RAM and CPU, do you? So the question comes, do you need  a GUI (X11 server ) on your Linux server ( Ubuntu /Centos / Whatever )? If you ask me, my answer would be "HECK NO!!". Well, it's just my opinion. So, for some weird reasons ( or you're  a newbie and you are scared of the command line
Mansoor A
Mansoor A
1 min read

How to fix python errors when installing modules

This is a quick article showing how to fix common errors you might face when you install a python module using "pip" or by downloading and running "python setup.py install" The Following are the common errors you might come across fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. Compile failed: command ‘x86_64-linux-gnu-gcc' failed with exit status 1 Well, this error means you do not have the python development tools installed.
Mansoor A
Mansoor A
1 min read

"Howdoi" - Get instant coding answers in your terminal itself

If you're  a sysadmin, programmer, or even a hacker, you might come across a situation where you quickly want to know an answer to a simple question, like "How to get epoch time on bash?", or whatever. What you usually do is, open up the browser, start searching in google. But, what if I told you you can get the answer from your command line / terminal itself? Sounds cool, right? There is this tool called "howdoi" which does exactly that. I'll show you a couple of examples to get the idea of how
Mansoor A
Mansoor A
1 min read

How to install nmap 7

Nmap, the ultimate security scanner has released the latest version - nmap v7. What's new in nmap 7? * Major Nmap Scripting Engine (NSE) Expansion : 171 new scripts and 20 libraries since Nmap 6 ( Including firewall bypass ) * Mature IPv6 support * Faster Scans : New Nsock engines give a performance boost to Windows and BSD systems * SSL/TLS scanning solution of choice : Scan for Heartbleed, POODLE, and FREAK vulnerabilities * Ncat Enhanced * Extreme Portability How to install N
Mansoor A
Mansoor A
1 min read

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