Page 1 of 1
Telegram bot for spying cam
Posted: Sun 19 Jun 2016, 09:44
by pri
now there is telegram,
aplication for chating and have many thing todo with it.
creating custom and bot.
i love this bot, i can spying and create spycam based puppylinux.
using puppylinux slacko latest. git, tmux and jason/jq everithing is there on puppy package.
git clone --recursive
https://github.com/topkecleon/telegram-bot-bash
cd telegram-bot-bash
open readme and edit comand,
Posted: Fri 01 Jul 2016, 22:33
by april
Code: Select all
# git clone --recursive https://github.com/topkecleon/telegram-bot-bash
Cloning into 'telegram-bot-bash'...
error: Problem with the SSL CA cert (path? access rights?) while accessing https://github.com
I get this all the time yet I log in etc but it will not work for me.
Do you have this problem?
How do you fix this problem?
Posted: Fri 01 Jul 2016, 22:46
by april
So it seems like just another chat method
How in particular is it useful for a camera as you state? The Readme does not mention it.
pri wrote:
i love this bot, i can spying and create spycam based puppylinux.
modified bash command
Posted: Fri 29 Jul 2016, 06:50
by pri
thats script is made from bash, and bash can do all of linux command like capturing desktop and capture camera then send it back to telegram who command.
litle scrip i made
Posted: Fri 29 Jul 2016, 07:00
by pri
if you already download, you can find script command.sh
find and modified like i do
case $MESSAGE in
'/question')
startproc "./question"
;;
'/capture')
startproc "./capture"
;;
'/printscreen')
startproc "./printscreen"
;;
'/info')
send_markdown_message "${CHAT[ID]}" "This is bashbot, the *Telegram* bot written entirely in *bash*."
;;
'/start')
then made two script capture and printscreen, capture for webcam and print screen for capture desktop.
capture
echo "capture"
avconv -v quiet -f video4linux2 -i /dev/video0 -vframes 1 /tmp/taken.jpeg
echo "tunggu upload"
echo "nu kasep myfilelocationstartshere /tmp/taken.jpeg"
exit
printscreen
echo "capture desktop screen"
sleep 5; xwd -root | xwdtopnm | pnmtopng > /tmp/taken2.png
echo "tunggu upload"
echo "ini yg sedang di lakukan myfilelocationstartshere /tmp/taken2.png"
exit
and replace command avconv with ffmpeg. puppy already have ffmpeg inside. this avconv is usefull if you using debian.
Posted: Fri 29 Jul 2016, 07:07
by pri
for moderator, i will not create any pet here, this is not pet section.
Posted: Sat 30 Jul 2016, 00:47
by april
Thanks . You are very knowledgeable and capable . avconv works straight off so perhaps no need to change it in Puppy Precise 5.7.1.
I played with the script snippets and indeed got a screen capture so I will move on from that .
I don't know about the message bot as yet but indeed a ".pet" here would be interesting and I don't think it is of much importance where it goes . One would think to keep it in this thread would make sense.
Re: litle scrip i made
Posted: Sat 30 Jul 2016, 01:15
by april
I think a pet makes a lot of sense .
Just chasing this down I have needed to clone and compile
libevent (even though there is one in puppy)
tmux
JSON.sh
and I still cant get it to start the server.
Code: Select all
# ./bashbot.sh start
lost server
Tmux session name
#
Re: litle scrip i made
Posted: Mon 31 Oct 2016, 13:09
by pri
april wrote:
and I still cant get it to start the server.
Code: Select all
# ./bashbot.sh start
lost server
Tmux session name
#
use slacko like me.
using othet pupian will risk changed all todo.
already using tmux?
Posted: Fri 04 Nov 2016, 20:38
by april
Hmm I don't like Slako though