duangsuse::Echo
717 subscribers
4.26K photos
130 videos
583 files
6.48K links
import this:
美而不丑、明而不暗、短而不凡、长而不乱,扁平不宽,读而后码,行之天下,勿托地上天国。
异常勿吞,难过勿过,叹一真理。效率是很重要,盲目最是低效。
简明是可靠的先验,不是可靠的祭品。
知其变,守其恒,为天下式;穷其变,知不穷,得地上势。知变守恒却穷变知新,我认真理,我不认真。

技术相干订阅~
另外有 throws 闲杂频道 @dsuset
转载频道 @dsusep
极小可能会有批评zf的消息 如有不适可退出
suse小站(面向运气编程): https://WOJS.org/#/
Download Telegram
.section .rodata
hello: .asciz "hello, world!"

.globl _start

_start:
mov %rsp, %rbp
call main

doPrint:
pop %rdx
pop %rsi

mov $1, %rax
mov $1, %rdi

syscall

ret

doExit:
mov $0, %rax
call _Exit

main:
push $10
push hello
call doPrint
jmp doExit

... 比较难受,总是 segv,上 edb 以后发现是 ret @ main 跳转到 0xa 这个地址去了,而这块内存根本还没有 map 到... call Push 到栈上的应该是根本不可能是无效 rip 地址啊...
今天这个汇编的算了... 很扫兴,也块到明天了

Makefile:

ASM_LDFLAGS := -lc -I /usr/lib64/ld-2*.so

hello: hello.S
$(AS) $(ASFLAGS) $^ -o $@.o
$(LD) $(LDFLAGS) -o $@ $@.o $(ASM_LDFLAGS)

clean:
$(RM) hello hello.o

run: hello
@./hello

runclean: run clean

.PHONY: clean run runclean
Forwarded from LWL 的基地台
发现 TDLib 非常有趣的样子,感谢 jsw 介绍(
duangsuse::Echo
... 再附加上一个 DalvikVM 的 smali 汇编猜数游戏吧,然后教你们怎么用 enjarify、dex2jar 之类的(2333 jadx、jd-gui 什么的那种简单到爆炸的玩意就不教你们了,你用脚趾头都想得出来怎么用啊? 最后附上一句:我是擅长逆向工程的(迫真)(hhhh 开什么玩笑....
import java.lang.System;
import java.lang.Math;

import java.util.Scanner;

class Main {

static int getRand() { return (int) (Math.random() * 100); }

static void judge(int truth, int given) {
if (truth > given)
System.out.println("Too small");
else if (truth < given)
System.out.println("Too big");
else System.out.println("You win");
}

public static void main(final String... args) {
int rand, input;
final Scanner stdin = new Scanner(System.in);

loop: while (true) {
rand = getRand();

if (!stdin.hasNextInt()) break loop;
input = stdin.nextInt();

judge(rand, input);

continue loop;
}
}

}
duangsuse::Echo
import java.lang.System; import java.lang.Math; import java.util.Scanner; class Main { static int getRand() { return (int) (Math.random() * 100); } static void judge(int truth, int given) { if (truth > given) System.out.println("Too small");…
... 算了也没时间写了,写 Qt 去吧,感觉 judge() 里面那个 if 不是多好看似的... 反正是 Jawa 嘛
这次三个都没安排好... x86 汇编、ARM 汇编、Dalvik Smali,原因是我自己也不熟悉的东西教别人...
This media is not supported in your browser
VIEW IN TELEGRAM
Forwarded from duangsuse Throws
#life 掐指一算,我居然从下午三点死坐电脑前到晚上 11:50... 我居然死磕了足足 8 个小时一动也不动... 😶
Forwarded from METO 的涂鸦板
DNSPod 又开始各种炸了,我还是用 8.8.8.8 让 ISP 劫持走算了(
Forwarded from METO 的涂鸦板
内部章程明确规定周五不做变更,而且今天还是司庆日,完全没信心对外推荐腾讯云的服务。
duangsuse Throws
#life 掐指一算,我居然从下午三点死坐电脑前到晚上 11:50... 我居然死磕了足足 8 个小时一动也不动... 😶
这简直有毒啊,下面又双要熬夜伤身的还好我每周就这么一两次(迫真)要不然迟早猝死
This media is not supported in your browser
VIEW IN TELEGRAM
duangsuse::Echo
这简直有毒啊,下面又双要熬夜伤身的还好我每周就这么一两次(迫真)要不然迟早猝死
不能怪我,要怪就怪老师不识货我一定要给开源软件争气(迫真)
duangsuse::Echo
不能怪我,要怪就怪老师不识货我一定要给开源软件争气(迫真)
This media is not supported in your browser
VIEW IN TELEGRAM
btw. 比起 C++ 其实我反而更喜欢 C
btw. 但是 Qt 扩展的信号插槽机制也不错,很机智(识破)