Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

23
LINES

< > BotCompany Repo | #1001390 // Minimal injection test

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (933L/7K/23K).

!747

m {
  p {
    // Any VM is injectable now. :)
    DialogIO injectionPoint = findBot("This is a JavaX VM.");
    
    injectionPoint.readLine();
    S answer = injectionPoint.askLoudly(format3("please inject program *", "#1001389"));
    new Matches m;
    if (!match3("ok. injection id: *", answer, m))
      fail("huh?");
    S injectionID = unquote(m.m[0]);
    while (!match3("yes", injectionPoint.askLoudly("is injection's * main done?", injectionID))) {
      print("Waiting...");
      sleepSeconds(1);
    }
    answer = injectionPoint.askLoudly("get injection result *", injectionID);
    print("Result: " + answer);
    // TODO: dispose injection
    injectionPoint.close();
  }
}

Author comment

Began life as a copy of #1001388

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001390
Snippet name: Minimal injection test
Eternal ID of this version: #1001390/1
Text MD5: 52c7eca65764ece213ee9dc6513714d8
Transpilation MD5: 61223d70d8d6878386ba3986f6a77728
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-13 18:26:17
Source code size: 717 bytes / 23 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 575 / 532
Referenced in: [show references]