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


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



[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


[ArchLinux] CUPS

1. Install from official repository

2. Enable and start the services

3. Access the CUPS services web interface