tarampampam / nod32-update-mirror

:large_orange_diamond: [WIP] ESET Nod32 Updates Mirror
MIT License
108 stars 50 forks source link

Adding 2 patterns for key browsing #82

Open Snoopyk750i opened 5 years ago

Snoopyk750i commented 5 years ago

Hi all, Nod not taking updates for few days, and i have added to nod32keys.sh two new sites and its patterns. I am not programmer, so you need to optimize my werd cote if you want to add to this project.

First

 #by Snoopyk
 page_content="$(network_get_content 'https://t2bot.ru/en/esetkeys/')";
 [[ ! -z "$page_content" ]] && {
   keys_list+=$(sed -e 's/<[^>]*>//g' <<< "$page_content" |\
             awk -F: '/((TRIAL|EAV)-[0-9]+)|(Password: [a-z0-9]+)/ {print $0,$1,$2}' |\
             sed -e 's/ //g' |\
             tr -d "\r" |\
             sed -e 's/TRIAL/\n&/g; s/TRIAL.\{11\}/&:/g'|\
             sed -e 's/EAV/\n&/g; s/EAV.\{11\}/&:/g'|\
             sed -e 's/\(TRIAL.\{22\}\).*/\1/g' |\
             sed -e 's/\(EAV.\{22\}\).*/\1/g' |\
             awk '{getline b;printf("%s\n",$0,b)}');
  keys_list+=$'\n';
 };

Second

 page_content="$(network_get_content 'http://nod32premium.blogspot.com/')";
 [[ ! -z "$page_content" ]] && {
 keys_list+=$(

             sed -e 's/<[^>]*>//g' <<< "$page_content" |\
             awk -F: '/((TRIAL|EAV)-[0-9]+)|(Password:[a-z0-9]+)/ {c=2;while (c<=18) {a=c+1;print $c,":",$a;c+=4 }}' |\
             tr -d [:space:]  |\
             sed -e 's/LicenseKey/\n/g'|\
             sed -e 's/Password//g' |\
             awk '{printf("%s\n",$1)}'
             );
 };
  [[ ! -z "$keys_list" ]] && {
   echo "$keys_list" && return 0;
 };
Push0k commented 5 years ago

Есть возможность внести изменения через "docker-compose.yml" или может какую-то инструкцию как внести в докере эти изменения?