Skip to content

Instantly share code, notes, and snippets.

View yonixw's full-sized avatar

Yehonatan Water Man yonixw

View GitHub Profile
@yonixw
yonixw / Readme.md
Last active November 5, 2020 20:16
Concurrent WhatsApp Web across devices and windows

Info

Watch the video version : https://www.youtube.com/watch?v=IzZmIpXgZzo

This guide will let you run multiple WhatsApp-Web instances. Please note:

  • Send - every message send will happen as soon as possible
  • Read - Your phone will sync with only 1 instance at a time, to get update, you need to trigger it. My choise is to query a message info (any message)

Note: This guide is for educational porpuses only!!! It might break anyday. Use cautionally.

Step 1 - Sync secrets.

@yonixw
yonixw / report_bom.js
Created October 7, 2020 01:25
SonaType small report for ci cd
var http = require('http');
var fs = require('fs');
const { exit } = require('process');
const filename = "./bom.json"
function getReadableFileSizeString(fileSizeInBytes) {
var i = -1;
var byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB'];
do {
@yonixw
yonixw / index.html
Last active September 30, 2020 01:33
Dock\Border layout problem with expending content
<html>
<head>
<title>Dock layout problem POC</title>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<style><html>
<head>
<title>Dock layout problem POC</title><html>
<head>
@yonixw
yonixw / search.txt
Created June 20, 2020 22:23
Call Graph
VSCODE - JS?
Android Stduio - Java?
xCode - ioS?
doxygen
[?] Visual Studio Ext
* https://marketplace.visualstudio.com/items?itemName=YaobinOuyang.CodeAtlas
* C/C++(Tested) Python,Java,C#(Not Tested yet)
* Other languages that __doxygen__ supports:
@yonixw
yonixw / convert.bat
Created June 18, 2020 00:04
ImageMagick Webtoon black reigon remover
REM TO C#
REM https://www.imagemagick.org/discourse-server/viewtopic.php?t=33531
SET f=31.jpg
REM Pencil:
REM convert -size 256x256 xc: +noise Random -virtual-pixel tile -motion-blur 0x20+135 -charcoal 1 pencil_tile.gif
REM Get the black
@yonixw
yonixw / AndroidManifest.xml.md
Last active February 16, 2020 20:23
Vanced youtube disable search
@yonixw
yonixw / TabGuardManager$2$1.smali.md
Created October 27, 2019 21:51
spin to localhost

access$700 will add the domain to cache. By removing it we will make each navigation query our local server. Also Im afraid to put there full url which will create bugs.

@@ -221,7 +221,7 @@

     iget-object v1, v1, Lorg/mozilla/gecko/TabGuardManager$2;->val$domainName:Ljava/lang/String;

-    invoke-static {v0, v1}, Lorg/mozilla/gecko/TabGuardManager;->access$700(Lorg/mozilla/gecko/TabGuardManager;Ljava/lang/String;)V
+ #invoke-static {v0, v1}, Lorg/mozilla/gecko/TabGuardManager;-&gt;access$700(Lorg/mozilla/gecko/TabGuardManager;Ljava/lang/String;)V
@yonixw
yonixw / readme.md
Last active November 14, 2019 20:08
Xamarin TAG snippet with class name

In visual studio:

  1. Tools > Code Snippets Manager
  2. Import
  3. Choose .Snippet file
@yonixw
yonixw / main.cpp
Created September 1, 2019 00:13
WINAPI Open process as user from SYSTEM with deny on query.
#include <Windows.h>
#include <wtsapi32.h>
#include <userenv.h>
#include <aclapi.h>
#include <stdio.h>
#include <sddl.h>
#pragma comment(lib, "Userenv.lib")
#pragma comment(lib, "wtsapi32.lib")
@yonixw
yonixw / decoded.js
Created August 29, 2019 12:32 — forked from gwillem/decoded.js
962 stores found breached on the 4th of July - https://sansec.io
// Decoded by Sanguine Security <info@sansec.io>
String.prototype.hexEncode = function() {
var a, b;
var output = '';
for (b = 0; b < this.length; b++) {
a = this.charCodeAt(b).toString(16);
output += ('000' + a).slice(-4)
};
return output
};