public static void main(String[] args) { String usage = "\n====================================================\n" + "======= Atlassian Crack Agent =======\n" + "======= https://zhile.io =======\n" + "======= QQ Group: 30347511 =======\n" + "====================================================\n\n"; System.out.print(usage); System.out.flush(); OPTIONS.addRequiredOption("p", "product", true, "License product, support: " + PRODUCTS_DESC); OPTIONS.addRequiredOption("s", "serverid", true, "License server ID"); OPTIONS.addRequiredOption("m", "mail", true, "License email"); OPTIONS.addRequiredOption("o", "organisation", true, "License organisation"); OPTIONS.addOption("n", "name", true, "License name[default: <license email>]"); OPTIONS.addOption("d", "datacenter", false, "Data center license[default: false]"); OPTIONS.addOption("h", "help", false, "Print help message"); CommandLine command; try { command = new DefaultParser().parse(OPTIONS, args); } catch (ParseException e) { printUsage(); return; } runCommand(command); }
public static void main(String[] argv) { CommandLineParser parser = new DefaultParser(); Options options = new Options(); options.addRequiredOption("j", "jars", true, "jar files to be included") .addRequiredOption("c", "classes", true, "classes to be hooked") .addRequiredOption("o", "output", true, "output script path") .addOption("s", "skip", true, "methods to be skipped") .addOption("p", "include-private", false, "include private methods") .addOption("a", "expand-array", false, "expand array values"); try { CommandLine cmd = parser.parse(options, argv); String[] jarFiles = getInputs(cmd.getOptionValue("j")); String[] classes = getInputs(cmd.getOptionValue("c")); String outputFileName = cmd.getOptionValue("o"); String[] skipMethods; if (cmd.hasOption("s")) { skipMethods = getInputs(cmd.getOptionValue("s")); } else { skipMethods = new String[0]; } boolean includePrivate = cmd.hasOption("p"); boolean expandArrayValue = cmd.hasOption("a"); FridaAndroidTracer tracer = new FridaAndroidTracer(jarFiles, skipMethods); tracer.generate(classes, includePrivate, expandArrayValue, outputFileName); } catch (ParseException e) { System.err.println("parse error: " + e.getMessage()); new HelpFormatter().printHelp("java -jar FridaAndroidTracer.jar", options); } }
public static void main(final String[] args) throws ParseException { final Options options = new Options(); options.addRequiredOption("l", "listenAddress", true, "The listening addresses Rapid Cluster instances"); options.addRequiredOption("s", "seedAddress", true, "The seed node's address for the bootstrap protocol"); final CommandLineParser parser = new DefaultParser(); final CommandLine cmd = parser.parse(options, args); // Get CLI options final HostAndPort listenAddress = HostAndPort.fromString(cmd.getOptionValue("listenAddress")); final HostAndPort seedAddress = HostAndPort.fromString(cmd.getOptionValue("seedAddress")); // Bring up Rapid node try { final AgentWithNettyMessaging agent = new AgentWithNettyMessaging(listenAddress, seedAddress); agent.startCluster(); for (int i = 0; i < MAX_TRIES; i++) { agent.printClusterMembership(); Thread.sleep(SLEEP_INTERVAL_MS); } } catch (final IOException | InterruptedException e) { LOG.error("Exception thrown by StandaloneAgent {}", e); Thread.currentThread().interrupt(); } } }
public static void main(final String[] args) throws ParseException { final Options options = new Options(); options.addRequiredOption("l", "listenAddress", true, "The listening addresses Rapid Cluster instances"); options.addRequiredOption("s", "seedAddress", true, "The seed node's address for the bootstrap protocol"); final CommandLineParser parser = new DefaultParser(); final CommandLine cmd = parser.parse(options, args); // Get CLI options final HostAndPort listenAddress = HostAndPort.fromString(cmd.getOptionValue("listenAddress")); final HostAndPort seedAddress = HostAndPort.fromString(cmd.getOptionValue("seedAddress")); // Bring up Rapid node try { final StandaloneAgent agent = new StandaloneAgent(listenAddress, seedAddress); agent.startCluster(); for (int i = 0; i < MAX_TRIES; i++) { agent.printClusterMembership(); Thread.sleep(SLEEP_INTERVAL_MS); } } catch (final IOException | InterruptedException e) { LOG.error("Exception thrown by StandaloneAgent {}", e); Thread.currentThread().interrupt(); } } }