Skip to content

Instantly share code, notes, and snippets.

View baskurthalit's full-sized avatar

Halit Seyfullah Başkurt baskurthalit

View GitHub Profile
/*****************************************************
* This code was compiled and tested on Ubuntu 18.04.1
* with kernel version 4.15.0
https://infosecwriteups.com/linux-kernel-communication-part-1-netfilter-hooks-15c07a5a5c4e
*****************************************************/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netfilter.h>
@baskurthalit
baskurthalit / stringSplit.c
Last active July 14, 2021 06:40
C++ | String Bölme-Parçalama - String Splitting - bseyha.com
/* www.bseyha.com/string-bolme-parcalama-c-cpp/ */
#include <iostream>
#include <vector>
using namespace std;
vector<string> split(const char *str , char k = ' '){
vector<string> sonuc; //Geri döndürmek için
while(*str++!=0 && *str){