19 Commits (6ad05f1c20b0407084a3014c60aeb78b5faa7918)

Author SHA1 Message Date
Valentin Lechner 6ad05f1c20 OutSourcing 5 years ago
Valentin Lechner c897df31ec Dude, das war richtig schlecht geschriebener Code 5 years ago
Valentin Lechner ed5b2fa92a CleanUp 5 years ago
Valentin Lechner 53e95217c2 Removing single-line comments 5 years ago
Valentin Lechner 800779a376 ifdef HARMLESS um ansonsten nicht bentigte Var 5 years ago
Valentin Lechner 04f29d2e03 Skript fr Code Generierung angepasst so dass die explizite Definition der Variablen im c File steht und im Header File die Deklaration fr externes 5 years ago
Valentin Lechner bbf48681e0 Tun wir mal so als ob wir Helper Funktionen benutzen wrden 5 years ago
valentin lechner dcd4c6588a Delete 5y563n.h 5 years ago
valentin_lechner 500087d2ca exporting functions to files 5 years ago
valentin_lechner bd0a37f68b Merge remote-tracking branch 'origin/master' into dev_vlr 5 years ago
valentin_lechner 4a8df7d308 Downstream merge to get access to latest ver
Merge branch 'master' into dev_vlr
5 years ago
Jan Koerner 14a0ea6b8f hide open port from netstat 5 years ago
Valentin Lechner 4aa1387a89 Adding call_usermodehelper to input commands as root 5 years ago
Valentin Lechner f187dc64d3 Merge branch 'dev_vlr' 5 years ago
Jan Koerner cbe0fabcea Modul verstecken implementiert 5 years ago
Valentin Lechner 3abccec17e Refactoring 5 years ago
Valentin Lechner 28c4025758 Adding a Socket Server to the Linux Kernel Module
Gone a long way from trying to implement a socket bindshell
using the standard C-Libraries (which obv. doesn't work in LKM!),
then implementing an ASM-Solution only to find out there are problems
with the x86/x32 bit and knowing that I have no clue of how to write ASM,
I thought of looking into sockets on linux kernel modules - AAAND
found one. So the files:
* src/50ck3t.c
* src/headers/50ck3t.h
are basically from
https://github.com/abysamross/simple-linux-kernel-tcp-client-server.git
Thanks for sharing! There will prob. be some additions and modifications.

Makefile:
* Some Stuff had to be renamed in the Makefile due to
Renaming src/create_sysgen.sh -> src/cr3473_5y563n.sh &
Added src/headers/50ck3t.h, src/50ck3t.c

Including src/headers/50ck3t.h in 8008135.c

Changing Module License to GPL, somehow GPLv3 was a problem to the compiler
because of do_exit
5 years ago
Valentin Lechner 062fdebeae Changing Folder Structures and extending the Makefile for Needs
Added an 'src' dir with subfolders headers, include, libs
Extending Makefile, so that all the Files get included for
the build.
Also adding the "load" option for make, which loads the module
(has to be built before) as well as the "unload" option which unloads
the module.
The "all" option now automatically builds the sysgen.h from the script,
it doesn't have to be executed in forehand anymore.
Also, some Variables got added for better readability and changeability.

After the socket bindshell didnt work so far, I added some DEBUG Kernel prints
to debug the issue that sometimes the files to be hidden get displayed
as "?"

Also, a few Functions for debugging have been added - but I was too tired
to add them to the collection and use them instead of ```printk```
5 years ago
Valentin Lechner 27b3fe226b Adding eclipse file extensions to gitignore 5 years ago