⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
re2c
/
examples
/
View File Name :
16_fake_sentinel.i--input(custom).re
#include <stdio.h> #include <string.h> static int lex(const char *cur, const char *lim) { const char *mar, *tok = cur; # define YYCTYPE char # define YYPEEK() (cur < lim ? *cur : 0) # define YYSKIP() ++cur # define YYBACKUP() mar = cur # define YYRESTORE() cur = mar /*!re2c re2c:yyfill:enable = 0; * { printf("error\n"); return 1; } [0-9a-zA-Z]+ [;] [\x00] { printf("%.*s\n", (int) (cur - tok) - 1, tok); return 0; } */ } int main(int argc, char **argv) { if (argc != 2) return 1; char *s = argv[1]; size_t l = strlen(s); s[l] = ';'; // overwrite terminating NULL return lex(s, s + l + 1); }