Skip to content

Instantly share code, notes, and snippets.

View WangYihang's full-sized avatar
🎯
Focusing

Yihang Wang WangYihang

🎯
Focusing
View GitHub Profile
#include <stdio.h>
#include <unistd.h>
int main(int argc, char* argv[])
{
FILE * fp;
char buffer[0x100];
fp=popen(argv[1],"r");
int counter = 1;
while(counter){
#include <stdio.h>
#include <stdlib.h>
#define SIZE 6
#define INF 1000
void array_dump(int* array, int height, int width){
int i = 0;
int j = 0;
#!/usr/bin/env python
# encoding:utf-8
# Author: WangYihang
# Email: [email protected]
# Comment: CVE-2017-17561 SeaCMS Authenticated Getshell
import requests
import sys
import readline
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# For: X-NUCA 2017 Final
# Game: Personal Challenges Pwn
from pwn import *
# set context
context.log_level = 'debug'

Keybase proof

I hereby claim:

  • I am wangyihang on github.
  • I am wangyihang (https://keybase.io/wangyihang) on keybase.
  • I have a public key ASD0ZK_pTL_k0sDoCtsr4yUa3rnsl78oriZ89shZnyO7tQo

To claim this, I am signing this object:

package main
import (
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql"
"github.com/satori/go.uuid"
"fmt"
)
type User struct {
package main
import (
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql"
"github.com/satori/go.uuid"
"fmt"
)
type Email struct {
#!/usr/bin/env python
'''
# cat /flag
flag{blind_rce_exploit}
# cat /var/www/html/index.php
<?php
system($_POST['command']);
# ~/.tmux.conf
# Reload config
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded"
# Change default prefix
set -g prefix C-q
unbind C-b
bind C-q send-prefix
# Disable windows name auto changing