This file contains hidden or 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 idaapi, idc, idautils | |
import re | |
import struct | |
import base64 | |
flag_arr=[] | |
def decrypt_algo(key, data, data_len): | |
out="" | |
for i in range(0, data_len): |
This file contains hidden or 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
Written by Thanos Apostolou | |
http://askubuntu.com/questions/53822/how-do-you-run-ubuntu-server-with-a-gui | |
Some more info can be found here https://help.ubuntu.com/community/ServerGUI. I assume you start with a clean install of Ubuntu Server 16.04 (some modifications may be needed for older versions of Ubuntu). Depending on your needs you can do these: | |
Minimal GUI: | |
sudo apt install xorg | |
sudo apt install --no-install-recommends openbox | |
Run the command startx and openbox will start (you can open a terminal there and run any application you want) |
This file contains hidden or 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 | |
/* | |
note this is not "correct" | |
it was made to deobfuscate particular obfuscated files | |
"proper" tool should probably operate on AST to properly parse the file | |
but even that's not enough - you can't assume things we do here | |
*/ | |
function unwrap_hexstr_literals($src) //currently only \xHH and \nnn supported |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.5) | |
project(extname | |
VERSION 1.0.0 | |
LANGUAGES C) | |
message(STATUS "Begin cmaking of PHP extension ...") | |
if (NOT CMAKE_BUILD_TYPE) | |
set(CMAKE_BUILD_TYPE Debug CACHE STRING |
This file contains hidden or 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
HEXRAYS_LICENSE 6.8 | |
USER Giancarlo Russo, HT Srl | |
EMAIL [email protected] | |
ISSUED_ON 2015-05-25 18:07:13 | |
LICENSE_ID PRODUCT # SUPPORT EXPIRES DESCRIPTION | |
--------------- -------- -- ---------- --------- ----------------------------- | |
48-3255-7514-28 IDAPRONW 1 2016-04-08 Never IDA Professional Named License (Windows) | |
48-B055-7514-8E IDAPRONM 1 2016-04-08 Never IDA Professional Named License (Mac) |
This file contains hidden or 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 | |
/** | |
* Simple php cache using php generated files and opcache | |
* Usage: | |
* $diskCache = new DiskCache(); | |
* $diskCache->write('foo', 'bar'); | |
* echo $diskCache->read('foo'); // print bar | |
*/ | |
class DiskCache { |
This file contains hidden or 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
#!/bin/bash | |
# Become root | |
sudo su | |
# Create root password | |
passwd | |
# Install java and ssh | |
apt-get update | |
apt-get install -y openssh-server |
This file contains hidden or 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 | |
function convert_non_persian_chars_to_persian ($str) { | |
//main goal: arabic chars: from U+0600 (؀) to ۿ U+06FF (ۿ) | |
//source: https://unicode-table.com/en | |
$right_chars = array ( | |
'ا', | |
'ب', | |
'پ', | |
'ت', | |
'ث', |
This file contains hidden or 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
A00100-HS8A06-WV4P70-53M275-8RRN21 |
This file contains hidden or 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 idaapi, idc, idautils | |
class DecryptorError(Exception): | |
pass | |
def rc4crypt(key, data): | |
x = 0 | |
box = list(range(256)) |