-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Location Spoofer * Fix build * Change appraoch * Try * no message * no message * Tidy up swizzling * no message * Stash * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * Revert "no message" This reverts commit bc9e08e. * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * Rely on super when not spoofed * no message * no message * no message * Add additional swizzle call * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * Revert * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * Try this * no message * no message * no message * no message * Force on * no message * Try this * no message * no message * Working location spoofer * La casa de papel * no message * Update lat/long's * First stab at routes * Add lisbon * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * no message * Stash * no message * no message * no message * no message * no message * no message * no message
- Loading branch information
1 parent
beede2e
commit 790d03d
Showing
23 changed files
with
7,421 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
...layground/Scyther Playground.xcodeproj/xcshareddata/xcschemes/Scyther Playground.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1300" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CA73FCE325D690D2007FA627" | ||
BuildableName = "Scyther Playground.app" | ||
BlueprintName = "Scyther Playground" | ||
ReferencedContainer = "container:Scyther Playground.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CA73FCF925D690D2007FA627" | ||
BuildableName = "Scyther PlaygroundTests.xctest" | ||
BlueprintName = "Scyther PlaygroundTests" | ||
ReferencedContainer = "container:Scyther Playground.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CA73FD0425D690D2007FA627" | ||
BuildableName = "Scyther PlaygroundUITests.xctest" | ||
BlueprintName = "Scyther PlaygroundUITests" | ||
ReferencedContainer = "container:Scyther Playground.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CA73FCE325D690D2007FA627" | ||
BuildableName = "Scyther Playground.app" | ||
BlueprintName = "Scyther Playground" | ||
ReferencedContainer = "container:Scyther Playground.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CA73FCE325D690D2007FA627" | ||
BuildableName = "Scyther Playground.app" | ||
BlueprintName = "Scyther Playground" | ||
ReferencedContainer = "container:Scyther Playground.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by Brandon Stillitano on 27/9/21. | ||
// | ||
|
||
import Foundation | ||
|
||
internal let swizzle: (AnyClass, Selector, Selector) -> () = { forClass, originalSelector, swizzledSelector in | ||
if let originalMethod = class_getInstanceMethod(forClass, originalSelector), | ||
let swizzledMethod = class_getInstanceMethod(forClass, swizzledSelector) { | ||
method_exchangeImplementations(originalMethod, swizzledMethod) | ||
} | ||
} | ||
|
||
internal let unswizzle: (AnyClass, Selector, Selector) -> () = { forClass, originalSelector, swizzledSelector in | ||
guard let originalMethod = class_getInstanceMethod(forClass, originalSelector), | ||
let swizzledMethod = class_getInstanceMethod(forClass, swizzledSelector) else { | ||
return | ||
} | ||
if class_addMethod(forClass, swizzledSelector, method_getImplementation(originalMethod), method_getTypeEncoding(swizzledMethod)) { | ||
class_replaceMethod(forClass, originalSelector, method_getImplementation(swizzledMethod), method_getTypeEncoding(swizzledMethod)) | ||
} else { | ||
method_exchangeImplementations(swizzledMethod, originalMethod) | ||
} | ||
} |
Oops, something went wrong.