mirror of
https://github.com/radareorg/radare.git
synced 2026-11-07 17:48:05 -10:00
--HG-- rename : scripts/anal.lua => api/lua/anal.lua rename : scripts/fuzzer-loop.lua => api/lua/fuzzer-loop.lua rename : scripts/fuzzer-target.c => api/lua/fuzzer-target.c rename : scripts/opcleaner.lua => api/lua/opcleaner.lua rename : scripts/lua/posix/Makefile => api/lua/posix/Makefile rename : scripts/lua/posix/modemuncher.c => api/lua/posix/modemuncher.c rename : scripts/lua/posix/posix.c => api/lua/posix/posix.c rename : scripts/pushpop.lua => api/lua/pushpop.lua rename : scripts/search-demo.lua => api/lua/search-demo.lua rename : scripts/vozme.lua => api/lua/vozme.lua rename : scripts/rscript.pl => api/perl/rscript.pl rename : scripts/radapy_bochs.py => api/python/bochs.py rename : scripts/radapy_client.py => api/python/client.py rename : scripts/example.py => api/python/example.py rename : scripts/standalone.py => api/python/standalone.py
35 lines
871 B
Lua
35 lines
871 B
Lua
-- vozme.lua
|
|
--
|
|
-- author: pancake<youterm.com>
|
|
--
|
|
-- lua/radare script to read (using vozme web service) opcodes from current seek
|
|
--
|
|
-- nicely for blind reversing. i did it for the lulz
|
|
--
|
|
|
|
require 'posix'
|
|
|
|
lang="es"
|
|
n_opcodes = 4
|
|
url="vozme.com/text2voice.php?lang="..lang
|
|
|
|
function play(text, bg)
|
|
if bg then bg = "&" else bg="" end
|
|
if text == "" then return end
|
|
os.execute("mplayer -quiet -msglevel all=0 "..text.." > /dev/null 2>&1"..bg)
|
|
print("mplayer -quiet -msglevel all=0 "..text.." > /dev/null 2>&1"..bg)
|
|
end
|
|
|
|
function play_queue(str, text)
|
|
return str.."`curl -s -d \"text="..chop(text).."\" "..url.." | grep 'mp3\"' | cut -d '\"' -f 2` "
|
|
end
|
|
|
|
-- opcode player
|
|
|
|
Radare.Config.verbose(0)
|
|
local lines = split(Radare.Print.dis(n_opcodes),'\n')
|
|
local str = ""
|
|
for i = 1, #lines do str = play_queue(str, lines[i]) end
|
|
play(str, true)
|
|
Radare.Config.verbose(3)
|