with Firmalyzer IoTVAS API and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
Firmalyzer IoTVAS API provides a platform for assessing the security of IoT devices. By using this API, you can automate the analysis of firmware, uncover vulnerabilities, check for outdated software, and verify compliance with security standards. Integrating Firmalyzer with Pipedream allows for the seamless incorporation of IoT security checks into broader automation workflows, which can facilitate continuous monitoring, alerting, and reporting within your infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
firmalyzer_iotvas: {
type: "app",
app: "firmalyzer_iotvas",
}
},
async run({steps, $}) {
const data = {
"snmp_sysdescr": ``,
"ftp_banner": `AXIS P3346 Fixed Dome Network Camera 5.20 (2017) ready.`,
"telnet_banner": ``,
"hostname": ``,
"http_response": ``,
"https_response": ``,
"upnp_response": ``,
"nic_mac": ``,
}
return await axios($, {
method: "post",
url: `https://iotvas-api.firmalyzer.com/api/v1/device/detect`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
"x-api-key": `${this.firmalyzer_iotvas.$auth.api_key}`,
},
data,
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})