
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
lg-netcast
Advanced tools
Netcast client written in js/ts
npm install lg-netcast
Initialize the client with the API host. By default the port is :8080
, make sure you add that to your API_HOST
Get current channel information
const client = new NetcastClient(API_HOST);
client.get_session(access_token).then(async (session_id) => {
const cur_channel = await client.get_current_channel(session_id);
console.log(cur_channel);
});
Check the API docs for general usage on this package
To interact with the TV, you need a valid access_token
. The access token is actually just the pair code of the TV, you can get that with client.display_pair_code()
.
This package comes with a very simple CLI to query TV information
Usage: netcast-cli [options]
Options:
--host: Host of the TV
(default: "192.168.1.1:8080")
--access_token: Pair code of the TV
(default: "123456")
(an integer)
--command: command to issue
(default: "current_channel")
❯ netcast-cli --host 192.168.1.14:8080 --access_token 1234567
Querying current channel
{
chtype: 'satellite',
sourceIndex: '7',
physicalNum: '265',
major: '200',
displayMajor: '200',
minor: '65535',
displayMinor: '-1',
chname: 'スターチャンネル1',
progName: 'エスケープ・ルーム(2019)',
audioCh: '0',
inputSourceName: 'TV',
inputSourceType: '0',
labelName: {},
inputSourceIdx: '0'
}
MIT
FAQs
Node package to interact with LG netcast TVs (2012, 2013)
The npm package lg-netcast receives a total of 5 weekly downloads. As such, lg-netcast popularity was classified as not popular.
We found that lg-netcast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.