Facebook
From rakudaoamor, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 813
  1. import io, re, string, os;
  2.  
  3.  
  4. path = os.path.abspath("/tmp/chromedriver");
  5. replacement = "akl_roepstdlwoeproslPOweos".encode()
  6.  
  7. with io.open(path, "r+b") as fh:
  8.     for line in iter(lambda: fh.readline(), b""):
  9.         if b"cdc_" in line:
  10.             fh.seek(-len(line), 1);
  11.             newline = re.sub(b"cdc_.{22}", replacement, line);
  12.             fh.write(newline);
  13.             print("\033[93m[*]\033[0m Linha encontrada e alterada com sucesso: ", line, "to", newline);

Replies to ofusca chromedriver rss

Title Name Language When
Re: ofusca chromedriver bernardes text 4 Months ago.
Re: ofusca chromedriver Gentle Meerkat text 1 Year ago.
Re: ofusca chromedriver Fiery Gorilla python 1 Year ago.
Re: ofusca chromedriver Blush Mosquito text 2 Years ago.