Skip to content

Commit

Permalink
Merge pull request #38 from sunaurus/master
Browse files Browse the repository at this point in the history
Add grepMetaUrls command
  • Loading branch information
tuxor1337 authored Apr 20, 2019
2 parents a37d504 + 8c59f14 commit 9836e8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/passff.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def sendMessage(encodedMessage):
pos_args = [receivedMessage[1], receivedMessage[2]]
if "-n" in receivedMessage[3:]:
opt_args.append("-n")
elif receivedMessage[0] == "grepMetaUrls" and len(receivedMessage) == 2:
opt_args = ["grep", "-iE"]
url_field_names = receivedMessage[1]
pos_args = [f"^({'|'.join(url_field_names)}):"]
elif receivedMessage[0] == "otp" and len(receivedMessage) == 2:
opt_args = ["otp"]
key = receivedMessage[1]
Expand Down

0 comments on commit 9836e8d

Please sign in to comment.