Skip to content

Instantly share code, notes, and snippets.

@leonjza
Created September 23, 2021 15:46
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 leonjza/c8e1fad09a5cd557f23ecba1530d1ed6 to your computer and use it in GitHub Desktop.
Save leonjza/c8e1fad09a5cd557f23ecba1530d1ed6 to your computer and use it in GitHub Desktop.
SenseCon '21 Announce Challenge

Hello world!

This was the internal @sensepost SenseCon 2021 announcement email (stripped), together with the supporting challenge.

Have phun!

const title: string = `internal sensecon 2021 announcement`;
const data = {
message: new Uint8Array([
1787, 1728, 1737, 1732, 1732, 1672, 1759, 1741, 1672, 1752,
1732, 1737, 1745, 1672, 1737, 1672, 1743, 1737, 1733, 1741,
1687, 1672, 1784, 1729, 1734, 1743, 1672, 1768, 1732, 1741,
1735, 1734, 1730, 1746, 1737, 1672, 1729, 1742, 1672, 1745,
1735, 1757, 1672, 1755, 1735, 1732, 1758, 1741, 1740, 1672,
1756, 1728, 1729, 1755, 1673
]),
code: new Uint8Array([
0, 97, 115, 109, 1, 0, 0, 0, 1, 134, 128, 128, 128, 0, 1, 96,
1, 127, 1, 127, 3, 130, 128, 128, 128, 0, 1, 0, 4, 132, 128,
128, 128, 0, 1, 112, 0, 0, 5, 131, 128, 128, 128, 0, 1, 0, 1,
6, 129, 128, 128, 128, 0, 0, 7, 148, 128, 128, 128, 0, 2, 6,
109, 101, 109, 111, 114, 121, 2, 0, 7, 103, 101, 116, 95, 107,
101, 121, 0, 0, 10, 151, 128, 128, 128, 0, 1, 145, 128, 128,
128, 0, 0, 32, 0, 65, 163, 12, 106, 65, 0, 32, 0, 65, 133, 1,
70, 27, 11
]),
}
const announcement = (word: string): string => {
return `
${title}
hey everyone! 🖖
<stripped real sensecon announce.txt here>
${word}
--
leon
`;
}
console.log(announcement(`be there or be ⬜️!`));
const key = (): number => {
const len: number = announcement(`W.O.P.R.`).length;
// todo: use code as wasm instead of returning 0
return 0;
}
const htp = (k: number): Uint8Array => {
return data.message.map((e: number) => {
return e ^ k;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment