This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
// modify beraphin CVE-2017-8890.cpp | |
test on 20180327 @ thinkycx | |
success | |
gdb-peda$ c | |
Continuing. | |
[ 150.971426] BUG: unable to handle kernel paging request at 000003ff00000505 | |
[ 151.151511] IP: ip_mc_leave_src+0x25/0x90 | |
[ 151.257300] PGD 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Malloc implementation for multiple threads without lock contention. | |
Copyright (C) 1996-2016 Free Software Foundation, Inc. | |
This file is part of the GNU C Library. | |
Contributed by Wolfram Gloger <[email protected]> | |
and Doug Lea <[email protected]>, 2001. | |
The GNU C Library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public License as | |
published by the Free Software Foundation; either version 2.1 of the | |
License, or (at your option) any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# maybe need to change pip file | |
# sudo vim /usr/bin/pip | |
# ln -s /mnt/hgfs/Pwn ~/pwn | |
# ln -s ~/pwn ~/Desktop/pwn | |
other(){ | |
# vim plus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
date: 20180619 | |
author: thinkycx | |
usage: gcc scanfolder.c -o scanfolder | |
./scanfolder [foldername] | |
./scscanfolderan /home | |
Only support to scan folder and regular file.Maybe support symbolic etc in future... | |
*/ | |
#include <stdio.h> | |
#include <dirent.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <dirent.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <fcntl.h> | |
#include <arpa/inet.h> | |
#include <sys/types.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <sys/types.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* (un)comment correct payload first (x86 or x64)! | |
* | |
* $ gcc cowroot.c -o cowroot -pthread | |
* $ ./cowroot | |
* DirtyCow root privilege escalation | |
* Backing up /usr/bin/passwd.. to /tmp/bak | |
* Size of binary: 57048 | |
* Racing, this may take a while.. | |
* /usr/bin/passwd overwritten |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf-8 | |
# author: thinkycx | |
# date: 20180430 | |
""" | |
purpose: | |
send your an email after finish the job | |
notice that qq smtp cannot send emails frequently, about 2 times per 10 minutes. | |
and it's enough! | |
usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author: thinkycx | |
# date: 2018-04-30 | |
# update: 2020-07-07 | |
# 20230520 fix zsh-autosuggestions clone bug | |
# usage: | |
# curl -fsSL https://gist.githubusercontent.com/thinkycx/2e21c3572a8d1fde21aad07a58fcf940/raw/ -o zsh.sh && sudo bash zsh.sh | |
# | |
# install zsh for one script | |
# support ubuntu & centos & macOS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author: thinkycx | |
# date: 2018-04-24 | |
:<<EOF | |
usage: | |
alias git2 ~/scripts/git2.sh | |
git2 clone git://github.com/author/project_name.git [author@project_name] | |
use it in vmware shared folders which is actually stored on windows |