Skip to content

Instantly share code, notes, and snippets.

@superzadeh
superzadeh / Kali Lab Setup Guide.md
Last active August 31, 2023 14:37
Guide to setup a Kali pentest lab with CTF4 machine from LAMPSecurity #tags: ceh, kali, hacking, lab

How to setup the Kali Linux VM

Lab Configuration

VirtualBox configuration

Install VirtualBox as well as the Oracle VM VirtualBox Extension from Oracle's VirtualBox website: https://www.virtualbox.org/wiki/Downloads.

Double click on the latest Kali *.ova. VirtualBox will start and ask you to import the VM. You can change the name, and make sure to check "Reinitialize MAC addresses of all network cards". Then click next untill the end (you can change these settings later).

Once the VM is imported, click on Configuration. Go to the Network tab and create two adapters:

cd /tmp
wget https://dl.influxdata.com/influxdb/releases/influxdb_0.13.0_amd64.deb
sudo dpkg -i influxdb_0.13.0_amd64.deb
# Start the service
sudo service influxdb start
wget https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.0-1468321182_amd64.deb
# Fix for upstart on Ubuntu on Windows 10
@superzadeh
superzadeh / arrange act assert
Last active February 14, 2017 13:34
Resharper templates #tags: template, resharper, c#, snippets
// Arrange
// Act
// Assert
@superzadeh
superzadeh / iisexpress-gulp.js
Last active February 10, 2017 09:49
Start IIS Express using gulp #tags: gulp, snippet
gulp.task('iisxpress', function () {
var startDir = process.cwd();
var iisExpressPath = process.env['ProgramFiles(x86)'] + "\\IIS Express";
var cmd = 'iisexpress /port:3005 /path:' + startDir;
util.log('Starting iisexpress with command: ' + cmd);
gulp.src('')
.pipe(shell([cmd], {
cwd: iisExpressPath,
quiet: true
@superzadeh
superzadeh / demystify javascript.md
Last active October 3, 2017 08:55
demystify javascript for C# developpers #tags: javascript, training

JavaScript demystified

Below are "my words", as I understand them. They are by no mean a reference, but my hope is that they can somehow help you understand some key elements of the JavaScript language.

For far more detailed and accurate explanations, refer to Kyle Simpson's series "You don't know JS yet".

Understanding "==="

A strongly weakly typed language

#!/bin/bash
cd /home/chip/roms
folderpath=$(ls)
system=$(eval zenity --list --column System $folderpath --width=480 --height=272)
if [ "$?" -eq 1 ]; then
echo "Cancelled."
[user]
name = Charles Ahmadzadeh
email = superzadeh@outlook.com
[push]
default = current
[core]
editor = code --wait
[alias]
ll = log --pretty=format:'%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]' --decorate --numstat
ls = log --pretty=format:'%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn] - %Cgreen%ad' --decorate --date=short
@superzadeh
superzadeh / ctf4.md
Last active February 10, 2017 09:49
CTF4 solution #tags: hacking, ctf4, lab, ceh

CTF4 solution

Scan the subnetwork

nmap -sn 10.10.10.0/24

Perform a full scan on the target

nmap -A 10.10.10.2
@superzadeh
superzadeh / backend-Dockerfile
Last active June 12, 2018 16:55
Debug config VSCode
FROM node:carbon-slim
EXPOSE 9228
WORKDIR /app
# Install packages
ADD ./package.json ./yarn.lock /app/
RUN cd /app && yarn install