Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Yet another Selenium WebDriver library for Node...
(Warning: This is a design doc... There's no code, yet! But when it lands, it'll most likely be based on webdriver-http-sync.
npm install 34
Driver = require('34').Driver
se = new Driver()
// Navigation
// ----------
// Open a URL
se.url = 'http://google.com'
se.open = function(url) { return this.url = url }
se.go = se.open
se.back()
se.forward()
se.refresh()
// Close current window
se.close()
// End current session
se.quit()
// Frame Navigation
// Switch focus to frame
se('#IdOfSomeFrame').focus()
// Switch focus to parent frame
se.parent()
// Window Navigation
// Switch focus to window
se.window('nameOfWindow')
// Interrogation
// -------------
// Driver
se.url
se.title
se.source
// Server status
se.status
// Id of current session
se.session
// List of all sesions
se.sessions
// Handle id of current window
se.window
// List of all window handle ids
se.windows
// Id of active (focused) element
se.activeElement
// Find Element
e = se('#id')
// Find All elements
es = se('*[#id]')
// By name:
se('[name="theName"]')
// By id:
se('#theId')
// By tag name:
// all links
se('a')
// Element
e.attribute('name')
e.css('propname')
e.displayed
e.enabled
e.location
e.locationInView
e.name
e.selected
e.size
e.tag
e.text
// Find child element
e.find('#id')
// Find all child elements
e.find('#id')
// Alerts
se.alert.text
// Manipulation
// ------------
// Driver
// Keyboard
se.keys()
se.keyDown()
se.keyUp()
// Mouse
se.mouse.click()
se.mouse.doubleClick()
se.mouse.down()
se.mouse.moveBy(20,100)
se.mouse.moveTo(0,0
se.mouse.up()
// Slim Jim (https://www.youtube.com/watch?v=KbneMYYI78Q)
se.touch.down()
se.touch.move()
se.touch.tap()
se.touch.up()
// Execute JavaScript
se.execute()
se.executeAsync()
// Take a Screenshot
se.screenshot()
// Element
e.clear()
e.click()
e.keys()
e.submit()
// Alerts
se.alert.accept()
se.alert.dismiss()
se.alert.focus()
se.alert.keys()
// Feng Shui
// ---------
// Get size of current window
se.size
// Set size of current window
se.size = [200, 200]
// Get position of current window
se.position
// Get position of current window
se.position = [200,200]
// Maximize size of current window
se.maximize()
// (For mobile...)
se.orientation
se.orientation = LANDSCAPE
se.orientation = PORTRAIT
// Synchronisation
// ---------------
se.timeouts.implicitWait = 10000
se.timeouts.pageLoad = 10000
se.timeouts.asyncScript = 10000
FAQs
Yet another Selenium WebDriver library
The npm package 34 receives a total of 7 weekly downloads. As such, 34 popularity was classified as not popular.
We found that 34 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.