- 博客(59)
- 收藏
- 关注
原创 build.gradle添加jar打包
build.gradle添加jar打包第一步完成博客只为记录,不记详细步骤。第一步直接在build.gradle添加下边的代码.plugins { id 'java' id 'idea'}jar{ String somestr='' configurations.runtime.each{somestr=somestr+" lib\\"+it.name} manifest{ attributes 'Main-Class':'HexUt
2022-03-03 16:41:09
885
原创 Pixel3 xl AOSP编译
编译过程初始化source build/envsetup选择crosshatchlunch 18全部编译m -j16刷机adb reboot bootloaderfastboot flashall加-w则会wipe /data/目录数据.记住用python2
2021-01-15 15:13:03
863
原创 ARM调用方式调试笔记
ARM调用方式理解笔记The first four registers r0-r3 (a1-a4) are used to pass argument values into a subroutine and to return a resultvalue from a function. They may also be used to hold intermediate values ...
2020-01-02 11:03:27
417
原创 Angr使用笔记
Angr使用笔记import angrproject = angr.Project("rpj/sec/bins.so", auto_load_libs=False)@project.hook(0x400844)def print_flag(state): print("FLAG SHOULD BE:", state.posix.dumps(0)) project.ter...
2020-01-02 11:01:44
441
原创 CMAKE三日谈-第二谈compile和link属性
CMAKE三日谈-第二谈compile和link属性我的理解,来自自己的测试得出,不要指望通过我的文章来获取芝士.target_compile_optionstarget_compile_options(<target> [BEFORE] <INTERFACE|PUBLIC|PRIVATE> [items1...] [<INTERFACE|PUBLI...
2020-01-02 10:59:07
519
原创 IDAPython调试使用集合
IDAPython调试使用集合Python>addr=0x7886B3FEPython>add_bpt(addr,0,BPT_SOFT)TruePython>enable_bpt(addr,True)TruePython>enable_bpt(addr,False)TruePython>enable_bpt(addr,False)True...
2019-12-30 08:59:08
780
原创 Linux WiFi连接步骤
Linux wifi连接wifi总共分5步:1.找到网卡名字2.把网卡打开3.设置wifi配置4.连接wifi5.获取IP找到网卡名字dmesg 查看有什么网卡可以用,确定名字eg:eth0wlan0enp3s0把网卡打开ipconfig 没有,则ifconfig wlan0 up设置wifi配置生成wifi config 文件wpa_passphrase ssi...
2019-11-20 11:22:39
3221
原创 clang编译:error: immediate expression for mov requires :lower16: or :upper16
Question:shellcode_ex.s:12:13: error: immediate expression for mov requires :lower16: or :upper16movt r2, #size_of_string @ size of stringSolution:movs r2, #size_of_string @ size of string换一条指令就...
2019-11-18 16:18:45
444
原创 Linux修改root密码
步骤总览1.挂载系统分区镜像到Linux系统,前提支持ext32.sudo losetup -f -P emmc.bin 映射文件系统3.sudo fdisk -l 检查loop设备,出现/dev/loop0p1-p4分区的即是emmc.bin的分区4.当前目录mkdir guazai5. sudo mount /dev/loop0p1 guazai #注意/dev/loop0p1 ...
2019-11-06 10:46:03
1717
原创 CrossToolchain工具链:命名规范
kernel exploit工具的命令方式: <arch>-<vendor>-<os>-<libc/abi>, full form <arch>-<os>-<libc/abi> Components:<arch>, the CPU architecture: arm, mips, powe...
2019-11-05 13:37:25
334
原创 JNI编写Tips
在写JNI方法时有两种方法:一种是通过javah生成头文件,然后自己实现;一种在JNI_OnLoad函数中进行RegisterNatives第一个没什么要说的。第二个基本的操作流程就是找到的对应的Java class然后进行Runtime的注册,具体怎么写;//注册函数映射JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserv...
2019-11-05 11:22:05
121
原创 GDB调试Android Native
工欲善其事必先利其器;调试二进制文件简单说:被调试端:./gdbserver :1234 ./a.out调试端:adb forward tcp:1234 tcp:1234gdb >target remote localhost :1234附加进程调试如果是附加进程就是./gdbserver :1234 --attach $pid_of_appgame=co...
2019-07-08 01:57:20
428
原创 dlopen failed: empty/missing DT_HASH/DT_GNU_HASH问题&Solution
dlopen failed: empty/missing DT_HASH/DT_GNU_HASH问题: dlopen failed: empty/missing DT_HASH/DT_GNU_HASHA: stripped so 导致的,因此关闭构建工具的自动stripped.欢迎在评论区讨论。谢谢...
2019-07-05 18:17:45
4183
原创 Arch Linux编译AOSP for Pixel 3XL
Arch Linux编译ASOP for Pixel 3XL基础命令不描述了.注意备份,以下操作直接刷空所有文件,造成损失文章不负责准备1.磁盘目录首先按照AOSP的仓库指令下载仓库到本地磁盘目录,大小最好分300GB.编译结束后磁盘使用情况.[tonki@ququ ~]$ df -hFilesystem Size Used Avail Use% Mounted o...
2019-07-05 10:28:48
1054
原创 VS2017(社区版)编译DnSpy(visual studio 2017 build Dnspy error&solution)
1>------ Build started: Project: dnSpy.Decompiler, Configuration: Release Any CPU ------2>------ Build started: Project: dnSpy.Roslyn.VisualBasic.EditorFeatures, Configuration: Release Any CPU...
2018-09-28 14:22:05
1678
原创 CMAKE管理大工程实践
别人已经写得很好,自己就做个参考:参考工程: https://github.com/ttroy50/cmake-examples/tree/master/02-sub-projects/A-basic https://cmake.org/cmake/help/v3.4/command/add_library.html https://github.com/Akagi201/lear...
2018-06-02 00:50:12
1186
原创 error: only position independent executables (PIE) are supported.
android.mk 文件LOCAL_CFLAGS += -fPIELOCAL_LDFLAGS += -fPIE -pie CMAKEset(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE")set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE -pie")
2018-05-09 17:58:51
1483
原创 Manjaro i3 拼音输入法
After installation of i3wm complete, it’s time for install Chinese input method for ArchLinux.$ sudo pacman -S fcitx fcitx-im fcitx-ui-light fcitx-libpinyin fcitx-sunpinyin$ sudo pacman -S ttf-dejavu...
2018-04-08 19:33:42
8291
1
原创 Manjaro i3 multi monitor configuration
two monitor the one is horizon ,another one is vertical .so>> xrandr >> xrandr --output HDMI-0 --left-of DP-0 --auto --rotate left and get what i want.
2018-04-04 15:23:57
708
原创 makefile(9) : fatal error U1052: 未找到文件"Win32.Mak"
这种Nmake工具使用很 easy直接搜索win32.mak的路径然后在makefile中添加。然后指定makefile路径nmake -k makefilenmake没有错误就ojbk了。下来是一些nmake使用的其他命令。
2018-03-23 14:31:20
6203
3
原创 Manjaro XFCE桌面安装I3-wm
运行两条命令:sudo pacman -S i3-manjarosudo pacman -S i3-manjaroresolving dependencies…looking for conflicting packages…:: manjaro-i3-settings and manjaro-xfce-settings are in conflict (manjaro-desktop-setti...
2018-03-22 10:38:10
9332
9
原创 const_cast Operator
作用:----》 Removes the const, volatile, and __unaligned attribute(s) from a class.移除变量的const属性 volatile .__unalignedref: // expre_const_cast_Operator.cpp // compile with: /EHsc #include <iostream...
2018-03-13 10:33:11
165
原创 su 命令Tips
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
2018-03-12 13:27:26
242
原创 SCONS構建工具使用-win
windows-10scons -3.0.0預編譯版本(binary)電腦本省裝有py2.7 x64 所以scons自動裝在py27的scripts下.添加后添加Path路徑.這次編譯是aliyun 的mns cpp sdk 到自己的平臺.所以打開vs2017的平臺構建工具 cmd然後进入mns项目的文件夹:scons debug=1 或者scons就自動構建了....
2018-03-09 23:59:14
452
原创 unused DT entry: type问题
输出这个东西:03-09 14:38:46.291 2372-2389/? W/linker: libxxa++.so: unused DT entry: type 0x6ffffffe arg 0x7ca4 libxxa++.so: unused DT entry: type 0x6fffffff arg 0x2下边解释: 有些理解不了。以后再补充。20191106:...
2018-03-09 16:23:19
17057
原创 batch脚本打开cmd然后运行命令
开启@echo off start cmd /k "cd/d d:\work\dws.txt &&notepad.exe -batchmode &&taskkill /f /t /im cmd.exe" 关闭@echo off start cmd /k "taskkill /f /t /im notepad.exe &&taskkill /...
2018-03-08 14:18:17
6227
翻译 Cocos2dx3.1-Android环境搭建初体验
原文:http://blog.youkuaiyun.com/nanlus/article/details/36380855這裏進行一些更改. --------------------------------------------------------初玩Cocos2dx,多多包涵。感觉版本之间的差异比较大,相对前面的版本来说,3.X更容易上手,更方便了。一、安装python。我的python-2.7.3...
2018-03-04 13:34:35
340
原创 cdecl&stdcall
cdeclcdecl的caller才回去清理stack。生成的exe会比较大。参数传递方式是从右到左,caller有责任pop stack规范上,Underscore character (_) is prefixed to names, except when __cdecl functions that use C linkage are exported.放在函数名之前来
2018-01-21 16:55:33
231
原创 php基础小语法。
require一个文件存在错误的话,那么程序就会中断执行了,并显示致命错误 include一个文件存在错误的话,那么程序不会中端,而是继续执行,并显示一个警告错误。
2018-01-13 01:46:26
155
原创 php开发环境搭建
1.Phpstorm安装:这个百度吧,如果不会,算了放弃吧。提醒下有edu可以申请ps的全套lic。2.Xampp安装:同样不会,砸电脑吧。默认安装在D:\xampp\3.git 安装:.........4.复制仓库到本地git clone 网站的github仓库地址。保存在一个文件夹举个栗子。d:\repo\下。clone好后就是有一个这D:\repo\9thnet5
2018-01-13 00:56:32
1154
原创 Failed to establish session Error while Installing APKs
android studio ++++++?解决:File—Settings—Build,Execuion,Deployment—Instant Run然后把Enable Instant Run to...那一项的勾去掉就好了
2018-01-07 22:48:38
198
原创 GDB调试技巧汇总(2019.05.30up)
不写基礎教程,只记关键功能;1.启动时候可以gdb -x ./gdbinit.file 命令来导入重复设置的命令:set pagination offset disassemble-next-line onset breakpoint pending onset stop-on-solib-events 0show stop-on-solib-eventsb sigact...
2017-12-23 18:45:16
505
原创 android_tools使用笔记#1
1.method 1 dex2jar----->jd-gui.jarsh d2j-dex2jar.sh -f ~/path/to/apk_to_decompile.apk2.method 2apktool.jar d ./app.apkapktool.jar b ./app_dir/3.ETC---> method append
2017-12-19 22:54:15
265
原创 Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in Fl
Error LNK2038mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in Flow.obj 1这个错误绝逼是你的工程编译属性和你的DLL链接库不对应造成的。除了,网上百度到的,stackoverflow到的错误。怎么修改vs alt+f7 修改属性,是没有
2017-12-01 20:02:31
631
原创 windows_event读记录
读https://msdn.microsoft.com/zh-cn/library/windows/desktop/ms682655(v=vs.85).aspx记录event创建时,手动和自动set,手动set要手动setevent才可以用。自动set在wait状态前全部singnaled,在线程release掉后. 占用时候为nosingnaled.用 dwWai
2017-11-24 19:09:05
319
原创 Winsock2编程-头文件记
winsock2.h在最开始includeip的一些工具函数在Iphlpapi.h,#include #include #include #pragma comment(lib, "Ws2_32.lib")windows.h默认加载winsock版本1.winsock2.h默认加windows.h不得不加windows.h时候记得加宏WIN32_LEAN
2017-11-10 23:28:57
2635
原创 发行版本的区别(POST)
Alpha:是内部测试版,一般不向外部发布,会有很多Bug.一般只有测试人员使用。Beta:也是测试版,这个阶段的版本会一直加入新的功能。在Alpha版之后推出。RC:(Release Candidate) 顾名思义么 ! 用在软件上就是候选版本。系统平台上就是发行候选版本。RC版不会再加入新的功能了,主要着重于除错。GA:General Availability,正式发布的版本,在国外都
2017-10-21 19:26:33
1468
转载 程序显示烫烫烫,屯屯屯
这种乱码最常见的地方是Visual Studio里。Visual Studio中,未初始化的栈空间用0xCC填充,而未初始化的堆空间用0xCD填充。而0xCCCC和0xCDCD在中文GB2312编码中分别对应“烫”字和“屯”字。如果一个字符串没有结束符'\0',输出时就会打印出未初始化的栈或堆空间的内容,这就是大名鼎鼎的“烫烫烫”、“屯屯屯”乱码。转自问题百度知道:程序猿关于烫烫烫烫烫烫烫
2017-10-21 18:37:06
2591
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人