Skip to content

Instantly share code, notes, and snippets.

View own2pwn's full-sized avatar
🌴
On vacation

own2pwn

🌴
On vacation
View GitHub Profile
// Created by Евгений on 11.10.16.
#include <iostream>
#include <string>
std::string encCaesar(const std::string& message, int shift) {
if (shift > 26)
shift = shift % 26;
#include <iostream>
#include <string>
using namespace std;
int main() {
string s1,s2;
cin >> s1 >> s2;
int main() {
string what,where;
cin >> what >> where;
int ret = 0, whatLen = what.length(), whereLen = where.length();
vector<int> res(whatLen);
res[0] = 0;
using System;
using System.IO;
using System.Text;
namespace CTFSleepingGuard
{
internal static class Program
{
private static void Test()
{
program p1;
var
currX, xEnd, Y: Real;
begin
currX := -7;
xEnd := 7;
while currX <= xEnd do
program p2;
var
r, x, y, d, par: Real;
i: Integer;
begin
readln(r);
for i := 1 to 10 do
begin
program p3;
var
xEnd, x, eps, count, t, y, index: Real;
ind2: Integer;
function power(x: real; n: integer): real;
var
i: integer;
step: real;
@own2pwn
own2pwn / S
Created October 27, 2016 18:17
<!DOCTYPE html>
<html class="full">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="description" content="EKOPARTY CTF 2016">
<meta name="author" content="NULL Life">
<!-- Latest compiled and minified CSS -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
@own2pwn
own2pwn / gist:2d59730ddea6a624e5b417554da0ecc8
Created December 31, 2016 16:55 — forked from TimSC/gist:5251670
Generate an RSA key pair, sign a message and verify it using crypto++ 5.6.1 or later. By Tim Sheerman-Chase, 2013. This code is in the public domain and CC0.
//Generate an RSA key pair, sign a message and verify it using crypto++ 5.6.1 or later.
//By Tim Sheerman-Chase, 2013
//This code is in the public domain and CC0
//To compile: g++ gen.cpp -lcrypto++ -o gen
#include <string>
using namespace std;
#include <crypto++/rsa.h>
#include <crypto++/osrng.h>
#include <crypto++/base64.h>