
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
TimelineNetworkUtility-zzenlightenzz
Advanced tools
This is a small library that composing of Timeline and Network utility function.
A TimelineNetworkUtility is a small library that composing of Timeline and Network utility function. The timeline can help to manage the execution step of function. The useful of timeline is to help the embedded device to handle the sequence of the data reading from sensor. Which prevented the exceeding of reading speed limit of the hardware. The network utility provided the simple to use of some network function. Which include normal POST, base64 image POST, and client listening (SSE).
import TimelineNetworkUtility as STLS
import _thread as thread
def interval_time():
pass;
def off_able():
print('excute off_able');
STLS.StepEnable("off_able", False);
def sensor1_read():
print('read sensor1 data');
def sensor2_read():
print('read sensor2 data');
def sensor_post():
BodyP = {
'data': 'post data'
};
status, data = STLS.SendPOST(BodyP, ServerIP + ":" + ServerPORT, "/PostData.php");
time = 15.0; # seconds
off_able_enable = True;
if not off_able_enable:
STLS.ChangeStepTime("interval_time", round(time*10/2));
else:
STLS.StepEnable("off_able", True);
def image_post():
BodyP = {
"base64_image": base64_image
};
status, res = STLS.SendPOSTImage(BodyP, ServerIP + ":" + ServerPORT, "/PostImage.php");
def listen_to_server(thread_name, delay):
try:
STLS.StartPYTHONListen(ServerIP, ServerPORT, image_post, "/PythonListen.php");
except KeyboardInterrupt:
print("^C received, shutting down the listen");
try:
thread.start_new_thread( listen_to_server, ("Thread-2", 2, ) );
except:
print("Error: unable to start listen thread");
STLS.AddStep("interval_time", 25, interval_time, True);
STLS.AddStep("sensor1_read", 1, sensor1_read, True);
STLS.AddStep("sensor2_read", 1, sensor2_read, True);
STLS.AddStep("sensor_post", 1, LocalOperate, True);
STLS.AddStep("off_able", 30, off_able, False);
STLS.AddStep("interval_time", 25, interval_time, True);
STLS.EnableLoop(True);
STLS.Start();
STLS.Run();
FAQs
This is a small library that composing of Timeline and Network utility function.
We found that TimelineNetworkUtility-zzenlightenzz demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.