This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HTMLEncode { | |
public static void main(String[] args) { | |
System.out.println(HTMLEncode("Hi osanda \"><h1>XSS</h1>")); | |
} | |
public static String HTMLEncode(String s) { | |
StringBuilder out = new StringBuilder(); | |
for (int i = 0; i < s.length(); i++) { | |
char c = s.charAt(i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define KEY_LENGTH 6 | |
/* | |
* Title: Solving Root-Me XORed Picture Challenge | |
* Author: Osanda Malith Jayathissa (@OsandaMalith) | |
* Website: https://osandamalith.wordpress.com | |
*/ | |
int main() { | |
FILE *fpIn, *fpOut; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#define SERVER_PORT 9999 | |
// CC-BY: Osanda Malith Jayathissa (@OsandaMalith) | |
int main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#define SERVER_PORT 9999 | |
/ * CC-BY: Osanda Malith Jayathissa (@OsandaMalith) | |
* Bind Shell using Fork for my TP-Link mr3020 router running busybox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main() { | |
char name[61]; | |
size_t i = 0; | |
int Char; | |
int Xor; | |
int total; | |
int sum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%if 0 | |
* Title: Rootme ELF - No software breakpoints Cracking Challenge | |
* Author: Osanda Malith (@OsandaMalith) | |
* Website: http://osandamalith.wordpress.com | |
%endif | |
extern printf | |
extern exit | |
global main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
/* | |
* Title: Rootme ELF - No software breakpoints Cracking Challenge | |
* Author: Osanda Malith (@OsandaMalith) | |
* Website: http://osandamalith.wordpress.com | |
*/ | |
int main(int argc, char const *argv[]) { | |
size_t i; | |
unsigned int checksum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.386 | |
.model flat, stdcall | |
option casemap :none | |
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ | |
; Title: Checks if the process is being dubugged or not using CheckRemoteDebuggerPresent | |
; Author: Osanda Malith Jayathissa (@OsandaMalith) | |
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ | |
include windows.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.386 | |
.model flat, stdcall | |
option casemap :none | |
; »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» | |
; Title: Checking if the process is being debugged by a ring3 debugger | |
; using the kernel mode ZwQueryInformationProcess API | |
; | |
; Author: Osanda Malith Jayathissa (@OsandaMalith) | |
; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««« |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma hdrstop | |
#pragma argsused | |
#include <windows.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
/* »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» | |
* Title: Checking if the process is being debugged using by a ring3 debugger | |
* using the kernel mode ZwQueryInformationProcess API |