Code Monkey home page Code Monkey logo

python-yatwin's Introduction

python-yatwin

Python 3 API for Vstarcam and YATWIN IP Cameras (Windows)

Vstarcam C24H Black 720P WiFi IP Camera

Cameras Tested

Camera Link
C24H Black 720P WiFi IP Camera http://www.yatwintech.com/Products-list-detail.html?product_id=56
Vstarcam C7824WIP-Plus 720P https://www.vstarcam.com.sg/Smart-IP-Cameras/Indoor/C7824WIP-Plus
Vstarcam C24S-Plus FullHD 1080P Wide Angle Camera https://www.vstarcam.com.sg/Smart-IP-Cameras/Indoor/Vstarcam-C24S-Plus-FullHD-1080P-Wide-Angle-Camera

Installation

First, download and install wheel from: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio (pip install path_to_wheel)

pip install .

Getting Started

>>> import yatwin.scripts
>>>
>>> # Scan network and hack any cameras it finds
>>> cams = yatwin.scripts.hack_cameras()
>>> cams
[<BaseHackedYatwin
(
	http:      <Http(admin:888888@192.168.1.223:80)>
	icmp:      <Icmp(192.168.1.223)>
	onvif:     <Onvif(admin:888888@192.168.1.223:10080)>
	telnet:    <Telnet(vstarcam2017:20170912@192.168.1.223:23)>
	ftp:       None
	multicast: <Multicast()>
	imap:      None
	rtsp:      <Rtsp(admin:888888@192.168.1.223:10554)[udp/av1_0]>
)>]
>>>
>>> # Pick the first camera
>>> cam = cams[0]
>>> 
>>> # Access the cameras Telnet interface
>>> cam.telnet
<Telnet(vstarcam2017:20170912@192.168.1.223:23)>
>>> print(cam.telnet.ls())
bin            init           mknod_console  root           tmp
boot           lib            mnt            sbin           usr
dev            linuxrc        nfsroot        share          var
etc            lost+found     opt            sys
home           mkimg.rootfs   proc           system
>>>
>>> from pprint import pprint
>>>
>>> # Get the cameras RTSP parameters using HTTP
>>> pprint(cam.http.get_rtsp())
{<SystemParam(rtspport)>: 10554,
 <SystemParam(rtsppwd)>: '888888',
 <SystemParam(rtspuser)>: 'admin',
 <SystemParam(rtsp_auth_enable)>: 1}
>>> 

Helpful Libraries

Name Link
python-onvif-zeep https://github.com/FalkTannhaeuser/python-onvif-zeep
Requests https://github.com/requests/requests
vlc-python https://github.com/geoffsalmon/vlc-python
Beautiful Soup https://www.crummy.com/software/BeautifulSoup/
python-ws-discovery https://github.com/andreikop/python-ws-discovery
pyffmpeg https://github.com/mhaller/pyffmpeg
python-nmap https://xael.org/pages/python-nmap-en.html
OpenCV https://opencv.org/

Helpful Resources

Name Resource
Pierre Kim https://pierrekim.github.io/blog/2017-03-08-camera-goahead-0day.html
4dpa.ru https://4pda.ru/forum/lofiversion/index.php?t782299.html
David Lodge https://www.pentestpartners.com/security-blog/hacking-the-ip-camera-part-1/
Z https://jumpespjump.blogspot.com/2015/09/how-i-hacked-my-ip-camera-and-found.html

python-yatwin's People

Contributors

tombulled avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-yatwin's Issues

install errors on windows

Hi,
can you give me some info about the python versions you are using? I tried to get it to work on my Win10 x64 native installing python 2.7 and 3.9, and also using python 2 and 3 in cygwin without luck (the installation always got stuck at a certain point).

Actually I wanted to get it running on Unix or Mac, but it seems to heavily use Windows specific libraries...
Best

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.