Skip to content

Instantly share code, notes, and snippets.

@exploitio exploitio/keygen.cs
Last active Nov 29, 2019

Embed
What would you like to do?
Flare On Challenge 1 - Memecat Battlestation
using System;
using System.Linq;
namespace keygens
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("KEY: " + generateString());
}
static string generateString()
{
char[] array = new char[]
{
'\u0003',
' ',
'&',
'$',
'-',
'\u001e',
'\u0002',
' ',
'/',
'/',
'.',
'/'
};
int length = array.Length;
for (int i = 0; i < length; i++)
{
char[] array2 = array;
int num = i;
array2[num] ^= 'A';
}
return new string(array);
}
}
}
rabin2 -I file-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.