Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
/* | |
* Hook main() using LD_PRELOAD, because why not? | |
* Obviously, this code is not portable. Use at your own risk. | |
* | |
* Compile using 'gcc hax.c -o hax.so -fPIC -shared -ldl' | |
* Then run your program as 'LD_PRELOAD=$PWD/hax.so ./a.out' | |
*/ | |
#define _GNU_SOURCE | |
#include <stdio.h> |
Source material: | |
http://security.stackexchange.com/questions/24444/what-is-the-most-hardened-set-of-options-for-gcc-compiling-c-c | |
https://wiki.gentoo.org/wiki/Hardened_Gentoo | |
https://wiki.debian.org/Hardening | |
================================================================================================================> | |
GCC Security related flags and options: | |
CFLAGS="-fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
LDFLAGS="-Wl,-z,now -Wl,-z,relro" |
package auth | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net" | |
"net/http" | |
"net/url" |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# | |
# Licensed under the GPL-3 License | |
# | |
# Author: Mohamed Mustapha Tahrioui aka. ransomware aka. 4thel00z ([email protected]) | |
# | |
# The intention of this software is to provide a script to upload encrypted data to gist for myself | |
# and others who are interested in using my software non-commercially or commercialy. | |
# | |
# The requirements for this script are : | |
# - base64 |
# | |
# Licensed under the GPL-3 License | |
# | |
# Author: Mohamed Mustapha Tahrioui aka. ransomware aka. 4thel00z ([email protected]) | |
# | |
# The intention of this software is to provide a simple go http service boilerplate for myself | |
# and others who are interested in using my software non-commercially or commercialy. | |
# | |
# | |
#! /bin/bash |
import dbus | |
def call_dbus(bus :"dbus.SystemBus", service_name:str, object_path:str, member:str, interface_name:str, *args, **kwargs): | |
""" | |
This is a convenience function, which you can use to call a DBus method on either Bus (Session/System). | |
:param bus: | |
:param service_name: | |
:param object_path: | |
:param member: |
echo test |
echo test |