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
Insatll apache | |
sudo yum install httpd | |
Start apache | |
sudo service httpd start |
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
# R0 - R11 为寄存器 | |
# BL 表示调用子程序 | |
# puts 表示标准函数printf的实现 | |
EXPORT main # IDA 生成,函数名称 | |
main # 函数名称 | |
var_C = -0xc # variable var_c = -0xc | |
var_8 = -8 # variable var_8 = -8 | |
STMFD SP!, {R11,LR} # 将寄存器入栈 | |
ADD R11, SP, #4 # R11 = [SP] + 4 |
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
^ ctrl |
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
可执行文件格式: | |
1. windows 可编译可执行(Portable Executable, PE)格式 | |
2. Unix 可执行和链接格式(Executable and linking format, ELF) | |
反汇编算法: | |
1. 线性扫描。GNU调试器(gdb)、微软公司的winDbg调试器和objjump实用工具的反汇编引擎均采用这种扫描方法。 | |
2. 递归下降反编译器。IDA Pro | |
IDA Pro全称为Interactive Disassembler Professional | |
编译的时候可以选择静态链接或者动态链接,静态链接会将需要用的的共享库一起打包到发行文件中,而动态链接会动态的链接运行环境中的库。 |
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
13位为毫秒 | |
10位为妙 |
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
# define a string | |
const-string v0, "aaa" | |
# invode static method | |
invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)V | |
# static field | |
.field private static TAG:Ljava/lang/String; | |
# |
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
2. 将Unity3dRider(https://github.com/JetBrains/Unity3dRider)中的Assets/Plugins/Editor/JetBrains拷贝到Unity3d工程的Assets/Plugins/Editor/JetBrains | |
3. 在Unity3D中设置editor为rider |
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
virual: A use virtual and B use override | |
A a = new B(); | |
a.foo() calls B.foo() | |
new: | |
just like override in java. Just let compier know I konw it override A's method | |
override: | |
use with virtual or abstract |
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
一般逻辑放在dll中。如安卓平台中的: | |
-rw-r--r-- 1 yi staff 162K Mar 14 22:58 ./assets/bin/Data/Managed/Assembly-CSharp-firstpass.dll | |
-rw-r--r-- 1 yi staff 2.1M Mar 14 22:58 ./assets/bin/Data/Managed/Assembly-CSharp.dll | |
-rw-r--r-- 1 yi staff 132K Mar 14 22:58 ./assets/bin/Data/Managed/DOTween.dll | |
-rw-r--r-- 1 yi staff 8.0K Mar 14 22:58 ./assets/bin/Data/Managed/DOTween43.dll | |
-rw-r--r-- 1 yi staff 16K Mar 14 22:58 ./assets/bin/Data/Managed/DOTween46.dll | |
-rw-r--r-- 1 yi staff 5.5K Mar 14 22:58 ./assets/bin/Data/Managed/DOTween50.dll | |
-rw-r--r-- 1 yi staff 15K Mar 14 22:58 ./assets/bin/Data/Managed/DOTweenPro.dll | |
-rw-r--r-- 1 yi staff 5.0K Mar 14 22:58 ./assets/bin/Data/Managed/DemiLib.dll | |
-rw-r--r-- 1 yi staff 28K Mar 14 22:58 ./assets/bin/Data/Managed/GAEAMOBILE.Unity.Platform.dll |
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
查看CPU型号:cat /proc/cpuinfo | |
Processor : AArch64 Processor rev 2 (aarch64)对应的是arm64-v8 |