Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to create a payload

How to create a payload

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
8 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    that_dude_tj
    wrote on last edited by
    #1

    Wanting to know how to create payload as a block of binary data for DNS packet. I have something in C but i was looking to increase the payload size. (test purposes)

    B 1 Reply Last reply
    0
    • T that_dude_tj

      Wanting to know how to create payload as a block of binary data for DNS packet. I have something in C but i was looking to increase the payload size. (test purposes)

      B Offline
      B Offline
      Bacon Ultimate Cheeseburger
      wrote on last edited by
      #2

      char *buffer;
      buffer = new char[bufferSize + extraSize];
      // ... fill the payload buffer with data here ...

      // ... append extra payload here ...

      // send the payload.
      sendto(socket, buffer, bufferSize + extraSize, flags, &destAddr, destaddrSize);

      1300 calories of pure beef goodness can't be wrong!

      T 1 Reply Last reply
      0
      • B Bacon Ultimate Cheeseburger

        char *buffer;
        buffer = new char[bufferSize + extraSize];
        // ... fill the payload buffer with data here ...

        // ... append extra payload here ...

        // send the payload.
        sendto(socket, buffer, bufferSize + extraSize, flags, &destAddr, destaddrSize);

        1300 calories of pure beef goodness can't be wrong!

        T Offline
        T Offline
        that_dude_tj
        wrote on last edited by
        #3

        im using Nemesis DNS generator so im going to call the file to be used and within the file are only datatype and i use the %c and %s to identify dateype when formatting the output fp = fopen ("datafilename.dns"), "w"); fprintf(fp, "%c%c%c%c, 0x00, 0x01 ") fprintf(fp,"%c%s, 0x03, "www"); etc...... fclose(fp); your code may do the same but i am not a strong programmer and was wonder if you could explain if you code does what this does and point me to some reading material

        B 1 Reply Last reply
        0
        • T that_dude_tj

          im using Nemesis DNS generator so im going to call the file to be used and within the file are only datatype and i use the %c and %s to identify dateype when formatting the output fp = fopen ("datafilename.dns"), "w"); fprintf(fp, "%c%c%c%c, 0x00, 0x01 ") fprintf(fp,"%c%s, 0x03, "www"); etc...... fclose(fp); your code may do the same but i am not a strong programmer and was wonder if you could explain if you code does what this does and point me to some reading material

          B Offline
          B Offline
          Bacon Ultimate Cheeseburger
          wrote on last edited by
          #4

          Sorry but I am not in the habit of helping people craft packets used for DNS amplification attacks. Reference to your other post concerning this issue. http://www.networkdictionary.com/ask/guy-tj/i-am-college-student-trying-use-nemesis-dns-mimic-dns-amplication-attack[^]

          1300 calories of pure beef goodness can't be wrong!

          T 3 Replies Last reply
          0
          • B Bacon Ultimate Cheeseburger

            Sorry but I am not in the habit of helping people craft packets used for DNS amplification attacks. Reference to your other post concerning this issue. http://www.networkdictionary.com/ask/guy-tj/i-am-college-student-trying-use-nemesis-dns-mimic-dns-amplication-attack[^]

            1300 calories of pure beef goodness can't be wrong!

            T Offline
            T Offline
            that_dude_tj
            wrote on last edited by
            #5

            its for a school project

            1 Reply Last reply
            0
            • B Bacon Ultimate Cheeseburger

              Sorry but I am not in the habit of helping people craft packets used for DNS amplification attacks. Reference to your other post concerning this issue. http://www.networkdictionary.com/ask/guy-tj/i-am-college-student-trying-use-nemesis-dns-mimic-dns-amplication-attack[^]

              1300 calories of pure beef goodness can't be wrong!

              T Offline
              T Offline
              that_dude_tj
              wrote on last edited by
              #6

              but like i said, i already created the attack now im trying to generate a bigger one so i will be able to prevent it. you know the gov. created a company who's sole purpose is internet security so i understand that u may think i want this knowledge for ill usage.

              T 1 Reply Last reply
              0
              • B Bacon Ultimate Cheeseburger

                Sorry but I am not in the habit of helping people craft packets used for DNS amplification attacks. Reference to your other post concerning this issue. http://www.networkdictionary.com/ask/guy-tj/i-am-college-student-trying-use-nemesis-dns-mimic-dns-amplication-attack[^]

                1300 calories of pure beef goodness can't be wrong!

                T Offline
                T Offline
                that_dude_tj
                wrote on last edited by
                #7

                but i will create an algorithm which will solve this problem so remember my user name(s)

                1 Reply Last reply
                0
                • T that_dude_tj

                  but like i said, i already created the attack now im trying to generate a bigger one so i will be able to prevent it. you know the gov. created a company who's sole purpose is internet security so i understand that u may think i want this knowledge for ill usage.

                  T Offline
                  T Offline
                  that_dude_tj
                  wrote on last edited by
                  #8

                  but i will create an algorithm which will solve this problem so remember my user name(s)

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups