forked from TarlogicSecurity/BlueSpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjust_record.py
More file actions
30 lines (25 loc) · 698 Bytes
/
just_record.py
File metadata and controls
30 lines (25 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import argparse
from core import record, BluezTarget
def main():
parser = argparse.ArgumentParser(
prog="Just record",
description="Try to record sound from a bluetooth device using system tools",
)
parser.add_argument(
"-a",
"--target-address",
help="Target device MAC address",
required=True,
dest="address",
)
parser.add_argument(
"-f",
"--file",
help="File to store recorded audio",
dest="outfile",
default="recording.wav",
)
args = parser.parse_args()
record(BluezTarget(args.address), outfile=args.outfile, verbose=True)
if __name__ == "__main__":
main()