aspx file content replaced by whitespace characters, Is there anyway to recover aspx files? [closed] - asp.net

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I was working on some aspx page, and suddenly my system was crashed, when I rebooted my system, file was there, but when I opened that file from solution explorer, file content was replaced by some whitespace characters,and opened in notepad file. I have checked its size and it was around 31 kb.
Is there any way to recover its content ? its around 4-5 days of my work

I faced the same problem with a file today and overcame it successfully. :D
Felt freaking heavenly after getting my file back ... :D \m/ :D
Here is the solution. Actually, there can be two types of solution of recovering corrupted files I found.
Scenario: Your file is corrupted (ie. null or space everywhere in the file while the size is ok)
Solution #1: Using file recovery software.
File recovery softwares can recover a file when it is already deleted.
In our scenario, your file is not deleted but corrupted. So how to use
the software in this case!!!!
Just delete your file
Try to recover your deleted files with popular file recovery softwares
And voila ... it is recovered ... :D
The recovery software I used is Recuva. Worked perfectly.
Solution #2: If its a web content, like CSS/Javascript/html etc.
You can collect the last working copy of the file from browser cache,
IF and ONLY IF you hadn't opened the corrupted webpage in that brower.
The thought that help me finding the first solution is from
Mark Twain - "Never argue with stupid people, they will drag you down to their level and then beat you with experience."
While I was thinking how to use this recovery software, I thought about this quote and said myself "LETS DRAG THE FILE DOWN TO THE LEVEL, WHERE RECOVERY SOFTWARE CAN RECOVER" ... :D

I'm assuming you do not have backups or svn/git repositories or the last resource like the shadow copies.
I guess your best bet is by using some file recovery tools like OnTrack or Recuva

Related

Big Dum-Dum; Failing to create my own server [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 16 hours ago.
Improve this question
Please excuse my complete lack of technical expertise, however I do hope someone might be able to point me back in the right direction.
I'm following the installation guide and this is where I'm at: https://www.azerothcore.org/wiki/server-setup#updating-datadir
I've downloaded the client data as per recommended ('Download' sub-title) and I seem to be stuck at: "4. Edit your the DataDir config option to the location of your folder."
I simply cannot find the "worldserver.conf" file. As instead I can only find a .DIST file (worldserver.conf.dist) located in: C:\Build\bin\RelWithDebInfo\configs
In here also contains: authserver.conf.dist and dbimport.conf.dist
As a result of my own ignorance I decided to simply copy these files creating anew, but this time named "worldserver.conf","authserver.conf" etc, editing both the original and the copy to contain the DataDir, in this case: C:\Build\bin\RelWithDebInfo\Data
Having not got very far already and this not being the first time I seem to have failed to follow the instructions without confusing myself, I moved onto the next step, Database Installation (https://www.azerothcore.org/wiki/database-installation).
I opened MySQL 8.0 Command Line Client, entered my password I had created in the earlier steps and then right-clicked to paste the text I had copied from (https://github.com/azerothcore/azerothcore-wotlk/blob/master/data/sql/create/create_mysql.sql)
It did something... Now realising I might be completely and utterly useless on a computer, I proceeded to the next step: Networking (https://www.azerothcore.org/wiki/networking)
After opening HeidiSQL, the acore_auth database has nothing in it, no realmlist, nada.
I certainly don't want to have my hand held and waste anyone's time, but I'm concerned now that if I can't do this, I'm sure at s*** not going to be able to create the Single/Local Network 2-person server I'd hoped for with PlayerBots, Transmog and AH bot.
Whilst I'm sure many of you will laugh at my appalling attempt to create and config my own server, should any of you spot the error(s) I'm making, I'd be extremely grateful for some assistance. Alternatively, I feel I might be whipping out the old computer to download a repack and hope for the best that I don't get flooded with malware
Programs I downloaded:
Git Extensions
Visual Studio (17) Community 2022
MySQL 8.0 (basically the whole thing from the installer: https://dev.mysql.com/downloads/windows/installer/8.0.html)
HeidiSQL
cmake-3.26.0-rc3-windows-x86_64 (realising now that I downloaded the RC version like an idiot, however I'm not sure why it's important?)
Win64 OpenSSL v3.0.8
Boost (64bit)

How to block users from viewing the .CSS [duplicate]

This question already has answers here:
What are some good ways to prevent people from copying my source code? [closed]
(9 answers)
Closed 8 years ago.
Well, as the title is saying. I am trying to block users from viewing my .CSS file, it's for now still on localhost because i need to script the whole CSS.
The web-directory link is web-content/app/css/wubbo.CSS, but i don't want users to view it but i want the web-page layout still showing. (I hate people who rip my layout.
Is there any possibility to do this? I run my webserver on IIS 8.0 with Coldfusion 10.
You cannot keep someone from viewing your CSS; however, you can minify your CSS which makes it harder to read, and gives you the added performance boost by shrinking the size of your CSS. I would recommend miniifying your code when deploying to your test and production environments, keeping your local and/or devlopment environments non-minified helps you debug your code quicker.
There are online tools that allow you to minify your CSS manually, or you can automate the process of minifying it with tools like grunt and gulp.

Matching ASP.NET source code to a compiled web application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
My client has a compiled ASP.NET 2.0 application that was compiled & deployed a year ago. They also have 4 versions of source code projects/solutions not under source control (stored on previous developer's workstation file system). None of the file dates appear to match one another.
Is there any way to determine which (if any) of those versions is the one actually deployed to the production web site?
I've done this on client projects multiple times and use Reflector, like other commentors. This kind of thing happens more often than it should. For instance, when someone leaves the development team suddenly. On one project, my team of contractors was called in after the ENTIRE development team left and we had to follow this procedure on every single piece of code running in production to be sure of what we actually had on our hands.
The way I deal with it is this by taking EVERY version of the compiled code that's available into a separate area in the filesystem. This includes the version that's in source control or off of the development workstation. This is important because Reflector sees the IL and not the actual original source, and you want to compare apples to apples.
I use the FileDisassembler for Reflector to decompile each of the binaries into a separate folder. I end up with a structure that looks something like this:
ProjectXyzReconciliation
|-production
|-staging
|-test
|-qa
|-devworkstation
|-sourcecontrol
|-reconciled (this is what will eventually go back in source control)
I then use WinMerge (but have used other merge/comparison tools equally well) to compare the directories and merge them into the "reconciled" folder. I usually populate that with what's running in production to start with and compare every other version against it.
The first pass is really just to see what's different and decompiling out to files lets you use tools like WinMerge to get reports of what's actually different for making decisions.
Sometimes, this process yields one or 2 changes that are easily traceable to bugs in the bug tracking database or emails, etc. and decisions can be made as to whether it should go in or stay out for further work.
When every difference is explained and either merged or rejected for later re-work or removal, the newly reconciled code is used as the new base for future development and refactoring. This does lose any comments that were in the code, but when this whole procedure has been necessary, the losing the comments hasn't been much of a loss to be frank.
The first time through, this can seem daunting, but members of my teams that have gotten good at this have found that on later projects, they can often seem the hero for being able to seemingly accomplish the impossible when a nasty situation arises, making it worthwhile to get this into your toolbox.
If I were in your situation, I would compile each of the 4 separate source projects one at a time... Then run the diff add-in for .NET Reflector to see if you have a match with the production assembly. If not, compile the next source project and try the diff again.
If your project directories contain build artifacts such as DLLs and EXEs, you could check the version numbers and compare with those in production. Even if you don't get an exact match, you'll see what might be closest.
.NET Reflector is a handy tool to see what code is being in use at a given server.

Open Source Image Hosting or File Sharing website in ASP.NET [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I would like to know if there are any free open source or paid software for hosting images (like tinypic.com imageshack.us) or file sharing (4shared.com or rapidshare.com) developed in ASP.NET.
And If I have to develop the same, how do I remove the 2 gb limit on upload in IIS?
This question contains both programming as well as non programming question.
Any help appreciated.
xigla is an ASP.NET solution for a rapid share site.
Another link aggregation site with promising links.
Sharepoint is very good too.
Nuke Transfer is a file sharing module for DotNetNuke.
For most of these solutions the file size limit is from the actual IIS config not from the software. Chris Bunk describes a method for modifying IIS config to allow uploads bigger than 2 gigabytes.
I'd recommend Amazon S3. It has a webservice interface which should be usable in ASP though I have no experience with that. It is very reasonably priced, very stable, and the webservice is rock solid once you get it working.
I'm pretty sure that SkyDrive uses ASP.NET but it's not open source.
You probably will need to create some sort of external program (.Net, Java or Flash) to upload files larger than 2 GB. Alternatively, you can create browser extension.
You cannot upload a file that is larger than 2 GB. If you want to upload files that total more than 2 GB, separate the files, and then upload them in batches that are less than 2 GB.
Please note that browsers has a 2GB limit as well. http://www.motobit.com/help/scptutl/pa98.htm
If you 'really' need over 2GB file upload http facility, I would suggest to create an OCX component or an application, which split file internally before uploading to server.
I was able to find 2 sites for you
ASP.net Image galleries has a list of open source scripts for image management
I-Load
The upload sie is not programming related as others said.
I've tested out Gallery Server Pro before. It's a very nice image gallery solution with loads of built in functionality. It's also capable of hosting thousands of images, the only real limitation is the hard disk you have it sitting on.
But the 2gb limit is from the server side as already mentioned.
I've used Gallery - an open source web based photo album organizer. You can have as many Galleries as you want on your web server and each gallery can contain as many photo albums as you want.

Flex / Air obfuscation [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I've written (most of) an application in Flex and I am concerned with protecting the source code. I fired up a demo of Trillix swf decompiler and opened up the swf file that was installed to my Program Files directory. I saw that all of the actionscript packages I wrote were there. I'm not too concerned with the packages, even though there is a substantial amount of code, because it still seems pretty unusable without the mxml files. I think they are converted to actionscript, or atleast I hope. However, I would still like to explore obfuscation.
Does anyone have any experience with Flash / Actionscript 3 / Flex obfuscators? Can you recommend a good product?
The procedure suggested by maclema will not really stop any attacker from obtaining the source - the "wrapper application" will need to be unencrypted so the attacker will be able to find out that you use AES (or any other algorithm) and he will obtain the decryption key in a similar way (because it needs to be in plaintext somewhere). Once he has this, he will be able to decrypt your SWF file easily.
The only reliable solution (well...) is some kind of obfuscator - we use Amayeta which works for Flex in the latest version - please see http://www.amayeta.com/software/swfencrypt/ .
Here's what I would do.
Compile your application to a SWF file. Then encrypt the SWF using AES.
Make a "wrapper" application that loads the encrypted SWF into a ByteArray using URLLoader
Use the as3crypto library to decrypt the swf at runtime.
Once decrypted, use Loader.loadBytes to load the decrypted swf into the wrapper application.
This will make it a lot harder to get your code. Not impossible, but harder.
For AIR applications you could leave the SWF encrypted when delivering the application to the end-user. Then you could provide a registration key that contains the key used to decrypt the SWF.
Also, here is a link to an AS3 obfuscator. I am not sure how well it works though.
http://www.ambiera.com/irrfuscator/index.html
Well, in my opinion, the easiest and safest solution is a mix of maclema and Borek answer:
Obfuscating code can be a big headach if you did not include it in your process from the start and if your aplplication is quite big: it's likely that obfuscation make your application corrupted if you used remote packages (and did not declare this to the obfuscator) if you used to many unTyped variables in Objects or dynamic classes ....
So: if you do maclema's solution on your big application and use obfuscation on your wrapper (which is a small app likely to be very easy to obfuscate) you're code will be the safest and the hasle the least.
Only a very angry pirate would take the time to reverse engineer the obfuscation to then decrypt the package .... Well if someone wants your application code soo bad it's either CIA related or you're already very rich (or both)
thank you all for your answers
I recently released an iOS and Android game using Flash. I looked around the internet for a good free program to protect the source code in my SWF and couldn't find anything so I wrote one. It's still in development and it's "use at your own risk" but it worked for me.
It's released on github. Check it out and let me know what you think.
https://github.com/Teesquared/flasturbate
I uploaded a windows binary but I recommend you follow the instructions to build it yourself if you want to give it a try.
This obfuscator works directly on the SWF file. It currently only renames symbols but it is built on a framework that could support altering bytecodes in the future.

Resources