Skip to content

Instantly share code, notes, and snippets.

@jat001
jat001 / namebase.py
Created Feb 20, 2020
Sell HNS automatically
View namebase.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from decimal import Decimal
from datetime import datetime
try:
import requests
import simplejson as json
@jat001
jat001 / global
Last active Jan 23, 2020
Xiaomi Mix 2S CN Device (M1803D5XE) + Global ROM + Magisk Solution
View global
#!/system/bin/sh
resetprop ro.product.name mix2s
View magisk_debug.log
--------- beginning of main
03-07 07:51:08.446 574 574 W auditd : type=2000 audit(0.0:1): initialized
03-07 07:51:11.079 574 574 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
03-07 07:51:11.079 574 574 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
03-07 07:51:13.719 565 565 W e2fsck : type=1400 audit(0.0:4): avc: denied { read } for name="sda18" dev="tmpfs" ino=24843 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0
03-07 07:51:13.719 565 565 W e2fsck : type=1400 audit(0.0:5): avc: denied { read write } for name="sda18" dev="tmpfs" ino=24843 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0
03-07 07:51:13.765 0 577 I SELinux : SELinux: Loaded service_contexts from:
03-07 07:51:13.765 0 575 I SELinux : SELinux: Loaded service_contexts from:
03-07 07:51:13.766 0 577 I SELinux : /vendor/etc/selinux/vndservice_conte
View magisk_debug.log
--------- beginning of main
03-07 01:00:31.744 0 581 I SELinux : SELinux: Loaded service_contexts from:
03-07 01:00:31.745 0 579 I SELinux : SELinux: Loaded service_contexts from:
03-07 01:00:31.746 0 579 I SELinux : /system/etc/selinux/plat_service_contexts
03-07 01:00:31.746 0 579 I SELinux : /vendor/etc/selinux/nonplat_service_contexts
03-07 01:00:31.747 0 581 I SELinux : /vendor/etc/selinux/vndservice_contexts
03-07 01:00:25.382 578 578 W auditd : type=2000 audit(0.0:1): initialized
03-07 01:00:28.199 578 578 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
03-07 01:00:28.199 578 578 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
03-07 01:00:31.699 568 568 W e2fsck : type=1400 audit(0.0:4): avc: denied { read } for name="sda18" dev="tmpfs" ino=17055 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0
View SystemServerInjector.class.java
package com.android.server;
import android.content.Context;
import android.content.IntentFilter;
import android.os.Build.VERSION;
import android.os.IBinder;
import android.os.ServiceManager;
import android.os.SystemClock;
import android.os.SystemProperties;
import android.util.Slog;
View magisk_debug.log
--------- beginning of main
03-04 14:01:10.364 0 589 I SELinux : SELinux: Loaded service_contexts from:
03-04 14:01:10.366 0 589 I SELinux : /system/etc/selinux/plat_service_contexts
03-04 14:01:10.366 0 589 I SELinux : /vendor/etc/selinux/nonplat_service_contexts
03-04 14:01:10.369 0 591 I SELinux : SELinux: Loaded service_contexts from:
03-04 14:01:10.369 0 591 I SELinux : /vendor/etc/selinux/vndservice_contexts
03-04 14:01:03.447 588 588 W auditd : type=2000 audit(0.0:1): initialized
03-04 14:01:06.059 588 588 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
03-04 14:01:06.059 588 588 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
03-04 14:01:10.199 569 569 W resize2fs: type=1400 audit(0.0:4): avc: denied { read } for name="swaps" dev="proc" ino=4026532171 scontext=u:r:resize:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0
View keybase.md

Keybase proof

I hereby claim:

  • I am jat001 on github.
  • I am jat (https://keybase.io/jat) on keybase.
  • I have a public key ASBK24kyPmTrov_-652Zwn2OoFyVFZ134-adLhA2h161eAo

To claim this, I am signing this object:

View wow.vbs
Set Processes = GetObject("winmgmts:").InstancesOf("Win32_Process")
intProcessId = ""
For Each Process In Processes
If StrComp(Process.Name, "Wow-64.exe", vbTextCompare) = 0 Then
intProcessId = Process.ProcessId
Exit For
End If
Next
View qqhostinfo.pm
#!/usr/bin/perl
#-----------------------------------------------------------------------------
# HostInfo AWStats plugin
# This plugin allow you to add information on hosts, like a whois fields.
#-----------------------------------------------------------------------------
# Perl Required Modules: XWhois
#-----------------------------------------------------------------------------
# $Revision: 1.12 $ - $Author: eldy $ - $Date: 2004/03/27 18:09:00 $
use strict;
@jat001
jat001 / verification.js
Last active Jan 4, 2016
Two-step verification for WordPress.
View verification.js
var $ = jQuery;
var host = '.' + location.host;
$(document).ready(function() {
$.removeCookie('wait', {path: '/', domain: host});
});
$('#content #respond #comment').focus(function() {
if (!$.cookie('wait')) {
var timestamp = Math.round($.now()/1000);
$.getJSON('/', {'action': 'verifycode', 'timestamp': timestamp}, function(json) {
var id = '#content #respond #submit';
You can’t perform that action at this time.