Skip to content

Instantly share code, notes, and snippets.

💭
☕︎

Elad Karako eladkarako

💭
☕︎
Block or report user

Report or block eladkarako

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@eladkarako
eladkarako / extract domain sibling (sub-domains) from VirusTotal new website (a lot of shadow-dom $h!t!!!).js
Created Aug 14, 2019
extract domain sibling (sub-domains) from VirusTotal new website (a lot of shadow-dom $h!t!!!)
View extract domain sibling (sub-domains) from VirusTotal new website (a lot of shadow-dom $h!t!!!).js
NodeList.prototype.map = Array.prototype.map;
document
.querySelector('vt-graph-app').shadowRoot
.querySelector('vt-drawer').shadowRoot
.querySelector('vt-drawer-node-list').shadowRoot
.querySelectorAll('.node-info')
.map(function(e){return e.innerText;})
.sort()
.join("\r\n")
;
@eladkarako
eladkarako / form_submit_with_fallback_more_efficient_one-time-per-hostname_resolve.php
Created Jul 30, 2019
[PHP][JavaScript][HTML] Simple FORM-Submit example (NojQuery) with server-side SANITIZE for the input - form_submit_with_fallback_more_efficient_one-time-per-hostname_resolve.php
View form_submit_with_fallback_more_efficient_one-time-per-hostname_resolve.php
<?php
function arg_value($name){
$items = [
filter_input(INPUT_POST, $name, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH | FILTER_FLAG_STRIP_BACKTICK)
,filter_input(INPUT_GET, $name, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH | FILTER_FLAG_STRIP_BACKTICK)
];
$items = array_filter($items, function($item){
return ((null !== $item) && (false !== $item));
});
View Hebrew - First Names - Female - שמות פרטיים בנות.txt
אב
אבגיל
אבגר
אבי
אביאור
אביאל
אביאלה
אביאם
אביב
אביבה
@eladkarako
eladkarako / html2text.php
Created Jul 30, 2019
[PHP] html2text.php - takes HTML and removes/purge the tags so the result can be sensible/readable as a text.
View html2text.php
<?php
while (ob_get_level() > 0) ob_end_flush();
date_default_timezone_set("Asia/Jerusalem");
mb_language("uni");
mb_internal_encoding('UTF-8');
setlocale(LC_ALL, 'en_US.UTF-8');
header('Charset: UTF-8');
header('Content-Language: en');
@eladkarako
eladkarako / .htaccess
Created Jul 30, 2019
[PHP] making chunk'ed response in PHP
View .htaccess
SetEnvIf Request_URI .* no-gzip=1
#<ifModule mod_headers.c>
# Header set Connection keep-alive
#</ifModule>
#
#<IfModule mod_php5.c>
# php_value post_max_size 5M
# php_value upload_max_filesize 5M
# php_value memory_limit 700M
@eladkarako
eladkarako / mb_pathinfo.php
Created Jul 30, 2019
[PHP] mb_pathinfo.php - yet another multi-byte-safe pathinfo alternative, it breaks down a string (file-system path) to its components using a regular-expression.
View mb_pathinfo.php
<?php
header("Content-Type: text/plain; UTF-8");
/**
* mb_pathinfo (yet another multi-byte-safe pathinfo alternative)
*
* @param string $path - filename-like complete string (does not need to be actually existing in the OS).
* @param string $segment - optionally specify just one path-segments ('all' - all of them in an associative array).
* @param string $concat - optionally specify any string (filename) to append at the end.
*
@eladkarako
eladkarako / enumerate_level_0_non-recursive_files_in_folder.js
Created Jul 30, 2019
NodeJS - Enumerate level-0 (non-recursive) files in folder, prepared for an argument input (not used)
View enumerate_level_0_non-recursive_files_in_folder.js
"use strict";
const FS = require("fs")
,PATH = require("path")
,RESOLVE = function(path){path = path.replace(/\\+/g,"/");
path = PATH.resolve(path);
path = path.replace(/\\+/g,"/");
path = path.replace(/\/\/+/g,"/");
path = path.replace(/\/+$/g,""); //remove last '/'
return path;
@eladkarako
eladkarako / document_ready.js
Created Jul 30, 2019
[JavaScript] document ready (plain method)
View document_ready.js
function document_ready(callback){
function completed(){
document.removeEventListener("DOMContentLoaded", completed, false);
self.removeEventListener("load", completed, false);
self.setTimeout(function(){ callback(); },10); //timeout helps to execute in a semi-async way.
}
if("loading" !== document.readyState){ //interactive or complete
completed();
return;
View PST2GB.txt
File: PST2GB.exe
P32Dasm v2.80
VB6 Application detected ... NCode
00409670: Private dlgDialog.lblQ245025_Click()
00409676: push __vbaExceptHandler
004096DA: call __vbaHresultCheckObj
004096E0: mov esi, __vbaStrToAnsi
You can’t perform that action at this time.