Skip to content

Instantly share code, notes, and snippets.

View mhasbini's full-sized avatar

M. Hasbini mhasbini

View GitHub Profile
@mhasbini
mhasbini / srt-dir.sh
Created April 5, 2023 19:01
Script to generate srt for a directory that containes videos using https://github.com/ggerganov/whisper.cpp
set -Eeuo pipefail
msg() {
echo >&2 -e "${1-}"
}
source_dir="${1}"
for filename in $source_dir/*; do
[ -f "$filename" ] || continue
@mhasbini
mhasbini / webmssdk.js
Created December 24, 2022 11:13
Deobfuscated version of https://sf16-website-login.neutral.ttwstatic .com/obj/tiktok_web_login_static/webmssdk/1.0.0.1/webmssdk.js
!(function (arg1, arg2) {
if ("object" == typeof exports && "undefined" != typeof module) {
arg2(exports);
} else if ("function" == typeof define && define.amd) {
define(["exports"], arg2);
} else {
arg2(
((arg1 = "undefined" != typeof globalThis ? globalThis : arg1 || self).byted_acrawler =
{})
);
@mhasbini
mhasbini / deobfuscated.js
Created December 12, 2022 13:22
Deobfuscated version of earlierindians . com/39faf03aa687eeefffbe787537b56e15/invoke.js
!(function (arg1, arg2, arg3) {
"use strict";
var lVar1 = [];
var lVar2 = [];
var lVar3 = arg3.documentElement;
var lVar4 = 12;
var lVar5 = 0;
var lVar6 = 0;
var LieDetector = {
"isEmulate": function () {
import httpy
req = httpy.get('http://httpbin.org/robots.txt')
req.status # => 200
req.data # => 'User-agent: *\nDisallow: /deny'
require './ruby_on_lane.rb'
# Schema
Schema.define('hello_app_database') do
table :users do
column :string, :name
column :int, :age
end
end
Checked 30000 rules in 42339.266s
Found 29779 uniq rules from 30000 total (99.263%).
Found duplicate o0a i1k with ^a o1k
Found duplicate o0a i1u with ^a o1u
Found duplicate ^3 ^4 o22 i31 r with ^4 o13 i22 i31 r
Found duplicate o0p i1h with ^p o1h
Found duplicate o0t i1y with ^t o1y
Found duplicate o0s i1i with ^s o1i
Found duplicate ^d o1d with o0d i1d
Found duplicate ^j o1o i2e with ^o ^j o2e
# use Digest::xxHash qw/xxhash64/; # many collisions
use Digest::SHA qw(sha512_hex);
use File::Temp qw/tempfile/;
use Data::Dumper;
use strict;
use warnings;
use Time::HiRes qw(time);
my $wordlist = 'C:\pentest\lab\temp\hashcat-wlist.txt';
# my $wordlist = 'C:\pentest\lab\temp\test.txt';
use String::Random;
use Data::Dumper;
use Time::HiRes qw(time);
my $str = String::Random->new();
$str->{'w'} = [ @{$str->{'C'}}, @{$str->{'c'}} ];
$str->{'N'} = [ @{$str->{'w'}}, @{$str->{'n'}} ];
use constant {
STR_NUM => 100,