Skip to content

Instantly share code, notes, and snippets.

@hasherezade
Created January 17, 2017 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasherezade/e5239588e146b41005297563bcf4cd4c to your computer and use it in GitHub Desktop.
Save hasherezade/e5239588e146b41005297563bcf4cd4c to your computer and use it in GitHub Desktop.
Java Rat - stage 3
package m;
public class iiIIiiiIII {
public static String IIIiIii(String s)
{
StackTraceElement a = new Throwable().getStackTrace()[1];
String s0 = new StringBuffer(a.getMethodName()).insert(0, a.getClassName()).toString();
int i = s0.length() - 1;
int i0 = s.length();
char[] a0 = new char[i0];
int i1 = i0 - 1;
int i2 = i;
while(true)
{
if (i1 >= 0)
{
int i3 = i1 + -1;
int i4 = s.charAt(i1);
int i5 = s0.charAt(i2);
int i6 = (char)(46 ^ i4 ^ i5);
a0[i1] = (char)i6;
if (i3 >= 0)
{
int i7 = s.charAt(i3);
int i8 = s0.charAt(i2);
int i9 = (char)(10 ^ i7 ^ i8);
i1 = i3 + -1;
i2 = i2 + -1;
a0[i3] = (char)i9;
if (i2 < 0)
{
i2 = i;
}
continue;
}
}
return new String(a0);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment