- 博客(24)
- 收藏
- 关注
原创 xbox手柄usb连接linux python控制
xbox手柄usb连接linux python控制手柄在linux中叫joystick 首先插上手柄,打开目录/dev/input,ls看到里面以js0,js1等文件就是手柄的输入。用这个代码。import os, struct, arrayfrom fcntl import ioctl# Iterate over the joystick devices.print('Availa...
2019-08-18 15:14:04
3405
4
原创 Windows编程个人笔记
目录Windows编程个人笔记win32界面编程DLL调用消息处理机制常用函数HOOK 功能socket udp编程Windows编程个人笔记win32界面编程Winmain() 是界面的入口函数CreateWindow()是界面的展示函数。通过CreateWindows()展示界面调用ShowWindow()来展示。DLL调用 HMODULE hDll =LoadLibrar...
2019-04-26 21:51:21
228
原创 pwnable.kr [asm]
pwnable.kr [asm]#include <stdio.h>#include <string.h>#include <stdlib.h>#include <sys/mman.h>#include <seccomp.h>#include <sys/prctl.h>#include <fcntl.h&g
2018-12-26 18:07:35
408
原创 pwnable [uaf]
pwnable [uaf]Mommy, what is Use After Free bug?ssh uaf@pwnable.kr -p2222 (pw:guest)题意:本题主要利用了uaf漏洞,和c++类实例的内存分配。uaf漏洞看这个链接c++类实例的内存分配看这个链接方法:类的虚函数表地址如下可以看到是固定的地址,结合类实例的第一个参数为指向虚函数地址表的指针。那么...
2018-12-24 22:57:04
303
原创 pwnable.kr [lotto][cmd1][cmd2]
pwnable.kr [lotto][cmd1][cmd2]lottoMommy! I made a lotto program for my homework.do you want to play?ssh lotto@pwnable.kr -p2222 (pw:guest)#include <stdio.h>#include <stdlib.h>#in...
2018-12-17 20:51:05
210
原创 pwnable.ke [blackjack]
pwnable.ke [blackjack]Hey! check out this C implementation of blackjack game!I found it online* http://cboard.cprogramming.com/c-programming/114023-simple-blackjack-program.htmlI like to give my f...
2018-12-12 17:56:07
230
原创 pwnable.kr [coin1]
pwnable.kr [coin1]Mommy, I wanna play a game!(if your network response time is too slow, try nc 0 9007 inside pwnable.kr server)Running at : nc pwnable.kr 9007首先访问,看看是什么东西。由题意得,我们需要使用二分法,来交互得到...
2018-12-12 16:51:35
329
原创 pwnable.kr [shellshock]
pwnable.kr [shellshock]Mommy, there was a shocking news about bash.I bet you already know, but lets just make it sure
2018-12-09 16:43:21
271
原创 pwnable.kr [mistake]
pwnable.kr [mistake]We all make mistakes, let’s move on.(don’t take this too seriously, no fancy hacking skill is required at all)This task is based on real eventThanks to dhmonkeyhint : operato...
2018-12-05 18:16:59
185
原创 pwnable.kr [leg]
pwnable.kr [leg]Daddy told me I should study arm.But I prefer to study my leg!Download : http://pwnable.kr/bin/leg.cDownload : http://pwnable.kr/bin/leg.asmssh leg@pwnable.kr -p2222 (pw:guest)...
2018-12-02 16:04:34
340
原创 pwnable.kr [input]
pwnable.kr [input]Mom? how can I pass my input to a computer program?ssh input2@pwnable.kr -p2222 (pw:guest)input.c 的代码#include &lt;stdio.h&gt;#include &lt;stdlib.h&gt;#include &lt;string.h&gt
2018-12-02 11:36:35
279
原创 pwnable.kr [random]
pwnable.kr [random]Daddy, teach me how to use random value in programming!ssh random@pwnable.kr -p2222 (pw:guest)代码如下#include <stdio.h>int main(){ unsigned int random; ra...
2018-11-25 19:56:01
204
原创 pwnbale.kr [passcode]
pwnbale.kr [passcode]Mommy told me to make a passcode based login system.My initial C code was compiled without any error!Well, there was some compiler warning, but who cares about that?ssh passc...
2018-11-25 19:36:52
234
原创 pwnable.kr [flag]
pwnable.kr [flag]Papa brought me a packed present! let’s open it.Download : http://pwnable.kr/bin/flagThis is reversing task. all you need is binary题目要求直接看二进制文件。ida打开观察一波反编译代码如下__int64 __fastc...
2018-11-25 16:44:48
327
原创 pwnable.kr [bof]
pwnable.kr [bof]Nana told me that buffer overflow is one of the most common software vulnerability.Is that true?Download : http://pwnable.kr/bin/bofDownload : http://pwnable.kr/bin/bof.cRunning ...
2018-11-25 16:14:01
238
原创 pwnable.kr [collison]
pwnable.kr [collison]Daddy told me about cool MD5 hash collision today.I wanna do something like that too!ssh col@pwnable.kr -p2222 (pw:guest)水题(个屁 )代码如下#include &lt;stdio.h&gt;#include &lt;s...
2018-11-06 23:33:54
173
原创 pwnable.kr [fd]
pwnable.kr [fd]Mommy! what is a file descriptor in Linux?try to play the wargame your self but if you are ABSOLUTE beginner, follow this tutorial link:https://youtu.be/971eZhMHQQwssh fd@pwnable....
2018-11-05 23:49:01
257
原创 jarvisoj_level0
jarvisoj_level0通过命令检查文件类型file level0发现是64位的可执行文件然后用64-ida打开按F5显示伪代码,很简单这是一个hello world的程序然后开始分析可以看到main函数一共调用了三个函数然后依次检查函数,检查 通过网上答案发现vunlnerable_function这个函数调用了200h的内存空间,其实作者也看不懂,建议进行这一步时先看...
2018-11-05 23:17:43
1913
2
原创 selenium+python使用笔记
selenium+python使用笔记参考文档不是官方文档安装pip install selenium然后要装浏览器驱动和浏览器驱动要放在python的目录下开干例子from selenium import webdriverfrom selenium.webdriver.common.keys import Keysdriver = webdriver.Firefox(...
2018-09-23 23:49:46
157
原创 bzoj 2120 数颜色 (分块做法)
bzoj 2120 数颜色 (分块做法)此篇文章主要讲修改操作 用pre[i]表示第i个元素的前一个相同元素的位置,问题变成在区间[l,r]里找大于l的数的个数, (具体什么意思去其他地方看)默认值为最大值。 用ppp[i]表示颜色i最后出现的位置(针对这道题颜色最多1e6种,建一个1e6的数组即可) color[i]表示第i个位置是什么颜色 总块数为n1.建区块(网上有)2...
2018-07-29 10:04:57
455
原创 python列表切片的一点理解
python列表切片解读格式[ start :end :step ] start和end取0或正值时表示从前往后数的第几个,0表示第一个,end取到相应的值是不取的 取负值时 ,-1表示是序列最后一个,-n表示是倒着数的第n个,同样end取到的相应的值是不取的 当要取最后一个时就把end只有省略了 step取正值时表示从前往后取相应的步长 step取负值时表示从前往后取相应...
2018-04-01 22:12:01
285
原创 ubuntu的几个命令行
个人备忘录(1)ubuntu配置mysql+django+nginx服务器开始用命令行先装软件sudo apt-get install pythonsudo apt-get install nginxsudo apt-get install mysql-serversudo apt isntall mysql-clientsudo apt install libmy...
2018-03-25 21:39:48
566
原创 个人笔记
第一篇博客此博客将记录个人要点,只是给自己看的正在写SSE参见这个网页链接 转载感谢,php json参见这个网页链接 转载感谢,小程序学习—view-scroll参见这个网页链接 转载感谢,nginx反向代理配置参见这个网页链接 转载感谢,uwsgi配置参见这个网页链接 转载感谢,...
2017-12-21 01:56:12
147
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人