This file contains hidden or 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
| @echo off | |
| :::::::::::::::::::::::::::: | |
| set "params=Problem_with_elevating_UAC_for_Administrator_Privileges"&if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" | |
| fsutil dirty query %systemdrive% >nul 2>&1 && goto :GotPrivileges | |
| :: The following test is to avoid infinite looping if elevating UAC for Administrator Privileges failed | |
| If "%1"=="%params%" (echo Elevating UAC for Administrator Privileges failed&echo Right click on the script and select 'Run as administrator'&echo Press any key to exit...&pause>nul 2>&1&exit) | |
| cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%params%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs"&exit | |
| :GotPrivileges | |
| :::::::::::::::::::::::::::: | |
| color 1F |
This file contains hidden or 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
| #include <assert.h> | |
| #include <stdbool.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| #include <sys/sysctl.h> | |
| static bool AmIBeingDebugged(void) | |
| // Returns true if the current process is being debugged (either | |
| // running under the debugger or has a debugger attached post facto). | |
| { |
This file contains hidden or 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
| public class UsbData | |
| { | |
| private String vendorId; | |
| private String vendorName; | |
| private String productId; | |
| private String productName; | |
| public UsbData(String vendorId, String vendorName, String productId, String productName) | |
| { |
This file contains hidden or 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
| #!/bin/bash | |
| ############################################################################### | |
| ## ## | |
| ## Build and package OpenSSL static libraries for OSX/iOS ## | |
| ## ## | |
| ## This script is in the public domain. ## | |
| ## Creator : Laurent Etiemble ## | |
| ## ## | |
| ############################################################################### |