Skip to content

Instantly share code, notes, and snippets.

View ujeenator's full-sized avatar
💭
I may be slow to respond.

Eugene Shulga ujeenator

💭
I may be slow to respond.
View GitHub Profile
function $$x (selector) {
const xpathResult = document.evaluate(selector, document, null, XPathResult.ANY_TYPE, null)
const resultArray = []
while (true) {
const item = xpathResult.iterateNext()
if (item) {
resultArray.push(item)
@ujeenator
ujeenator / reset-windows-password.sh
Created July 11, 2019 16:23
Reset Windows user password using Ubuntu LiveCD
# Install required utils
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install chntpw ntfs-3g -y
# Find path of Windows system volume
sudo fdisk -l
# Fix possible problems with windows volume e.g. ungraceful shutdown
sudo ntfsfix windows_volume_path # e.g. /dev/sdaN
#!/bin/sh
brew uninstall ffmpeg
brew tap justinmayer/tap
brew tap-pin justinmayer/tap
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-rtmpdump --with-rubberband --with-speex --with-tesseract --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg
#petya #notpetya #virus #петя #вирус
Windows Petya protection check list for System Administrators (Version 1.2)
Provided AS IS without warranty, use it only if you understand what you doing
1. Close vulnerable ports via CMD (WARNING it disables SMB)
netsh advfirewall firewall add rule name="Petya TCP" dir=in action=block protocol=TCP localport=1024-1035,135,139,445
netsh advfirewall firewall add rule name="Petya UDP" dir=in action=block protocol=UDP localport=1024-1035,135,139,445
0x491B9f471c3E27e9cf2844A89b0c5698Ff2d81f9
0x491B9f471c3E27e9cf2844A89b0c5698Ff2d81f9
Array.from(document.querySelectorAll('*')).forEach(
p => {
p.onblur = function(e) {
console.log('1')
e.preventDefault()
e.stopPropagation()
console.log('2')
### Keybase proof
I hereby claim:
* I am ujeenator on github.
* I am ujeenator (https://keybase.io/ujeenator) on keybase.
* I have a public key ASCUYX8YhnSTl9cmPTDDzXjk9yAvsUFPZW5908slFSf0-go
To claim this, I am signing this object:
del %WINDIR%\perfc.* /f
echo > %WINDIR%\perfc
echo > %WINDIR%\perfc.dat
echo > %WINDIR%\perfc.dll
attrib +R %WINDIR%\perfc.*
echo DONE
const app = require("koa")();
const router = require("koa-router")();
const r = require("rethinkdbdash")();
const ajv = require("ajv")({
removeAdditional: true
});
app.use(require("koa-body")());
app.use(router.routes());