I'm not using puppeteer, node module to make chromium take screen shots for recon. On the Kali Linux box I had to run this command, to enable user namespace cloning in the kernel:
sudo sysctl -w kernel.unprivileged_userns_clone=1
This worked!, at the least it got rid of the errors. So here is the
example program for puppeteer, where you can save it as example.js and
run it with node example.js
:
const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.setViewport({ width:1200, height: 3200, deviceScaleFactor: 1, }); await page.goto('https://example.com'); await page.screenshot({path: 'example.png'}); await browser.close(); })();
And it makes a png called example.png in the box, where I should then be able to copy it to keybase or, post it on my webpage.
Here is the PDF way:
const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://news.ycombinator.com', {waitUntil: 'networkidle2'}); await page.pdf({path: 'hn.pdf', format: 'A4'}); await browser.close(); })();
Here is some of the API docs for puppeteer: https://pptr.dev/
Webscreenshot blurb is below in this file.
sudo setup/setup.sh
eyewitness -f ~/hack/ecobee.com/domains.txt --web --prepend-https -d ~/hack/ecobee.com/eye/ --no-prompt
webscreenshot -i domains.list -w 8 --no-xserver