This file contains 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
import time | |
from tronapi import Tron | |
full_node = 'https://api.trongrid.io' | |
solidity_node = 'https://api.trongrid.io' | |
event_server = 'https://api.trongrid.io' | |
pkey = "private_key_hex" | |
payments = [ |
This file contains 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
<?php | |
// V1.0.7 DEOBFUSCATOR: https://gist.github.com/sh4dowb/68c9e090a3006b1d19ce49a22529c0a5 | |
// put encrypted code in encrypted.php, or use it like: | |
// $ php phpkoru-deobfuscate-2.php encryptedfilename.php | |
// for decrypting advanced version contact me on telegram | |
function decrypt($fn, $try=0){ | |
$onfr64_qrpbqr = 'base64_decode'; |
This file contains 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
[ | |
{ | |
"city": "Adana", | |
"plate_code": 1, | |
"counties": [ | |
"Aladağ", | |
"Ceyhan", | |
"Çukurova", | |
"Feke", | |
"İmamoğlu", |
This file contains 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
# I absolutely hated crypto-js for this. non-standard configurations, weird algorithms, ... | |
# well obviously you can encrypt it with a better configuration which people will not | |
# go crazy figuring out its implementation, but in this case I wasn't encrypting the data. | |
import base64 | |
from Crypto.Hash import MD5 | |
from Crypto.Util.Padding import unpad | |
from Crypto.Cipher import AES | |
# generated using: CryptoJS.AES.encrypt('test 123456 plaintext', 'some password').toString() |
This file contains 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
<?php | |
// put encrypted code in encrypted.php, or use it like: | |
// $ php phpkoru-deobfuscate-3.php encryptedfilename.php | |
// UPDATED v1.0.7 , if you are getting error "IV passed is only 15 bytes long", try this | |
// for decrypting advanced (.dll/.so) version contact me on telegram | |
function trydecrypt($fn, $b64='fge_ebg13', $rot13='bcraffy_qrpelcg'){ | |
eval('$'.$b64.'="base64_decode";'); | |
eval('$'.$rot13.'="str_rot13";'); |
This file contains 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
# Selenium does not use the given profile, but copies it, and uses a temporary profile. | |
# As a result, new cookies and sessions etc. are not saved. | |
# To fix it, we get the actual profile firefox is using, kill firefox manually so geckodriver | |
# doesn't delete profile data. Copying the profile when it's being used is generally not a good idea. | |
# After killing firefox profile and databases are unlocked, we copy the "temporary" profile | |
# to our old profile. | |
# | |
# driver.profile doesn't provide the actual temporary profile, but another copy of it. And firefox | |
# does not use that one. that's why I got it from process list. | |
# |
This file contains 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
<?php | |
// FOR NEW VERSION (1.0.6): https://gist.github.com/sh4dowb/86ad09b9bcbfce323b511395e446d616 | |
// FOR 1.0.7: https://gist.github.com/sh4dowb/68c9e090a3006b1d19ce49a22529c0a5 | |
$input = file_get_contents("untitled.php"); | |
//edit this filename | |
// for decrypting advanced version contact me on telegram | |
This file contains 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
dbus-monitor | grep --line-buffered interface=org.mpris.MediaPlayer2.Player | grep --line-buffered -v spotify | awk -W interactive -F'member=' '{print $2}' | xargs -L1 -I {} dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.{} | |
# when you play another media, and restart spotify, media keys get sent to another destination. | |
# in my case, it was VLC. output from dbus-monitor: | |
# | |
# method call time=1586780292.910122 sender=:1.58 -> destination=org.mpris.MediaPlayer2.vlc serial=1878 path=/org/mpris/MediaPlayer2; interface=org.mpris.MediaPlayer2.Player; member=PlayPause | |
# so I piped together a few commands, which got the wrong dbus output, and forwarded it to spotify. | |
# run: | |
# bash spotify-media-key-fix.sh & |
This file contains 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
from datetime import date, timedelta | |
from rubymarshal.classes import UsrMarshal | |
from rubymarshal.reader import loads | |
data = b'\x04\x08U:\tDate[\x0bi\x00i\x03\xe5R%i\x00i\x00i\x00f\x0c2299161' | |
# 1984-12-18 | |
data = loads(data) | |
if isinstance(data, UsrMarshal): | |
# data._private_data[1] is days since Julian Day (November 24, 4714 BC) | |
data = (date(1900, 1, 1) + timedelta(days=data._private_data[1] - 2415021)).strftime('%Y-%m-%d') |
NewerOlder