C, Linux

[libressl] Generate RSA key

In the latest version of libressl, RSA_generate_key is deprecated, RSA_generate_key_ex should be implemented instead. Implementation (updated) Source file (test.c)

  To compile and run the program, the library libcrypto should be imported

  Expected output

    Implementation (deprecated) Source file (test.c)

C, Linux

[libressl] Setup

SETUP Install the dependencies first

  Clone the repository from Github

  Prepare the source tree

  Configure the source tree and compile the libressl

  Install the libressl under ${HOME}/opt/libressl

  The following error will arise if the library is not written to linked library config file

  To avoid the above error

Continue Reading

C, Gatekeeper, Linux

Gatekeeper [Network setup]

DPDK(network setup) Add two virtual network interfaces in settings in Virtual Box

Check if the network interfaces have been successfully mapped into lua/if_map.lua

  Check the network devices status using dpdk-devbind.py under gatekeeper/dependencies/dpdk/tools

Load the module vfio-pci /  uio_pci_generic


Fix, Windows

Recover corrupted USB from format of other OS to windows

Call diskpart utility In Windows cmd.exe

  To see the list of disk attached

  Select the disk as target and rebuild the partition

  Select the partition 1 built and format the disk, for example, FAT32


Linux, Python, Windows

Scrapy setup

Start a scrapy project at current directory

  File structure

  Set up the first spider file (tutorial/tutorial/spiders/quotes_spider.py)


Linux, Python, Windows

Scrapy (web crawling) installation [Windows / Kali Linx]

For Python 2.7 / 3.3+ Windows Install scrapy using pip

    Kali Linux Since I have both of the Python 2.7 (python) and 3.5.3+ (python3) installed, in order to install the scrapy on python3: Install the pip3 for python3, instead of using pip for old python

  Try install scrapy using pip3

  However, the dependency…

Continue Reading


Developer Firefox on Kali Linux

Download firefox-55.0b6.tar.bz2 package from the official link https://www.mozilla.org/en-US/firefox/developer/   Extract the tar.bz2 and move it into /tmp

  Grant the right of access

  Make symbolic link to the firefox-dev

  Open the browser from terminal



Command line FTP

❖ + R > cmd

Open connection with FTP server with IP

Input the username of FTP server

System prompt and input Password

Upon successful connection, we should be able to see the current directory ( / by default)

  Command line FTP inherits most of the common command from Windows, eg: cd, mkdir


Continue Reading

Plugins, Windows

Install YouCompleteMe for Vim in Win10 bash [ubuntu]

Enter bash in command prompt:

Install the prerequisite for the plugin

Check for python support of vim (either python 2 / 3)

Find the path for user vimrc script (by default: $HOME/.vimrc) And install the plugin using Vundle

Edit the vimrc script to enable plugin support

Copy the following text into the .vimrc


Continue Reading


[ArchLinux] Install from AUR

Steps 1. Go to directory of the AUR package(foo.tar.gz) 2. Extract the AUR package (.tar.gz->PKGBUILD) 3. Go into the extracted folder 4. Make the package (PKGBUILD -> .tar.xz) 5. Install the tar.xz made from (4) using pacman Go to directory of the AUR package(foo.tar.gz)

Extract the AUR package

Change directory into the extracted folder

Make the package…

Continue Reading