Forwarded from dnaugsuz
llvm-objdump -d target/release/libex.so
c_abs:
5d0: 89 f8 movl %edi, %eax
5d2: f7 d8 negl %eax
5d4: 0f 4c c7 cmovll %edi, %eax
5d7: c3 retq
5d8: 0f 1f 84 00 00 00 00 00 nopl (%rax,%rax)
c_mkdir:
5e0: bf 0c 00 00 00 movl $12, %edi
5e5: be f3 02 00 00 movl $755, %esi
5ea: e9 e1 fe ff ff jmp -287 <.plt.got>
5ef: 90 nop
c_print:
5f0: bf 0c 00 00 00 movl $12, %edi
5f5: 31 c0 xorl %eax, %eax
5f7: e9 dc fe ff ff jmp -292 <.plt.got+0x8>
c_abs:
5d0: 89 f8 movl %edi, %eax
5d2: f7 d8 negl %eax
5d4: 0f 4c c7 cmovll %edi, %eax
5d7: c3 retq
5d8: 0f 1f 84 00 00 00 00 00 nopl (%rax,%rax)
c_mkdir:
5e0: bf 0c 00 00 00 movl $12, %edi
5e5: be f3 02 00 00 movl $755, %esi
5ea: e9 e1 fe ff ff jmp -287 <.plt.got>
5ef: 90 nop
c_print:
5f0: bf 0c 00 00 00 movl $12, %edi
5f5: 31 c0 xorl %eax, %eax
5f7: e9 dc fe ff ff jmp -292 <.plt.got+0x8>
Forwarded from dnaugsuz
这时候我发现snowman给出的反编译结果🌚
int64_t printf = 0;
int32_t fun_510(int64_t rdi) {
goto printf;
}
int64_t c_print() {
int32_t eax1;
int64_t rax2;
eax1 = fun_510(12);
*reinterpret_cast<int32_t*\>\(&rax2) = eax1;
*reinterpret_cast<int32_t*\>\(reinterpret_cast<int64_t\>\(&rax2) + 4) = 0;
return rax2;
}
虽然垃圾的不知道到那里去了,但的确比反汇编的好...
int64_t printf = 0;
int32_t fun_510(int64_t rdi) {
goto printf;
}
int64_t c_print() {
int32_t eax1;
int64_t rax2;
eax1 = fun_510(12);
*reinterpret_cast<int32_t*\>\(&rax2) = eax1;
*reinterpret_cast<int32_t*\>\(reinterpret_cast<int64_t\>\(&rax2) + 4) = 0;
return rax2;
}
虽然垃圾的不知道到那里去了,但的确比反汇编的好...
Forwarded from dnaugsuz
»> c.c_print()
[1] 29596 segmentation fault (core dumped) python
»> c.c_mkdir()
-1
ls .
Cargo.lock Cargo.toml src target
»> c.c_abs(1)
1
»> c.c_abs(-1)
1
»> c.c_abs()
11
[1] 29596 segmentation fault (core dumped) python
»> c.c_mkdir()
-1
ls .
Cargo.lock Cargo.toml src target
»> c.c_abs(1)
1
»> c.c_abs(-1)
1
»> c.c_abs()
11
Forwarded from dnaugsuz
Forwarded from dnaugsuz
Guid guid = Guid.NewGuid();
Console.WriteLine(guid);
^C#生成&printlnGUID
csharp [filename]
Console.WriteLine(guid);
^C#生成&printlnGUID
csharp [filename]
https://tieba.baidu.com/p/5136125837?pn=2
有谁能把这个链接外加mcs编译一下发个二进制过去,验证手机我都懒得回百度了.🌚
有谁能把这个链接外加mcs编译一下发个二进制过去,验证手机我都懒得回百度了.🌚
Baidu
回复:GUIDauto 0.0.1发布(过几周其他增效工具也在这发【生存战争吧】_百度贴吧
GUIDauto 0..
duangsuse::Echo
mind
改了一下,为了体积不使用std和toml格式了,用自创格式.并且x86和armv7的也不需要独立apk了,因为编译出cdylib的大小完全可以被接受,而且现在Rust
部分只负责扫描和删除(使用libc)了,其他(解析规则)由Java部分完成,并且不再使用文件交换数据,充分利用FFI的优越性传递参数.并且这样出第一版就可以做PV了
部分只负责扫描和删除(使用libc)了,其他(解析规则)由Java部分完成,并且不再使用文件交换数据,充分利用FFI的优越性传递参数.并且这样出第一版就可以做PV了
duangsuse::Echo
a.tar.bz2
core-only Rust helloworld cdylib use in JNI🌚
新技能GET -> 200 OK 🌚
use libc::printf;
unsafe {
let res_ptr = b"G_G\n".as_ptr() as *const i8;
printf(res_ptr);
}