Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Python library to control LG webOS based TV devices.
Based on:
aiopylgtv
library at https://github.com/bendavid/aiopylgtvbscpylgtv
library at https://github.com/chros73/bscpylgtvpip install aiowebostv
Run the following command inside this folder
pip install --upgrade .
import asyncio
from aiowebostv import WebOsClient
HOST = "192.168.1.39"
# For first time pairing set key to None
CLIENT_KEY = "140cce792ae045920e14da4daa414582"
async def main():
"""Basic webOS client example."""
client = WebOsClient(HOST, CLIENT_KEY)
await client.connect()
# Store this key for future use
print(f"Client key: {client.client_key}")
apps = await client.get_apps_all()
for app in apps:
print(app)
await client.disconnect()
if __name__ == "__main__":
asyncio.run(main())
import asyncio
from aiowebostv import WebOsClient
HOST = "192.168.1.39"
# For first time pairing set key to None
CLIENT_KEY = "140cce792ae045920e14da4daa414582"
async def on_state_change(client):
"""State changed callback."""
print("State changed:")
print(f"System info: {client.system_info}")
print(f"Software info: {client.software_info}")
print(f"Hello info: {client.hello_info}")
print(f"Channel info: {client.channel_info}")
print(f"Apps: {client.apps}")
print(f"Inputs: {client.inputs}")
print(f"Powered on: {client.power_state}")
print(f"App Id: {client.current_app_id}")
print(f"Channels: {client.channels}")
print(f"Current channel: {client.current_channel}")
print(f"Muted: {client.muted}")
print(f"Volume: {client.volume}")
print(f"Sound output: {client.sound_output}")
async def main():
"""Subscribed State Updates Example."""
client = WebOsClient(HOST, CLIENT_KEY)
await client.register_state_update_callback(on_state_change)
await client.connect()
# Store this key for future use
print(f"Client key: {client.client_key}")
# Change something using the remote during sleep period to get updates
await asyncio.sleep(30)
await client.disconnect()
if __name__ == "__main__":
asyncio.run(main())
Examples can be found in the examples
folder
FAQs
Library to control webOS based LG TV devices
We found that aiowebostv demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.