Thursday, January 7, 2016

PowerShell: Funny Tech Support Excuse Website

Jeff Ballard created a funny website titled "The Bastard Operator From Hell Style Excuse Server." We can use his funny tech support responses for our own purposes by extracting them from his site and adding them to our PowerShell script. Here's a snippet that'll create a string variable for your use:

$url = 'http://pages.cs.wisc.edu/~ballard/bofh/bofhserver.pl'
$excuse = ((Invoke-webrequest $url).parsedhtml.getelementsbytagname('font')|select -expandproperty outertext)[-1]

Here's a few $excuse samples:
  • asynchronous inode failure
  • Interference between the keyboard and the chair.
  • HTTPD Error 666 : BOFH was here
  • radiosity depletion
Now you'll have some great excuses to reply back with while you're working on the real problem.


No comments: