sscanf function reference (using of %*)

本文介绍如何利用C语言中的sscanf函数来解析字符串,并通过特定格式说明符跳过不需要的数据部分。例如,可以使用%*s来跳过一个字符串,而不会将其存储在变量中。同样适用于跳过数字等其他数据类型。

1. 函数定义

int sscanf ( const char * str, const char * format, ...);

有一种用法:
 
代码中的 %*s 表明忽略一个字符串, 其中*的定义如下
*An optional starting asterisk indicates that the data is to be retrieved from the str string but ignored, i.e. it is not stored in the corresponding argument.
同理也可以将数字忽略
  
Script // Old symbol-to-address map (for reference, will be replaced) private static final Map<String, Long> OLD_SYMBOLS = new HashMap<>() {{ put(“mrpccs_initialization”, 0x249988L); put(“mrmponi_th_fb_fo”, 0x259E48L); put(“monitor”, 0x4BF5BCL); put(“front_back_string_node”, 0x6C7DA0L); put(“lock_front_back_string_node”, 0x262228L); put(“front_back_validation”, 0x24E3E4L); put(“tdm_dev_info”, 0x4BEE370L); put(“tdm_report”, 0x4BEE88L); put(“Pushantidata3”, 0x395AC4L); put("memcpy_scanning", 0x2DEC64L); put("info_protection_flash", 0x15419CL); put("case_thread", 0x1423D8L); put("case16", 0x1EB7BCL); put("case23", 0x1D17D4L); put("case35", 0x2A681CL); put(“solve_case35”, 0x322884L); put(“case37”, 0x1DDCC4L); put(“case38”, 0x1DDE64L); put(“case47”, 0x48D348L); }}; // Hints: byte patterns and expected semantic meaning private static final List<Hint> HINTS = Arrays.asList( new Hint("1F 20 03 D5", "memcpy scan NOP"), new Hint("1F 20 03 D5", "anti-flash protection RET"), new Hint("00 00 80 D2", "mrpcs report MOV X0, XZR"), new Hint("10 00 00 14", "hash branch B [PC,#0x90]"), new Hint("4A 00 40 39", "CRC32 LDRB W10, [X19]") ); error: 1: Function declaration is expected find all the function make script i want to dump all this function from game while playing live game or monotring live i have src make a hook that help me to dump all the offset realted to this function and cases while playing pubg and also save the output on my mobile download so i get accurate offset working or send data to anticheat
最新发布
11-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值