๐
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
| KeyStore keystore = KeyStore.getInstance("JKS"); | |
| InputStream keystoreStream = new FileInputStream("keystore.jks"); | |
| if (keystoreStream == null) { | |
| throw new IOException("Unable to load keystore from classpath: " + "keystore.jks"); | |
| } | |
| keystore.load(keystoreStream, "password".toCharArray()); | |
| KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm()); | |
| keyManagerFactory.init(keystore, "password".toCharArray()); | |
| makeSecure(NanoHTTPD.makeSSLSocketFactory(keystore, keyManagerFactory), null); |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Response> | |
| <Say voice="alice">Wake up. Wake up now.</Say> | |
| </Response> |
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
| /* | |
| * Gets Thread token for current thread. | |
| * Returns NULL on failure. | |
| */ | |
| HANDLE GetCurrentThreadToken() | |
| { | |
| HANDLE hToken; | |
| if (!OpenThreadToken( |
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 <stdio.h> | |
| #include <Windows.h> | |
| #include <winternl.h> | |
| #pragma comment(lib,"ntdll.lib") | |
| EXTERN_C NTSTATUS NTAPI NtTerminateProcess(HANDLE,NTSTATUS); | |
| EXTERN_C NTSTATUS NTAPI NtReadVirtualMemory(HANDLE,PVOID,PVOID,ULONG,PULONG); | |
| EXTERN_C NTSTATUS NTAPI NtWriteVirtualMemory(HANDLE,PVOID,PVOID,ULONG,PULONG); | |
| EXTERN_C NTSTATUS NTAPI NtGetContextThread(HANDLE,PCONTEXT); |
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
| // Dynamically (Programmatically) JS/CSS file load with callback function | |
| // Go Namhyeon <[email protected]> | |
| function loadJS(url, callback) { | |
| var el = document.createElement("script"); | |
| el.src = url; | |
| el.type = "text/javascript"; | |
| document.head.appendChild(el); | |
| if(typeof(callback) == "function") { | |
| el.onload = callback(el); |
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
| type=AVC msg=audit(1577757179.300:42106): avc: denied { create } for pid=1659 comm="zabbix_server" name="zabbix_server_lld.sock" scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:object_r:zabbix_var_run_t:s0 tclass=sock_file permissive=0 | |
| type=AVC msg=audit(1577757189.516:42111): avc: denied { create } for pid=1709 comm="zabbix_server" name="zabbix_server_preprocessing.sock" scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:object_r:zabbix_var_run_t:s0 tclass=sock_file permissive=0 | |
| type=AVC msg=audit(1577757199.838:42116): avc: denied { create } for pid=1806 comm="zabbix_server" name="zabbix_server_lld.sock" scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:object_r:zabbix_var_run_t:s0 tclass=sock_file permissive=0 | |
| type=AVC msg=audit(1577757210.064:42121): avc: denied { create } for pid=1855 comm="zabbix_server" name="zabbix_server_lld.sock" scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:object_r:zabbix_var_run_t:s0 tclass=sock_file permissive=0 | |
| type=AVC msg=audit(157 |
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
| <?php | |
| require_once ('vendor/_dist/jpgraph/src/jpgraph.php'); | |
| require_once ('vendor/_dist/jpgraph/src/jpgraph_bar.php'); | |
| $id = get_requested_value("id"); | |
| // get extension information | |
| $bind = array( | |
| "id" => $id | |
| ); |
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
| <?php | |
| $str = "aaa(b, x(), c(d,e), f(g), h(i(3), j, k(l, n(z(0), 1), m)))"; | |
| /* | |
| a->b | |
| a->x | |
| a->c | |
| a->c | |
| a->f | |
| h->i |
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
| <?php | |
| loadHelper("string.utils"); | |
| loadHelper("colona.v1.format"); | |
| loadHelper("networktool"); | |
| $output = "false"; | |
| $mode = get_requested_value("mode"); | |
| $ne = get_network_event(); |
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
| <?php | |
| /** | |
| * @file itsm.api.php | |
| * @author Go Namhyeon <[email protected]> | |
| * @brief ITSM service interface module | |
| * @framework https://github.com/gnh1201/reasonableframework | |
| */ | |
| if(!check_function_exists("itsm_get_data")) { | |
| function itsm_get_data($resource, $bind=array()) { |