All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
racerxdl's Avatar

racerxdl / jnlp_crawler.py

0 likes
0 forks
1 files
Last active 9 months ago
Download all the jar files in a jnlp file for offline examination
1 #!/usr/bin/env python
2 #
3 # jnlp_crawler.py - Download all the jar files in a jnlp file for offline examination
4 # Sheran Gunasekera
5 #
6
7 from xml.dom.minidom import parse
8 from xml.parsers.expat import ExpatError
9 import urllib
10 import sys
racerxdl's Avatar

racerxdl / shim_with_unprotect.c

0 likes
0 forks
1 files
Last active 9 months ago
1 // For RTLD_NEXT
2 #define _GNU_SOURCE
3
4 #include <stdio.h>
5 #include <dlfcn.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include <sys/mman.h>
9 #include <stdint.h>
racerxdl's Avatar

racerxdl / shim_search.c

0 likes
0 forks
1 files
Last active 9 months ago
1 // For RTLD_NEXT
2 #define _GNU_SOURCE
3
4 #include <stdio.h>
5 #include <dlfcn.h>
6 #include <stdlib.h>
7 #include <string.h>
8
9 static FILE *(*real_fopen)(const char *, const char *) = NULL;
racerxdl's Avatar

racerxdl / shim_with_load.c

0 likes
0 forks
1 files
Last active 9 months ago
1 // For RTLD_NEXT
2 #define _GNU_SOURCE
3
4 #include <stdio.h>
5 #include <dlfcn.h>
6 #include <stdlib.h>
7
8
9 static FILE *(*real_fopen)(const char *, const char *) = NULL;
racerxdl's Avatar

racerxdl / shim.c

0 likes
0 forks
1 files
Last active 9 months ago
1 #include <stdio.h>
2
3 FILE * fopen ( const char * filename, const char * mode ) {
4 printf("HUEBR, GIBE DATA PLOS, OR I REPORT U HUEHUE\n");
5 return stdout;
6 }
racerxdl's Avatar

racerxdl / ouramazingprogram.c

0 likes
0 forks
1 files
Last active 9 months ago
1 #include <stdio.h>
2 #include <string.h>
3
4 char myData[100] = "That's my super important data!\n";
5
6 int main(void) {
7 printf("That's my amazing program!\n");
8 FILE *f = fopen("myotherfile.txt", "w");
9 fwrite(myData, strlen(myData), 1, f);
10 fclose(f);
racerxdl's Avatar

racerxdl / flownav.py

0 likes
0 forks
1 files
Last active 9 months ago
*a game* VM Code Flow Navigation (for Hex-rays decompiled code)
1 #!/usr/bin/env python
2
3 import re
4
5 machineOpcode = "result"
6 file = "kerneldecrypt.c"
7
8 def SearchEntryPoint(data):
9 z = re.search("%s = (.*);" % machineOpcode, data)
10 if z != None:
racerxdl's Avatar

racerxdl / expander_test.py

0 likes
0 forks
1 files
Last active 9 months ago
ESP8266 MicroPython AFEletronica Board
1 from machine import Pin, I2C
2
3 expAddr = 0x27 # I2C Expander I/O
4
5 i2c.writeto(expAddr, '\x00') # Clear All
6 i2c.writeto(expAddr, '\x7F') # Fill All
racerxdl's Avatar

racerxdl / updateip.sh

0 likes
0 forks
1 files
Last active 9 months ago
Update Samba4 IP with samba-tool
1 #!/bin/bash
2
3 DOMAIN=$1
4 OLDIP=$2
5 NEWIP=$3
6 SERVERNAME=$4
7
8 echo "Adding new IP to domain"
9 samba-tool dns add localhost $DOMAIN $SERVERNAME.$DOMAIN A $NEWIP
10 samba-tool dns add localhost $DOMAIN $DOMAIN A $NEWIP
racerxdl's Avatar

racerxdl / generate.py

0 likes
0 forks
3 files
Last active 9 months ago
Python Gerador de Histograma (IFUSP)
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 from __future__ import unicode_literals
4
5 '''
6 Para geração de histograma das velocidades
7 '''
8
9 import sys
10 import numpy as np
Newer Older

Powered by Opengist ⋅ Load: 229ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文