Skip to content

Instantly share code, notes, and snippets.

3770.2 - SHABERI

This Gist includes all received Shaberi for 3770.2

<?xml version="1.0" encoding="UTF-8"?>
<!--Please do not manually edit this file-->
<manifest>
<remote fetch="https://github.com/" name="github" />
<project name="bauner/cm-android_device_samsung_n7000" path="device/samsung/n7000" remote="github" revision="lineage-15.1" />
<project name="rINanDO/android_device_samsung_galaxys2-common" path="device/samsung/galaxys2-common" remote="github" revision="lineage-15.1" />
<project name="bauner/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" revision="lineage-15.1" />
<project name="bauner/cm-proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="lineage-15.1" />
<project name="rINanDO/android_hardware_samsung" path="hardware/samsung" remote="github" revision="lineage-15.1" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" revision="lineage-15.1" />
<?php
$session = "sk2017";
session_start($session);
include('../../../assets/config/connection.php');
$classLst = array("1T1", "1T2", "1T3", "1T4", "1T5", "1T6", "1T7", "1T8", "1T9", "1T10", "1T11", "1T12", "1T13", "1T14");
if(isset($_FILES['file'])&&$_FILES['file']['error']==0){
$file = $_FILES['file']['tmp_name'];
$fileCheck = $_FILES['file']['name'];
@leewp14
leewp14 / Online KMS Activator.cmd
Created January 19, 2020 03:21 — forked from bhandarisaurav/Online KMS Activator.cmd
Activate Windows & Office for 180 Days with online KMS Servers. This script does not install any files in your system and it clears all the leftovers including kms server name after the Activation. For Successful Activation, Internet Must be connected.
@echo off
::::::::::::::::::::::::::::
set "params=Problem_with_elevating_UAC_for_Administrator_Privileges"&if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs"
fsutil dirty query %systemdrive% >nul 2>&1 && goto :GotPrivileges
:: The following test is to avoid infinite looping if elevating UAC for Administrator Privileges failed
If "%1"=="%params%" (echo Elevating UAC for Administrator Privileges failed&echo Right click on the script and select 'Run as administrator'&echo Press any key to exit...&pause>nul 2>&1&exit)
cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%params%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs"&exit
:GotPrivileges
::::::::::::::::::::::::::::
color 1F
@leewp14
leewp14 / r619ac_flash.md
Last active December 20, 2020 16:09
竟斗云2.0刷机 / G-DOCK 2.0 (IPQ40xx R619AC) Flashing

use nginx to spoof update traffic, wan connection to pc. adapt install.sh use phone connect to gdock wifi and attempt update

update 20201220: this is how it works from firmware 2.0 stock

  1. attempt official system upgrade to 2.5. If not possible, use json spoof method (aka openwrt host method)
  2. for openwrt host method for system upgrade, use nginx+php. Probably apache2 could work too. Just remember to run the iptables hack inside install.sh to redirect all port 80 traffic to localhost. Then, run the update_time function (adapt from install.sh) to ensure the timestamp inside json is correct all the time, or else system upgrade won't work. Then use a phone to connect to router and perform the upgrade. No openwrt required, profit.
  3. Stock 2.5 allows unsigned flashing. After update to official openwrt (aka stock 2.5), flash the -unlock- version of openwrt inside webui. My guess is that this -unlock- version includes an unlocked bootloader. It is a nand-factory file so can't really inspect it.
  4. Next reboo
Just wanna share a little finding about this, since there's no mention of this on the internet. Hopefully this GitHub Gist is useful to some people.
So basically, if you're using Livewire and wire:click events lead to a session expired (error 419 with exception CSRF Token Mismatch), please double check your URL domain.
This has been repeatedly mentioned on various sites, including one of the user on Reddit. Therefore, I did this:
I'm accessing on 127.0.0.1:9090 - CSRF Token Mismatch. No matter httponly, session database/file/cookie, php artisan optimize, blablabla. Nothing works.
After 4 hours of non stop brain-torturing, I decided to access on localhost:9090 - BOOM! Working!!!
BOOMMMMMM!!!!!!
WTF. 我tmd,气死人啊喂!人家赶功课啊!!
@leewp14
leewp14 / rage.c
Last active May 15, 2023 02:52
Stupid problematic script to simplify UFW logs
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#define maxPortCount 65536
struct portsStruct{
// char port[6];
int count;
@leewp14
leewp14 / All Windows 10 Enterprise 2019 LTSC links [2019 Edition].txt
Created July 14, 2023 06:31
All Windows 10 Enterprise 2019 LTSC links [2019 Edition]