3 ms·
/*```````````duckduckgo```````````*/ "Zero-click info: " ddg_info++; "<!-- Web results are present -->" ddg_info=0; [ ]{8}"<a rel=\"nofollow\" href
by 1vuio0pswjnm7 3y ago
/*```````````duckduckgo```````````*/
"Zero-click info: " ddg_info++;
"<!-- Web results are present -->" ddg_info=0;
[ ]{8}"<a rel=\"nofollow\" href=\""[^\n\r"]+ if(!ddg_info){
ddg_url++;
CDp8iULPuCinsert(1);
for(x=32;x<yyleng;x++){putc(yytext[x],yyout);if(yytext[x]==39)putc(39,stdout);};
fwrite("','",1,3,yyout);
}
"class='result-link'><span class=\"result__type\">"[^<]+"</span>"[^<]+ if(ddg_url){
for(x=57;x<yyleng;x++)putc(yytext[x],yyout);
fwrite("');\n",1,4,yyout);
}
"class='result-link'>"[^<]+ if(ddg_url){
for(x=20;x<yyleng;x++)putc(yytext[x],yyout);
fwrite("');\n",1,4,yyout);
}
To test:
$!/bin/sh
read x;
echo TWVGHkppk6Q6cODqP7Kqquery:\""$x"\"
echo TWVGHkppk6Q6cODqP7Kqdate:\"$(epoch)\"
curl -si0A "" -d "q=$x&p=&s=${1-0}&dc=$(($1+1))&api=%2Fd.js&o=json&kl=wt-wt" https://lite.duckduckgo.com/lite/
echo this is a test|001.sh > 1.htm
yy084 < 1.htm|sqlite3 test.db
# epoch prints UNIX timestamp
epoch.c:
int puts(const char *);
unsigned int time(unsigned int *tloc);
char *itoa(int x){
static char buf[21];
char *s=buf+20;
if(x>=0){do{*--s='0'+(x%10);x/=10;}while(x!=0);return s;}
else{do{*--s='0'-(x%10);x/=10;}while(x!=0);*--s='-';};
return s;}
int main(){
puts(itoa(time(0)));
}