-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
d3v4s
committed
Dec 28, 2019
1 parent
add99a4
commit f157eca
Showing
8 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
MITMOXY="$0" | ||
|
||
while [ -h "$MITMOXY" ] ; do | ||
ls=$(ls -ld "$MITMOXY") | ||
link=$(expr "$ls" : '.*-> \(.*\)$') | ||
if expr "$link" : '/.*' > /dev/null; then | ||
MITMOXY="$link" | ||
else | ||
MITMOXY=$(dirname "$MITMOXY")/"$link" | ||
fi | ||
done | ||
|
||
MITMOXY=$(dirname "$MITMOXY") | ||
|
||
cd "$MITMOXY" && ./mitmoxy.py "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Bitoxy completions script | ||
# Mitmoxy completions script | ||
|
||
_bitoxy_completions() { | ||
_mitmoxy_completions() { | ||
if [ "${#COMP_WORDS[@]}" != "2" ]; then | ||
return | ||
fi | ||
COMPREPLY=($(compgen -W "start version help" -- "${COMP_WORDS[1]}")) | ||
} | ||
|
||
complete -F _bitoxy_completions bitoxy | ||
complete -F _mitmoxy_completions mitmoxy |
4 changes: 2 additions & 2 deletions
4
template/systemd/bitoxy.service → template/systemd/mitmoxy.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters