Skip to content

Instantly share code, notes, and snippets.

View Caio99BR's full-sized avatar
☹️
Out of Work

Caio Oliveira Caio99BR

☹️
Out of Work
View GitHub Profile
@Caio99BR
Caio99BR / nps2pkgi.py
Last active October 6, 2023 03:42
Downloads the latest TSV files from NPS and exports them in PKGi PS3 formatted TXT files
import csv
import os
import re
import tempfile
import urllib.parse
import urllib.request
# Base script variables
BASE_NPS_URL = "http://nopaystation.com/tsv/"
BASE_NPS_VERSIONS = { 1: "", 2: "pending/" }
#!/bin/bash
#
# Copyright 2018 Caio99BR
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
// Mensagens Padrões do PS3Xploit [Portuguese BR]
// PS3Xploit Team 2018 / ps3xploit.com
// Translation Credits: @HollowChris and @Caio99BR
// CEX or DEX, that is the question
var msg_select_vsh_type="Usar a CEX?\n\nSelecionando NÃO, será usado os offsets da DEX";
// Auto Detect Firmware
var msg_detected_fw_1="Firmware Detectado: ";
@Caio99BR
Caio99BR / messages_pt_BR.js
Created February 10, 2018 02:53
Work In Progress - PS3Xploit Message Translation
// Mensagens Padrões do PS3Xploit [Portuguese BR]
// PS3Xploit Team 2018 / ps3xploit.com
// Translation Credits: @HollowChris and @Caio99BR
// CEX or DEX, that is the question
var msg_select_vsh_type="Usar a CEX?\n\nSelecionando NÃO, será usado os offsets da DEX";
// Auto Detect Firmware
var msg_detected_fw_1="Firmware Detectado: ";
@Caio99BR
Caio99BR / gist:632e592948c039250899f77d9321c93f
Created April 30, 2017 03:31
DMESG Source Built Camera HAL
caio@c9:~$ adb shell dmesg
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.4.0-shuang (caio@c9) (gcc version 4.9 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Sat Apr 29 20:34:16 BRT 2017
[ 0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Qualcomm MSM 8x10 / MSM 8x12 (Flattened Device Tree), model: Qualcomm MSM 8610v2 MTP
[ 0.000000] Initialized persistent memory from 08700000-087fffff
[ 0.000000] Node qcom,mdss_fb_primary memblock_reserve memory 3200000-3600000
[ 0.000000] Node qcom,msm-mem-hole removed memory 8800000-b500000
@Caio99BR
Caio99BR / gist:66e53ca362faa70d7e1c2787806cd2ef
Last active April 30, 2017 03:31
Logcat Source Built Camera HAL
caio@c9:~$ adb reboot; adb wait-for-device; adb logcat
--------- beginning of main
01-15 07:05:30.147 165 165 W auditd : type=2000 audit(0.0:1): initialized
01-15 07:05:34.160 165 165 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
01-15 07:05:38.139 165 165 I auditd : type=1403 audit(0.0:3): policy loaded auid=4294967295 ses=4294967295
01-15 07:05:39.880 164 164 I init : type=1400 audit(0.0:4): avc: denied { create } for name="tad" scontext=u:r:init:s0 tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=1
01-15 07:05:39.880 164 164 I init : type=1400 audit(0.0:5): avc: denied { setattr } for name="tad" dev="tmpfs" ino=6147 scontext=u:r:init:s0 tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=1
01-15 07:05:39.890 164 164 I tad_static: type=1400 audit(0.0:6): avc: denied { read write } for name="mmcblk0p1" dev="tmpfs" ino=5016 scontext=u:r:tad_static:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
From 7dde534c22b8a0e82bd8a4535253bf729c1d2747 Mon Sep 17 00:00:00 2001
From: Caio Oliveira <caiooliveirafarias0@gmail.com>
Date: Sat, 25 Mar 2017 12:58:14 -0300
Subject: [PATCH] zip-creator: Import only tools! [DO NOT MERGE]
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
---
zip-creator/.gitignore | 1 +
zip-creator/base/dtbToolCM | Bin 0 -> 33246 bytes
zip-creator/base/mkbootimg | Bin 0 -> 84592 bytes
<6>[ 0.000000] Booting Linux on physical CPU 0
<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 3.4.0-LineageOS (caio@c9) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Thu Feb 2 15:21:23 BRST 2017
<4>[ 0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
<4>[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
<6>[ 0.000000] Machine: Qualcomm MSM 8x10 / MSM 8x12 (Flattened Device Tree), model: Qualcomm MSM 8610v2 MTP
<6>[ 0.000000] Initialized persistent memory from 08700000-087fffff
<6>[ 0.000000] Node qcom,mdss_fb_primary memblock_reserve memory 3200000-3600000
<6>[ 0.000000] Node qcom,msm-mem-hole removed memory 8800000-b500000
<6>[ 0.000000] Node qcom,msm-mem-hole removed memory c500000-de00000
--------- beginning of main
01-03 21:31:01.048 194 194 W auditd : type=2000 audit(0.0:1): initialized
--------- beginning of system
01-03 21:31:10.233 195 195 I vold : Vold 3.0 (the awakening) firing up
01-03 21:31:10.234 195 195 V vold : Detected support for: exfat ext4 ntfs vfat
01-03 21:31:10.526 195 202 V vold : /system/bin/sgdisk
01-03 21:31:10.526 195 202 V vold : --android-dump
01-03 21:31:10.526 195 202 V vold : /dev/block/vold/disk:179_64
01-03 21:31:10.689 206 206 I /system/bin/tzdatacheck: tzdata file /data/misc/zoneinfo/current/tzdata does not exist. No action required.
01-03 21:31:10.792 208 208 I sysinit : Running /system/etc/init.d/00banner
I/CameraClient( 1401): Opening camera 0
E/Morpho_Feature( 1401): void android::MORPHOFeature::Read_Morpho_Parameter() : Config file not found !
E/Morpho_Feature( 1401): void android::MORPHOFeature::Read_Morpho_Parameter() : Config file not found !
E/Morpho_Feature( 1401): void android::MORPHOFeature::Read_Morpho_Parameter() : Config file not found !
E/Morpho_Feature( 1401): void android::MORPHOFeature::Read_Morpho_Parameter() : Config file not found !
E/Morpho_Feature( 1401): void android::MORPHOFeature::Read_Morpho_Parameter() : Config file not found !
E/Morpho_Feature( 1401): void android::MORPHOFeature::Read_Morpho_Parameter() : Config file not found !
E/QCamera2HWI( 1401): [KPI Perf] int qcamera::QCamera2HardwareInterface::openCamera(hw_device_t**): E PROFILE_OPEN_CAMERA camera id 0
D/QCameraStateMachine( 1401): static void* qcamera::QCameraStateMachine::smEvtProcRoutine(void*): E
D/QCamera2HWI( 1401): static void* qcamera::QCamera2HardwareInterface::defferedWorkRoutine(void*): start data proc