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
  1. Home
  2. General Programming
  3. C#
  4. Auto serial software

Auto serial software

Scheduled Pinned Locked Moved C#
visual-studioquestion
4 Posts 2 Posters 0 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.
  • O Offline
    O Offline
    ostad_mrn
    wrote on last edited by
    #1

    hi, as i told in recent post, i need to a way to place generated serial number into my application. but i build my application using msbuild, bcoz of dynammic build i cant change the source code to place serial number in it, is there any way to place serial number of software without changing source code manually??? or a way to define serial of software? note: I need this serial number to be checked in my hardlock validation routine!

    realJSOPR 1 Reply Last reply
    0
    • O ostad_mrn

      hi, as i told in recent post, i need to a way to place generated serial number into my application. but i build my application using msbuild, bcoz of dynammic build i cant change the source code to place serial number in it, is there any way to place serial number of software without changing source code manually??? or a way to define serial of software? note: I need this serial number to be checked in my hardlock validation routine!

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      Well, you could write a utility to patch the executable, but what about obfuscation? Are you going to obfuscate your code? If so (and believe me you should), you have to do it AFTER you patch the exe because (decent) obfuscation utilities typically encrypt strings.

      .45 ACP - because shooting twice is just silly
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

      O 1 Reply Last reply
      0
      • realJSOPR realJSOP

        Well, you could write a utility to patch the executable, but what about obfuscation? Are you going to obfuscate your code? If so (and believe me you should), you have to do it AFTER you patch the exe because (decent) obfuscation utilities typically encrypt strings.

        .45 ACP - because shooting twice is just silly
        -----
        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

        O Offline
        O Offline
        ostad_mrn
        wrote on last edited by
        #3

        thanx for ur answer! u mean there isn't any way to add serial number to software? could u explain how obfuscate my code?

        realJSOPR 1 Reply Last reply
        0
        • O ostad_mrn

          thanx for ur answer! u mean there isn't any way to add serial number to software? could u explain how obfuscate my code?

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #4

          I figured you didn't want to spend the money on a commercial solution. Obfuscation makes it difficult/impossible to reverse engineer your code (which is easy to do on a .net assembly). Google ".Net Obfuscation tools" to find a list of viable candidates. BTW, Visual Studio comes with an obfuscation tool, but it's so featureless as to be completely worthless. You have to actually spend money on a 3rd party product, and this can cost from $150 to THOUSANDS of dollars. If your app written in WPF or Silverlight, there's only one obfuscator that can obfuscate it, but I don't remember what the name of it is. As far as a serial number tool, you may be able to find one that can work on obfuscated assemblies, but I dont' know. Again, google is your friend.

          .45 ACP - because shooting twice is just silly
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

          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