TwitterRSS Feed

Esc.sh

Random notes from an Engineer

Getting to Know Systemd : Ubuntu 15.04+ / Centos 7+, How to manage your system using systemd

Well, systemd is here. But, why should you care? If you're going to use ubuntu 15.04+ or Centos 7, you're gonna need systemd. Because these operating systems use systemd rather than init. Before we get into how to use systemd, we should have a basic idea about what it is. Systemd is a suite of daemons, libraries and utilities designed as a central management and configuration platform for the Linux computer operating system. There is a reason why you're here, either you want to Learn about syste
Mansoor A
Mansoor A
2 min read

Setting up Apache, MySQL, PHP ( LAMP) in Elementary OS, Ubuntu 14.04, 14.10, 15.04

I'm gonna jump right into the "how to" part, cuz I know you are not gonna read the rest of it. So, LAMP? * L - Linux * A - Apache * M - MySQL * P - PHP How to set it up in your local machine or VPS running Ubuntu 14.04 or other derivatives like Elementary OS ( my favorite ). Well, here is how you will do it. sudo apt-get update # Install Apache sudo apt-get install apache2 # Install MySQL # Please note that this will ask you to setup a root password. Set up a strong one. # If you ar
Mansoor A
Mansoor A
1 min read

Weevely 3 - The Tiny Yet Dangerous PHP Shell

> DISCLAIMER: Whatever discussed here is for educational purposes and to protect yourselves from such attacks. I'm in no way responsible for whatever damage you cause to anyone or anything by following the things discussed here. Weevely? Weevely is a php backdoor generator. One of the cool thing ( or should I say troubling thing - from a sysadmin's perspective ) about it is that, it is not detected by most of the malware scanners ( To be honest, I scanned such a shell using virus total, and no
Mansoor A
Mansoor A
4 min read
HomePage

SQL Injection simplified

SQL injection, we have all heard of it. Some of you might have even tried to inject SQL into a vulnerable website. But, most people still don't know what exactly it is. So, today, I'm going to explain to you guys and girls what exactly is SQL injection. This is a simple explanation of what SQL injection actually means and how SQLi works. This is not a post about how to hack websites using SQL injection, but it's about understanding the concepts and by that, you may or may not be able to conduct
Mansoor A
Mansoor A
7 min read

How To install and use tor in centos 7

> Note: This is an old post. Today, I'll help you guys to install and use tor in your centos 7 machine. This method works with other versions of centos or fedora too. Here's how you will do it. We have to add the repository to install tor. For that, we need to create a new repo file in the yum.repos.d folder. For that, issue the following command (Please note that you need to be root to edit this file) sudo gedit /etc/yum.repos.d/torproject.repo Now, paste the following text into that file
Mansoor A
Mansoor A
1 min read

How to create a new normal user with sudo permission in Kali Linux

Kali Linux, the pentester's Linux does not need an introduction. Today, I'll show you how to create a normal user under Kali Linux. You might ask, Why would someone want to create a normal/standard user in Kali? What's wrong with root only? Well, simply saying, being root all the time is not so good. Some applications won't work in root. (Google chrome won't work in root by default). If you want to use Kali as a day to day operating system, I'd suggest you to create a standard user and use it. I
Mansoor A
Mansoor A
1 min read

Dual boot Windows and Centos 7

After I installed centos 7 in my system, I noticed that my windows 8 installation is not showing in the grub. Then I realised that, it is due to the fact that windows uses ntfs partition and by default, ntfs cannot be mounted in centos. (Don't worry, its an easy fix). So, the First thing you should do is enable NTFS support in Centos 7. I have a blog post HERE [https://esc.sh/blog/cannot-mount-ntfs-in-centos-7-how-to/] explaining how to deal with that. Read the post and get your ntfs system re
Mansoor A
Mansoor A
1 min read

How To Enable EPEL repository in Centos 7

Let's go straight to the point!! To install EPEL repository on your Centos 6.x / 7.x machine, issue the following command yum install epel-release -y That's it.
Mansoor A
Mansoor A
1 min read

Cannot mount NTFS in Centos 7? Here's how you will fix it

Yesterday, I installed Centos 7 and when I tried to open one of my partitions, (which is NTFS file system), it showed me an error saying that It cannot mount ntfs file systems. Then I did some research and found a solution, which works great. So, how would you make your Centos 7 to recognize NTFS hard drives? Her's how you will do it. First of all, we have to install the "epel" repository in your server. yum install epel-release Now that we have the repository in place, all we have to do is
Mansoor A
Mansoor A
1 min read

What to do when cinnamon freezes in your Linux machine?

We have all been there. We love Linux, we love Linux Mint, and we love Cinnamon. But some truths are bitter. While doing some important work, cinnamon just freezes. You don't know what the hell just happened. Everything is stuck. You can't click anywhere, you can't open any window,  nothing. I had to face this issue so many times in my Linux Mint 15 machine. You know that you can restart cinnamon by using cinnamon -replace command. But hey, you can't even open a terminal to do that, right? Bu
Mansoor A
Mansoor A
1 min read

What to do when your computer running ubuntu freezes?

This is what you can do when your Ubuntu freezes There are different types of freezing, from a single program stops responding, to the entire system lock up. I will try to address them one by one. A single program stops responding This is the most common one. This happens very often. And this can be dealt easily. When a single window stops responding, you can simply click the close button in the window and chances are it will give you an option to force close it. But, sometimes it does not.
Mansoor A
Mansoor A
2 min read

InfoSec - Crashing A Windows 7 System Using Metasploit : MS10-006

Today I'll show you how to crash an unpatched Windows 7 machine, and how to protect yourselves from such attacks. Now, this attack can be used to do remote code execution in compromised systems. But, today I'll be demonstrating how to crash a windows 7 system. Before we get into the attack phase, I'd like to give you guys some background information about what we are doing here. The vulnerability is called MS10-006. You can read more about it from Microsoft website itself: HERE [https://techne
Mansoor A
Mansoor A
3 min read