This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Extract key-values from string in the format of 'k1=v1&k2=v2&k3=v3' (with uri decoding) | |
| String.prototype.ToKvps = function(){ | |
| var qd={}; | |
| this.split`&`.forEach(item => {let [k,v] = item.split`=`; v = v && decodeURIComponent(v); | |
| (qd[k] = qd[k] || []).push(v)}); | |
| return qd; | |
| } | |
| //Example: JSON.stringify("fd=44&ds=32&dks=1314%41&sd=39%209&ds=dsl%20ds".ToKvps()); | |
| //Output: "{"fd":["44"],"ds":["32","dsl ds"],"dks":["1314A"],"sd":["39 9"]}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name":"rand-url-create", | |
| "version":"0.0.1", | |
| "description":"Random URL Generator URI encoded param", | |
| "license":"Creative Commons Zero v1.0 Universal", | |
| "author":"C. Dek. chrdek - github" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f=v=>{[...v].map(c=>eval([...c].map(p=>p|0).join`+`));return!(v[0]^v[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f=v=>(d=v.map(c=>eval([...c].map(p=>p|0).join`+`)),d[0]==d[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rm "$HOME\Documents\outps.txt" | |
| echo "Home Dir is ---> $HOME" >> "$HOME\Documents\outps.txt" | |
| echo "Default Path is --> $PWD" >> "$HOME\Documents\outps.txt" | |
| echo "Version is --> $BASH_VERSION (not running in ps)" >> "$HOME\Documents\outps.txt" | |
| echo "Term type is --> $TERM (not running in ps)" >> "$HOME\Documents\outps.txt" | |
| cat "$HOME\Documents\outps.txt" | |
| powershell.exe cat "$HOME\Documents\outps.txt" | |
| ########################################################################################### | |
| function ret1st() { | |
| return "Last command was: "+$$; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Samples for Node set 1.. | |
| # ^(app\.js)|^(app\.[a-zA-Z0-9]+\.js) | |
| ls | grep -E "app.[a-zA-Z0-9]+|app[0-9]{1,3}.js" | |
| # ^(node_)[a-z0-9]+(.tmp) | |
| ls | grep -E "node_[a-zA-Z0-9]+.tmp" | |
| # %APPDATA%\npm-cache\_logs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| # | |
| # | |
| # The scripts below (ranked fastest to slowest) are used to create a dummy file of | |
| # varying sizes and of different contents. Null/Numeric/Binary data. | |
| # | |
| # | |
| #> | |
| # 1 - Using FileStreams |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module("MainContent",[]).controller("ProfileController", | |
| function($scope,$http){ | |
| $scope.searchData = [{ | |
| "name":"Customer 1", | |
| "description":"Default description" | |
| }, | |
| { | |
| "name":"Customer 2", | |
| "description":"Description 2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $execobf = [ScriptBlock]{ | |
| [string[]]$config = @("$(Resolve-Path .)","A.Module.Name.dll"); | |
| [int]$obflvl = $(Read-Host "Enter an obfuscation option [0-4]"); #0 - Level0 obf. debuggable, 1 - Level1 obf. debuggable-noil, 2 - Level2 obf. not debuggable, 3 - Level3 obf. not mergable, 4 - Level4 obf. not usable | |
| $ops = @' | |
| PHByb2plY3Qgb3V0cHV0RGlyPSJ7T1VURElSfSIgYmFzZURpcj0ie0JBU0VESVJ9IiBkZWJ1Zz0idHJ1ZSIgeG1sbnM9Imh0dHA6Ly9jb25mdXNlci5jb2RlcGxleC5jb20iPg0KICA8bW9kdWxlIHBhdGg9IntNT0RVTEV9Ij4NCiAgPHJ1bGUgcGF0dGVybj0idHJ1ZSIgaW5oZXJpdD0iZmFsc2UiIC8+DQogIDwvbW9kdWxl | |
| Pg0KPC9wcm9qZWN0Pg==; | |
| PHByb2plY3Qgb3V0cHV0RGlyPSJ7T1VURElSfSIgYmFzZURpcj0ie0JBU0VESVJ9IiBkZWJ1Zz0idHJ1ZSIgeG1sbnM9Imh0dHA6Ly9jb25mdXNlci5jb2RlcGxleC5jb20iPg0KICA8bW9kdWxlIHBhdGg9IntNT0RVTEV9Ij4NCiAgICA8cnVsZSBwYXR0ZXJuPSJ0cnVlIiBpbmhlcml0PSJmYWxzZSI+DQogICAgICA8cHJv | |
| dGVjdGlvbiBpZD0iYW50aSBpbGRhc20iLz4NCiAgICA8L3J1bGU+DQogIDwvbW9kdWxlPg0KPC9wcm9qZWN0Pg==; | |
| PHByb2plY3Qgb3V0cHV0RGlyPSJ7T1VURElSfSIgYmFzZURpcj0ie0JBU0VESVJ9IiB4bWxucz0iaHR0cDovL2NvbmZ1c2VyLmNvZGVwbG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var https = require('https'); | |
| var fs = require('fs'); | |
| var auth = require('basic-auth'); | |
| var cookie = require('cookie'); | |
| var signed = require('cookie-signature'); | |
| const express = require('express'); | |
| const routing = express(); | |
| const error = '<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Error</title><head><body><pre>Cannot load page: [GET]</pre></body></html>'; | |
| const initialpage = '<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Data Loaded</title><head><body><hr/><i>User Data Loaded</i><hr/></body></html>'; |