Skip to content

Instantly share code, notes, and snippets.

@rochmad
rochmad / nmap-cmdline
Created May 15, 2017 16:58 — forked from Neo23x0/nmap-cmdline
Nmap Scan Params for CVE-2017-0143 MS17-010 Scanning
# Scan for CVE-2017-0143 MS17-010
# The vulnerability used by WannaCry Ransomware
#
# 1. Use @calderpwn's script
# http://seclists.org/nmap-dev/2017/q2/79
#
# 2. Save it to Nmap NSE script directory
# Linux - /usr/share/nmap/scripts/ or /usr/local/share/nmap/scripts/
# OSX - /opt/local/share/nmap/scripts/
#
@rochmad
rochmad / install Bind9_9.9.6 debian 7
Last active October 23, 2017 19:05
Install bind9 9.9.x to Debian 7
Install bind 9.9 to debian 7 #tested support CAA
mkdir -p /opt/source/
cd /opt/source
#install Dependencies
apt-get update && apt-get install build-essential gcc libcrypto++-dev libssl1.0.0 libssl-dev
#Download Tarball & extrack
wget wget https://openssl.org/source/openssl-1.0.2e.tar.gz && tar -zxvf openssl-1.0.2e.tar.gz
@rochmad
rochmad / Netdata windows 10 bash mode
Last active April 25, 2020 07:21
Install firehol/NETDATA into WINDOWS 10 subsystem linux/Ubuntu
first off all, let windows use subsystem of linux, you can go here >>> https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
and then go to firehol netdata https://github.com/firehol/netdata/wiki/Installation#x86_64-pre-built-binary-for-any-linux
and follow this step
1. open windows+R and type bash
2. do at root(optional)
3. lookinto "x86_64 pre-built binary for any Linux"
4. DO this "#bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh)"
@rochmad
rochmad / gist:9815c4e6b3023b92d48d301a56680823
Created March 23, 2018 09:38 — forked from imkarthikk/gist:772f86858f90efa55687
Graphite, UWSGI and nginx setup on Ubuntu 14.04
# update packages
sudo apt-get update
# install python and graphite dependencies
sudo apt-get install -y python python-dev python-virtualenv libevent-dev python-pip python-cairo python-django-tagging python-twisted python-memcache python-pysqlite2
# install web server
sudo apt-get install -y nginx uwsgi uwsgi-plugin-python
# install postgresql and dependencies
@rochmad
rochmad / openssh-server.windows10
Created March 27, 2018 17:09
Install Openssh-server in windows 10
[EXPERIMENTAL] Openssh-Server in windows 10, without cygwin
DEMO VIDEO : https://youtu.be/_SEmQJsZLcI
requirement
* windows subsystem for linux
step installing openssh-server into windows
1. apt-get update
2. apt-get upgrade -y
@rochmad
rochmad / unifi_5.7_16.04_LTS
Last active November 4, 2018 18:29
install unifi 5.7 + mongo db 3.2 + java 8 + 16.04 LTS / debian 8
install unifi 5.7 + mongo db 3.0.x + java 8 + 16.04 LTS / debian 8
install java 8 oracle
sudo echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
sudo echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
sudo apt-get update &&
apt-get install oracle-java8-installer
#check java
@rochmad
rochmad / Mikrotik_SSTP_VPN_with_Singed_Certificates_Comodo_SSL_CRL_Enable
Created May 16, 2018 07:01
Mikrotik SSTP VPN with Singed Certificates Comodo SSL, CRL Enable
https://wiki.mikrotik.com/wiki/Manual:Interface/SSTP
how to enable SSTP with Comodo SSL,
first generate like normaly,
and you will get
crt in pk8 format, and convert it to crt,
and then import to mikrotik server,
key from generate, and crt,
@rochmad
rochmad / GIT update vulnerability CVE-2018-11233 and CVE-2018-11235
Last active June 4, 2018 03:24
BUG GIT, (CVE-2018-11233 and CVE-2018-11235)
Vulnerable GIT:
before 2.17.1,
GIT GIT 2.17
before 2.16.4,
GIT GIT 2.16.3
GIT GIT 2.16
before 2.15.2
GIT GIT 2.15.1
GIT GIT 2.15
before 2.14.4
install browsh in debian / ubuntu, with source mode
(links replacement)
download firefox esr on download page
https://www.mozilla.org/en-US/firefox/organizations/all/
find dowload linux 64 or 32 bit, depends on system architecture
example:
# wget -4 https://download-installer.cdn.mozilla.net/pub/firefox/releases/60.1.0esr/linux-x86_64/en-US/firefox-60.1.0esr.tar.bz2
@rochmad
rochmad / gist:82abe4bca64a5a835ee0e6a019ec4765
Created July 16, 2018 06:23
Hashes of expected file debian 9
sudo rm -rf /var/lib/apt/lists/partial
227 sudo apt-get update -o Acquire::CompressionTypes::Order::=gz