Skip to content

Instantly share code, notes, and snippets.

View chrismjohnston's full-sized avatar
💻
coding...

Christopher Johnston chrismjohnston

💻
coding...
View GitHub Profile
@s0md3v
s0md3v / shodan_ports.txt
Created April 15, 2022 18:02
list of ports scanned by shodan
7
11
13
15
17
19
20
21
22
23
@zapalote
zapalote / encodeCredentials.html
Last active October 4, 2021 11:56
Credential obfuscation and encryption to store then on a database
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script>
<script>
// used to obfuscate and encrypt the credentials
const saltCredentials = "jf02heg9u64a{%m<83#@;Pxrjg17uyr#@&*%^Y";
// encode credentials before storing
function encodeCredentials(crds){
// json object expected e.g. {'api-id':'K0xf56g', 'pwd':'Some.Pa$$w0rd'}
const crd = JSON.stringify(crds);