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

23
LINES

< > BotCompany Repo | #1001392 // Even more minimal injection test

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

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

1  
!747
2  
3  
m {
4  
  p {
5  
    // Any VM is injectable now. :)
6  
    DialogIO injectionPoint = findBot("This is a JavaX VM.");
7  
    
8  
    injectionPoint.readLine();
9  
    S answer = injectionPoint.askLoudly(format3("please inject program *", "#1001391"));
10  
    new Matches m;
11  
    if (!match3("ok. injection id: *", answer, m))
12  
      fail("huh?");
13  
    S injectionID = unquote(m.m[0]);
14  
    while (!match3("yes", injectionPoint.askLoudly("is injection's * main done?", injectionID))) {
15  
      print("Waiting...");
16  
      sleepSeconds(1);
17  
    }
18  
    answer = injectionPoint.askLoudly("get injection result *", injectionID);
19  
    print("Result: " + answer);
20  
    // TODO: dispose injection
21  
    injectionPoint.close();
22  
  }
23  
}

Author comment

Began life as a copy of #1001390

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: #1001392
Snippet name: Even more minimal injection test
Eternal ID of this version: #1001392/1
Text MD5: db31ecaf3f47aeb60e76b5373f2266e0
Transpilation MD5: b168df377929408894a45726c7f20dbe
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-13 21:05:16
Source code size: 717 bytes / 23 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 505 / 540
Referenced in: [show references]