Skip to content

Instantly share code, notes, and snippets.

@Killercodes
Killercodes / Robot.cs
Created December 28, 2022 11:53
Windows Automation with Keyboard, Mouse & Process
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.Text;
namespace Robot
{
public static class Gui
<html>
<body>
<h1> heading 1 </h1>
</body>
</html>
@Killercodes
Killercodes / sample.md
Last active February 6, 2021 20:07 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

@Killercodes
Killercodes / xd2md.cs
Created January 23, 2018 19:10 — forked from formix/xd2md.cs
Generates Markdown From VisualSturio XML documentation files
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
namespace Formix.Utils
{
class Program
@Killercodes
Killercodes / xss-owasp-cheatsheet.md
Last active May 29, 2018 12:57 — forked from sseffa/xss-owasp-cheatsheet
xss-owasp-cheatsheet
#!/usr/bin/perl -w
use strict;
use IO::Socket::INET;
use IO::Socket::SSL;
use Getopt::Long;
use Config;
$SIG{'PIPE'} = 'IGNORE'; #Ignore broken pipe errors
print <<EOTEXT;
#!/usr/bin/perl -w
use strict;
use IO::Socket::INET;
use IO::Socket::SSL;
use Getopt::Long;
use Config;
$SIG{'PIPE'} = 'IGNORE'; #Ignore broken pipe errors
print <<EOTEXT;
@Killercodes
Killercodes / hex.js
Created December 1, 2017 14:06 — forked from valentinkostadinov/hex.js
JavaScript HEX encoding
function toHex(s) {
// utf8 to latin1
var s = unescape(encodeURIComponent(s))
var h = ''
for (var i = 0; i < s.length; i++) {
h += s.charCodeAt(i).toString(16)
}
return h
}
@Killercodes
Killercodes / BruteForce.cs
Created March 29, 2017 15:00 — forked from fredrikdev/BruteForce.cs
Fast, compact, non-recursive, brute force algorithm by @fredrikdev.
/*
This brute force algorithm was originally written (by me) back in 1998, and has been collecting dust
since then. However, for the purpose of testing Gist on GitHub I decided to rewrite the algorithm
from VB6 to C#, make some improvements and release this fast, compact, non-recursive, brute force
algorithm under the MIT license: http://opensource.org/licenses/MIT
Notes:
- Do a run with testLetters = "0123456789" and testLength = 3, to see what happens
- Remember to keep the callback testCalback as fast as possible
- Tweet some love to @fredrikdev :)
@Killercodes
Killercodes / Change Admin Password of the local system.vbs.md
Last active November 27, 2022 23:10
Get the user/network info using the VbScript & WMI

Get the user/network info using the VbScript & WMI

The follow is automation script to change the Administrator password of a windows system. One just have to save it as a file with .vbs extension and execute it

sNewPassword = "pass"

Set oWshNet = CreateObject("WScript.Network")
sComputer = oWshNet.ComputerName
sAdminName = GetAdministratorName

On Error Resume Next