C# Class iKGD.Utils

Show file Open project: Neal/iKGD

Public Methods

Method Description
CheckResources ( ) : void
ConsoleWrite ( string str, ConsoleColor color ) : void
ConsoleWriteLine ( string str, ConsoleColor color ) : void
Delay ( double SecondsToDelay ) : void
DeviceIsCompatible ( string board ) : bool
ExecuteCommand ( object command ) : void
ExecuteCommandAndGetOutput ( string command ) : string
ExecuteCommandAsync ( string command ) : void
GetFileSizeOnDisk ( string file ) : long
GetFirmwareURL ( string device, string firmwarebuild ) : string
GetImagePathFromBuildManifest ( string image ) : string
GetTheiPhoneWikiDeviceName ( string board ) : string
GetValueByKey ( object>.Dictionary dict, string key ) : string
HasInternetConnection ( ) : bool
MakeKeysFileForOpensn0w ( string fileLocation ) : void
MakeKeysFileForPastie ( string fileLocation ) : void
MakeKeysFileForTheiPhoneWiki ( string fileLocation ) : void
ParseBuildManifestInfo ( string Key ) : string
ParseRestorePlist ( string RestorePlistPath ) : void
PwnDevice ( string board ) : void
SearchAndReplace ( string file, string searchFor, string replaceWith ) : bool
SearchDeviceInMode ( string mode, bool libirecovery = false ) : bool
SetClipboardDataObject ( object data ) : void
UnzipAll ( string ZipFile, string TargetDir ) : void
UnzipFile ( string ZipFile, string TargetDir, string FileInZip ) : void
UnzipFile ( string ZipFile, string TargetDir, string FileInZip, ulong BytesToExtract ) : void
dmg_extract ( string _in, string _out, string key ) : string
genpass ( string platform, string ramdisk, string filesystem ) : string
hfsplus_extractall ( string image, string path, string dest ) : string
irecovery ( string cmd ) : string
irecovery_cmd ( string cmd ) : string
irecovery_fbecho ( string str ) : string
irecovery_file ( string file ) : string
irecovery_getenv ( string var ) : string
xpwntool ( string infile, string outfile ) : string
xpwntool ( string infile, string outfile, string iv, string key ) : string

Private Methods

Method Description
GetCompressedFileSizeW ( [ lpFileName, [ lpFileSizeHigh ) : uint
GetDiskFreeSpaceW ( [ lpRootPathName, uint &lpSectorsPerCluster, uint &lpBytesPerSector, uint &lpNumberOfFreeClusters, uint &lpTotalNumberOfClusters ) : int
Sleep ( double milliseconds ) : void

Method Details

CheckResources() public static method

public static CheckResources ( ) : void
return void

ConsoleWrite() public static method

public static ConsoleWrite ( string str, ConsoleColor color ) : void
str string
color ConsoleColor
return void

ConsoleWriteLine() public static method

public static ConsoleWriteLine ( string str, ConsoleColor color ) : void
str string
color ConsoleColor
return void

Delay() public static method

public static Delay ( double SecondsToDelay ) : void
SecondsToDelay double
return void

DeviceIsCompatible() public static method

public static DeviceIsCompatible ( string board ) : bool
board string
return bool

ExecuteCommand() public static method

public static ExecuteCommand ( object command ) : void
command object
return void

ExecuteCommandAndGetOutput() public static method

public static ExecuteCommandAndGetOutput ( string command ) : string
command string
return string

ExecuteCommandAsync() public static method

public static ExecuteCommandAsync ( string command ) : void
command string
return void

GetFileSizeOnDisk() public static method

public static GetFileSizeOnDisk ( string file ) : long
file string
return long

GetFirmwareURL() public static method

public static GetFirmwareURL ( string device, string firmwarebuild ) : string
device string
firmwarebuild string
return string

GetImagePathFromBuildManifest() public static method

public static GetImagePathFromBuildManifest ( string image ) : string
image string
return string

GetTheiPhoneWikiDeviceName() public static method

public static GetTheiPhoneWikiDeviceName ( string board ) : string
board string
return string

GetValueByKey() public static method

public static GetValueByKey ( object>.Dictionary dict, string key ) : string
dict object>.Dictionary
key string
return string

HasInternetConnection() public static method

public static HasInternetConnection ( ) : bool
return bool

MakeKeysFileForOpensn0w() public static method

public static MakeKeysFileForOpensn0w ( string fileLocation ) : void
fileLocation string
return void

MakeKeysFileForPastie() public static method

public static MakeKeysFileForPastie ( string fileLocation ) : void
fileLocation string
return void

MakeKeysFileForTheiPhoneWiki() public static method

public static MakeKeysFileForTheiPhoneWiki ( string fileLocation ) : void
fileLocation string
return void

ParseBuildManifestInfo() public static method

public static ParseBuildManifestInfo ( string Key ) : string
Key string
return string

ParseRestorePlist() public static method

public static ParseRestorePlist ( string RestorePlistPath ) : void
RestorePlistPath string
return void

PwnDevice() public static method

public static PwnDevice ( string board ) : void
board string
return void

SearchAndReplace() public static method

public static SearchAndReplace ( string file, string searchFor, string replaceWith ) : bool
file string
searchFor string
replaceWith string
return bool

SearchDeviceInMode() public static method

public static SearchDeviceInMode ( string mode, bool libirecovery = false ) : bool
mode string
libirecovery bool
return bool

SetClipboardDataObject() public static method

public static SetClipboardDataObject ( object data ) : void
data object
return void

UnzipAll() public static method

public static UnzipAll ( string ZipFile, string TargetDir ) : void
ZipFile string
TargetDir string
return void

UnzipFile() public static method

public static UnzipFile ( string ZipFile, string TargetDir, string FileInZip ) : void
ZipFile string
TargetDir string
FileInZip string
return void

UnzipFile() public static method

public static UnzipFile ( string ZipFile, string TargetDir, string FileInZip, ulong BytesToExtract ) : void
ZipFile string
TargetDir string
FileInZip string
BytesToExtract ulong
return void

dmg_extract() public static method

public static dmg_extract ( string _in, string _out, string key ) : string
_in string
_out string
key string
return string

genpass() public static method

public static genpass ( string platform, string ramdisk, string filesystem ) : string
platform string
ramdisk string
filesystem string
return string

hfsplus_extractall() public static method

public static hfsplus_extractall ( string image, string path, string dest ) : string
image string
path string
dest string
return string

irecovery() public static method

public static irecovery ( string cmd ) : string
cmd string
return string

irecovery_cmd() public static method

public static irecovery_cmd ( string cmd ) : string
cmd string
return string

irecovery_fbecho() public static method

public static irecovery_fbecho ( string str ) : string
str string
return string

irecovery_file() public static method

public static irecovery_file ( string file ) : string
file string
return string

irecovery_getenv() public static method

public static irecovery_getenv ( string var ) : string
var string
return string

xpwntool() public static method

public static xpwntool ( string infile, string outfile ) : string
infile string
outfile string
return string

xpwntool() public static method

public static xpwntool ( string infile, string outfile, string iv, string key ) : string
infile string
outfile string
iv string
key string
return string