Skip to content

Instantly share code, notes, and snippets.

View alicangnll's full-sized avatar
💭
I may be slow to respond.

Ali Can Gönüllü alicangnll

💭
I may be slow to respond.
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alicangnll
alicangnll / WSL_Install_Mac.txt
Last active October 17, 2024 13:02
WSL Install macOS
Run macOS on Windows Subsystem On Linux
wsl --install (Eğer WSL yüklü değilse)
C:/Users/<kullanici_adi>/.wslconfig (Dosyayı oluştur veya içine yaz)
[wsl2]
nestedVirtualization=true
debugConsole=true
pageReporting=true
kernelCommandLine=intel_iommu=on iommu=pt kvm.ignore_msrs=1 kvm-intel.nested=1 kvm-intel.ept=1 kvm-intel.emulate_invalid_guest_state=0 kvm-intel.enable_shadow_vmcs=1 kvm-intel.enable_apicv=1
@alicangnll
alicangnll / latte_injector.cpp
Created October 5, 2024 10:26
C++ DLL Injector and WriteProcessMemory() EDR Bypass Method
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <tlhelp32.h>
char inj3ctor[] = "C:\\DLL_Name.dll";
unsigned int inj3ctor_len = sizeof(inj3ctor) + 1;
int main(int argc, char* argv[]) {
@alicangnll
alicangnll / Dockerfile
Last active June 5, 2024 15:02
Ubuntu SSH and SystemD
# docker build -t ubuntu-ssh .
# docker run --privileged -p 2222:22 -v /run/systemd/system:/run/systemd/system -v /bin/systemctl:/bin/systemctl -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket -v /usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu -v /lib/systemd:/lib/systemd -it ubuntu:latest bash -c "ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5"
FROM ubuntu-ssh:latest
RUN apt-get update
RUN apt-get install openssh-server sudo python3 python3-pip cron systemd net-tools nano -y
RUN mkdir /var/run/sshd
RUN adduser sshuser
RUN echo 'sshuser:defaultpwd' | chpasswd
RUN usermod -aG sudo sshuser
@alicangnll
alicangnll / Dockerfile
Created June 5, 2024 09:46
Ubuntu with SSH Dockerfile
# docker build -t ubuntu-ssh .
# docker run -d -p 2222:22 --name ubuntussh ubuntu-ssh
FROM ubuntu
RUN apt-get update
RUN apt-get install -y openssh-server
RUN apt-get install -y sudo
RUN mkdir /var/run/sshd
RUN adduser sshuser
RUN echo 'sshuser:newpassword' | chpasswd
RUN usermod -aG sudo sshuser
@alicangnll
alicangnll / docker.sh
Last active March 22, 2024 07:24
macOS on Linux Docker
# Docker Hub : https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated
# GitHub : https://github.com/sickcodes/Docker-OSX#requirements-kvm-on-the-host
yum -y install libvirt qemu-kvm
sudo systemctl enable --now libvirtd
sudo systemctl enable --now virtlogd
echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
sudo modprobe kvm
reboot
@alicangnll
alicangnll / winrar_2023_38831.yara
Last active November 20, 2023 13:52
Winrar <= 623 RCE / CVE-2023-38831 YARA Rule
rule WinRAR_Exploit {
meta:
author= "Ali Can Gönüllü"
description= "CVE-2023-38831 Rule"
strings:
$pk = {2F 50 4B}
condition:
any of them
}
@alicangnll
alicangnll / main.c
Last active May 3, 2023 12:18
Kod Örneği
/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
@alicangnll
alicangnll / php_proxy.php
Last active February 8, 2023 18:01
PHP Proxy Connection
<?php
$opts = array(
'http' => array(
'method' => "GET",
'header' => "Accept-language: en\r\n".
"Cookie: demo=demo\r\n",
'proxy' => 'tcp://proxy.proxy.com:8080',
)
); // Proxy addresses
$context = stream_context_create($opts); // Connect to proxy
@alicangnll
alicangnll / hosts.py
Created February 7, 2023 23:34
Windows, Linux and macOS Hosts Blocker
import requests as download
from sys import platform
import shutil, os
def writefile(location, log):
f = open(location, "r+")
f.write(log)
f.close()