Skip to content

Instantly share code, notes, and snippets.

View pegakmupyem's full-sized avatar
🎯
💯 / 💯

pegakmupyem

🎯
💯 / 💯
View GitHub Profile
@pegakmupyem
pegakmupyem / check_authorization.js
Created August 25, 2022 07:50 — forked from MarvinMiles/check_authorization.js
Telegram user authentication in JavaScript via Web Crypto API (dependency-free)
async function validate(data, bot_token) {
const encoder = new TextEncoder()
const checkString = await Object.keys(data)
.filter((key) => key !== "hash")
.map((key) => `${key}=${data[key]}`)
.sort()
.join("\n")
//console.log('computed string:', checkString)
private function processFile() {
// The final response to send back to the browser
$response = array();
// Get the post value for file (we're passing the name of the file here)
// And make sure you check your routines for checking if this is valid etc
$file = $_POST['file']
// DISK_ROOT is defined in the project
$base_path = DISK_ROOT . '/app/cache/uploads/';
private function createManifest( $ipa_url, $bundle_id, $bundle_version, $title ) {
$xml = '<?xml version="1.0" encoding="UTF-8"' . urldecode( urlencode('?') . urlencode('>') ) . '
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
#!/bin/bash
# Getting Variables
PLIST_BUDDY=/usr/libexec/PlistBuddy
BUILT_PRODUCT=$(ls -d build/*iphone*/*app | head -1)
PRODUCT_BASENAME=$(basename "$BUILT_PRODUCT")
APPLICATION_NAME=${PRODUCT_BASENAME%.app}
INFO_PLIST="$BUILT_PRODUCT"/Info.plist
@pegakmupyem
pegakmupyem / Info.plist
Created July 31, 2022 06:58 — forked from shotasenga/Info.plist
Custom URL scheme handler with AppleScript
<?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>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>applet</string>
@pegakmupyem
pegakmupyem / Youtubehyperweb.js
Created July 23, 2022 05:57 — forked from tosunkaya/Youtubehyperweb.js
Open in Youtube sideload hyperweb
let params = (new URL(window.location)).searchParams;
let name = params.get("v");
window.location.href = `youtube://${name}`;
@pegakmupyem
pegakmupyem / forkAllGitHubRepos.js
Created July 23, 2022 05:56 — forked from tosunkaya/forkAllGitHubRepos.js
Fork all repositories from a user on GitHub
var totalForkCount;
var curForkCount=0;
var errorForkArray = new Array();
function initProcess(){
var user = window.location.pathname.split('/')[1];
var pageNo = 1;
var hrefArray = new Array();
while(hrefArray.length % 30 == 0){
var resp = sendSyncAjax("https://github.com/"+user+"?tab=repositories&page="+pageNo);
@pegakmupyem
pegakmupyem / re-sign-ios-app.sh
Created May 23, 2022 21:25 — forked from chrismaddern/re-sign-ios-app.sh
Re-sign an iOS App with your own Certificate & Provisioning Profile
# Script assumes it's running in a folder with all these files
IPA="ipa_to_resign.ipa"
PROVISION="my_enterprise_provision_profile.mobileprovision"
CERTIFICATE="iPhone Distribution: My Organization, Inc." # must be in keychain
# Unzip the IPA & delete existing codesigning
unzip -q "$IPA"
rm -rf Payload/*.app/_CodeSignature Payload/*.app/CodeResources
# Copy the new Provision Profile
@pegakmupyem
pegakmupyem / signer.sh
Created May 23, 2022 20:58 — forked from navanchauhan/signer.sh
use to fake sign apps
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
echo "Usage: bash signer.sh ipaname.ipa"
if [ ! -f /usr/bin/ldid ] || [ ! -f /usr/bin/zip ] || [ ! -f /usr/bin/unzip ]; then
echo "***You need "'zip'", "'unzip,'" and "'Link Identity Editor (ldid)'" installed from Cydia to begin***"
echo "Exiting, one or more of the required programs is missing"
exit
@pegakmupyem
pegakmupyem / sign_ipa
Created May 23, 2022 20:56 — forked from eni9889/sign_ipa
A simple bash script to sign an IPA
#!/bin/bash
# Use -gt 1 to consume two arguments per pass in the loop (e.g. each
# argument has a corresponding value to go with it).
# Use -gt 0 to consume one or more arguments per pass in the loop (e.g.
# some arguments don't have a corresponding value to go with it such
# as in the --default example).
# note: if this is set to -gt 0 the /etc/hosts part is not recognized ( may be a bug )
while [[ $# -gt 1 ]]
do
key="$1"