mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-10 08:51:39 +00:00
Minor enhancement for beep
This commit is contained in:
@@ -45,6 +45,10 @@ def _win_wav_play(filename):
|
|||||||
winsound.PlaySound(filename, winsound.SND_FILENAME)
|
winsound.PlaySound(filename, winsound.SND_FILENAME)
|
||||||
|
|
||||||
def _linux_wav_play(filename):
|
def _linux_wav_play(filename):
|
||||||
|
for _ in ("aplay", "paplay", "play"):
|
||||||
|
if not os.system("%s '%s' 2>/dev/null" % (_, filename)):
|
||||||
|
return
|
||||||
|
|
||||||
import ctypes
|
import ctypes
|
||||||
|
|
||||||
PA_STREAM_PLAYBACK = 1
|
PA_STREAM_PLAYBACK = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user