Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
flex /
examples /
manual /
[ HOME SHELL ]
Name
Size
Permission
Action
ChangeLog
709
B
-rw-r--r--
Makefile
15.25
KB
-rw-r--r--
Makefile.am
1.39
KB
-rw-r--r--
Makefile.examples
1.86
KB
-rw-r--r--
Makefile.in
14.65
KB
-rw-r--r--
README
349
B
-rw-r--r--
cat.lex
849
B
-rw-r--r--
dates.lex
2.8
KB
-rw-r--r--
datetest.dat
343
B
-rw-r--r--
eof_rules.lex
1.3
KB
-rw-r--r--
eof_test01.txt
367
B
-rw-r--r--
eof_test02.txt
104
B
-rw-r--r--
eof_test03.txt
87
B
-rw-r--r--
expr.lex
619
B
-rw-r--r--
expr.y
988
B
-rw-r--r--
front.lex
1.21
KB
-rw-r--r--
front.y
2.58
KB
-rw-r--r--
j2t.lex
12.06
KB
-rw-r--r--
myname.lex
287
B
-rw-r--r--
myname.txt
170
B
-rw-r--r--
myname2.lex
443
B
-rw-r--r--
numbers.lex
4.96
KB
-rw-r--r--
pas_include.lex
1.63
KB
-rw-r--r--
pascal.lex
3.12
KB
-rw-r--r--
reject.lex
245
B
-rw-r--r--
replace.lex
529
B
-rw-r--r--
string1.lex
2.5
KB
-rw-r--r--
string2.lex
3
KB
-rw-r--r--
strtest.dat
733
B
-rw-r--r--
unput.lex
429
B
-rw-r--r--
user_act.lex
303
B
-rw-r--r--
userinit.lex
514
B
-rw-r--r--
wc.lex
2.67
KB
-rw-r--r--
yymore.lex
566
B
-rw-r--r--
yymore2.lex
720
B
-rw-r--r--
yymoretest.dat
115
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : wc.lex
%{ /* * wc.lex : A simple example of using FLEX * to create a wc-like utility. * * See MISC/fastwc/ in the flex distribution for examples * of how to write this scanner for maximum performance. */ int numchars = 0; int numwords = 0; int numlines = 0; int totchars = 0; int totwords = 0; int totlines = 0; /* * rules start from here */ %} %% [\n] { numchars++; numlines++; } [\r] { numchars++; } [^ \t\n]+ { numwords++; numchars += yyleng; } . { numchars++; } %% /* * additional C code start from here. This supplies * all the argument processing etc. */ int main(int argc, char *argv[]) { int loop,first=1; int lflag = 0; /* 1 if we count # of lines */ int wflag = 0; /* 1 if we count # of words */ int cflag = 0; /* 1 if we count # of characters */ int fflag = 0; /* 1 if we have a file name */ for(loop=1; loop<argc; loop++){ if(argv[loop][0] == '-'){ switch(argv[loop][1]){ case 'l': lflag = 1; break; case 'w': wflag = 1; break; case 'c': cflag = 1; break; default: fprintf(stderr,"unknown option -%c\n", argv[loop][1]); } } } if(lflag == 0 && wflag == 0 && cflag == 0){ lflag = wflag = cflag = 1; /* default to all on */ } for(loop=1; loop<argc; loop++){ if(argv[loop][0] != '-'){ fflag = 1; numlines = numchars = numwords = 0; if((yyin = fopen(argv[loop],"rb")) != NULL){ if(first){ first = 0; } else { YY_NEW_FILE; } (void) yylex(); fclose(yyin); totwords += numwords; totchars += numchars; totlines += numlines; printf("file : %25s :",argv[loop]) ; if(lflag){ fprintf(stdout,"lines %5d ",numlines); } if(cflag){ fprintf(stdout,"characters %5d ",numchars); } if(wflag){ fprintf(stdout,"words %5d ",numwords); } fprintf(stdout,"\n"); }else{ fprintf(stderr,"wc : file not found %s\n",argv[loop]); } } } if(!fflag){ fprintf(stderr,"usage : wc [-l -w -c] file [file...]\n"); fprintf(stderr,"-l = count lines\n"); fprintf(stderr,"-c = count characters\n"); fprintf(stderr,"-w = count words\n"); exit(1); } for(loop=0;loop<79; loop++){ fprintf(stdout,"-"); } fprintf(stdout,"\n"); fprintf(stdout,"total : %25s ","") ; if(lflag){ fprintf(stdout,"lines %5d ",totlines); } if(cflag){ fprintf(stdout,"characters %5d ",totchars); } if(wflag){ fprintf(stdout,"words %5d ",totwords); } fprintf(stdout,"\n"); return(0); }
Close