Important
This guide has moved to Google Docs.
// | |
// HelloAnimation.swift | |
// OpenvisionOS | |
// | |
// Created by Amos Gyamfi on 17.2.2024. | |
// | |
import SwiftUI | |
struct HelloAnimation: View { |
// seohyun-gyu@MacBook-Pro-2 find_xpc_rich_error_create % gcc -o find_xpc_rich_error_create find_xpc_rich_error_create.c | |
// seohyun-gyu@MacBook-Pro-2 find_xpc_rich_error_create % ./find_xpc_rich_error_create | |
// Found image_name: /usr/lib/system/libxpc.dylib, libxpc_hdr: 0x7ff80647a000 | |
// _xpc_rich_error_create address: 0x7ff80649362c | |
#include <stdio.h> | |
#include <dlfcn.h> | |
#include <pthread.h> | |
#include <mach-o/dyld_images.h> |
Important
This guide has moved to Google Docs.
import Darwin | |
import Foundation | |
import UIKit | |
// https://github.com/xybp888/iOS-SDKs/blob/master/iPhoneOS17.1.sdk/System/Library/PrivateFrameworks/CoreSVG.framework/CoreSVG.tbd | |
// https://developer.limneos.net/index.php?ios=17.1&framework=UIKitCore.framework&header=UIImage.h | |
@objc | |
class CGSVGDocument: NSObject { } |
const source = 'http://ncov.mohw.go.kr' | |
let webView = new WebView() | |
await webView.loadURL(source) | |
let covid = await webView.evaluateJavaScript(` | |
const baseSelector = 'div.mainlive_container div.liveboard_layout ' | |
let date = document.querySelector(baseSelector + 'h2 span.livedate').innerText | |
let domestic = document.querySelector(baseSelector + 'div.liveNum_today_new ul li:nth-child(1) span.data').innerText | |
let overseas = document.querySelector(baseSelector + 'div.liveNum_today_new ul li:nth-child(2) span.data').innerText | |
csrutil disable | |
sudo nvram boot-args="intcoproc_unrestricted=1 kext-dev-mode=1 amfi_allow_any_signature=1 amfi_unrestrict_task_for_pid=1 PE_i_can_has_debugger=1 cs_enforcement_disable=1 amfi_get_out_of_my_way=1 amfi=0xff cs_debug=1 ipc_control_port_options=0" | |
sudo spctl --global-disable | |
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO | |
sudo defaults write /Library/Preferences/com.apple.security.coderequirements Entitlements -string always | |
sudo defaults write /Library/Preferences/com.apple.security.coderequirements AllowUnsafeDynamicLinking -bool YES | |
sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool YES | |
defaults write com.apple.loginwindow DisableScreenLockImmediate -bool yes |
// | |
// libblackjack.h | |
// libblackjack | |
// | |
// Created by CoolStar on 2/24/20. | |
// Copyright © 2020 CoolStar. All rights reserved. | |
// | |
#include "libhooker.h" |
Written by Sheldon, please find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
It is exaggerating to say we don't need to use for
loop or while
loop any more but we can take advantage of the Swift language built in functions to do loops. If I give you a question now.
Q: Assuming we have an optional nested array, please calculate the production of the values that are less than 5. let numbers: [[Int]?] = [[1, 3], nil, [2], [5, 10], nil, [4]]
, what is your best approach to do it?
And you know the solution that I am talking about is following Swift functions:
#!/usr/bin/swift | |
import Foundation | |
let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath) | |
let data = try! NSData(contentsOf: path) as Data | |
let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary | |
let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary | |
for (key, value) in mutableDictionary { |