Skip to content

Instantly share code, notes, and snippets.

View thorerik's full-sized avatar

Thor Erik thorerik

  • Oslo, Norway
View GitHub Profile
<?php
// php-reverse-shell - A Reverse Shell implementation in PHP
// Copyright (C) 2007 pentestmonkey@pentestmonkey.net
//
// This tool may be used for legal purposes only. Users take full responsibility
// for any actions performed using this tool. The author accepts no liability
// for damage caused by this tool. If these terms are not acceptable to you, then
// do not use this tool.
//
// In all other respects the GPL version 2 applies:
@thorerik
thorerik / Update-AUPackages.md
Last active August 4, 2023 01:01
Update-AUPackages Report #powershell #chocolatey
FROM anapsix/alpine-java:8_jdk
RUN echo "http://dl-1.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories; \
echo "http://dl-2.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories; \
echo "http://dl-3.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories; \
echo "http://dl-4.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories; \
echo "http://dl-5.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories; \
echo "http://dl-1.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories; \
echo "http://dl-2.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories; \
echo "http://dl-3.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories; \
<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
var_dump($_POST);
} else {
?>
<form action="example.php" method="POST">
<input name="name" placeholder="Name">
<input type="submit" value="Submit">
</form>
<?php
{ stdenv, pythonPackages, mopidy }:
pythonPackages.buildPythonApplication rec {
pname = "Mopidy-MPRIS";
version = "1.4.0";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0y90k3yzv8lq5g3lxfh4fys7bsmdvqgnwx2kjr00w5j3zrhmfcpa";
};
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
{
// Configure the daemon below:
"options": {
// Select the osquery config plugin.
"config_plugin": "filesystem",
// Select the osquery logging plugin.
"logger_plugin": "filesystem",
// The log directory stores info, warning, and errors.
const config = require('./config.json');
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
console.log(`Bot has started, with ${client.users.size} users, in ${client.channels.size} channels of ${client.guilds.size} guilds.`);
client.user.setAvatar("https://cdn.discordapp.com/app-icons/300905607383482368/f74a4604ac37d272f10d7fd7739d58f3.png").then(o_O => {});
client.user.setGame('TruckersMP').then(o_O => {});
; <<>> DiG 9.10.3-P4-Ubuntu <<>> ns google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1058
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 5
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
; <<>> DiG 9.10.3-P4-Ubuntu <<>> ns google.com @ns4.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39364
;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 4
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;google.com. IN NS