Showing posts with label Windows.Developer. Show all posts
Showing posts with label Windows.Developer. Show all posts

Thursday, February 21, 2019

Friday, September 27, 2013

SalesForce Security Revision - SSL Configuration Vulnerability



Resources:
[1] Setting Tool https://www.nartac.com/Products/IISCrypto/Default.aspx
[2] Scanner https://www.ssllabs.com/ssldb/index.html (Used by SalesForce Security Revision process)
[3] SSL Info http://www.serversniff.net

Asp.Net Insecure Session Cookie Handling Vulnerability

Add next code in c:\inetpub\wwwroot\web.config


    <system.web>
      <httpCookies
             httpOnlyCookies="true"
             requireSSL="true" />
    </system.web>


References:
[1] http://www.codeproject.com/Articles/291562/Asp-net-web-application-Security-Review-Dos-Dont
[2] http://forums.asp.net/t/1756774.aspx
[3] http://www.enterprisenetworkingplanet.com/netsecur/ten-tips-to-make-your-ssl-secure.html
[4] https://www.owasp.org/index.php/HttpOnly
[5] http://xss.cx/examples/dork/programming/ssl-cookie-without-secure-flag-set-example.html#1.7


IIS Custom Errors



1. Make html with custom message, and save that on any directory
    c:\inetpub\wwwroot\custom_errors\404.html
    c:\inetpub\wwwroot\custom_errors\500.html

2. Alter web.config of c:\inetpub\wwwroot, add next content.

<system.webServer> 
<httpErrors errorMode="Custom" existingResponse="Auto" defaultResponseMode="ExecuteURL">
  <clear />
  <error statusCode="404" path="/custom_errors/404.html" responseMode="ExecuteURL" />
  <error statusCode="500" path="/custom_errors/500.html" responseMode="ExecuteURL" /> 
</httpErrors> 
</system.webServer> 



References:
[1] http://stackoverflow.com/questions/434272/iis7-overrides-customerrors-when-setting-response-statuscode
[2] http://stackoverflow.com/questions/619895/how-can-i-properly-handle-404-in-asp-net-mvc
[3] http://stackoverflow.com/questions/717628/asp-net-mvc-404-error-handling

Wednesday, September 18, 2013

MS Access Client GUI (For Sql Commands)




References:
[1] http://www.albahari.com/  (Parallel programing/Threading and more )
[2] Query Express http://www.albahari.com/queryexpress.aspx
[3] LinqPad http://www.linqpad.net/

Thursday, May 23, 2013

Trying Mount W7 Image (Ghost) over VMWare

Problem:
I need start Virtual Machine with W7, so  i don't have DVD Installer, but i have W7 image (created with Norton Ghost).

I Think make one iso file with W7 image for mount that, next mount ghost boot tool for restore from W7 iso file, but ghost not read files from iso mounted.

One alternative is mount USB as Hard Disk, but now my usb have only 4Gb (image file is ~ 7Gb )
I Think too mount iso image over virtual drive using winmount http://www.winmount.com/winmount-free.html


 VMware vCenter Converter StandAlone (tool for convert your physical computer to virtual machine)

thinking more, then i choice one solution very very crazy.

I try shrink my physical partition for add one aditional partition using Computer Management, Disk Managment (10Gb), then attach that new partition on VMWare Disk and try  restore image with Ghost.

So,  Microsoft Windows Server 2008 R2 – Media is write protected. For resolve that you need execute next commands.

cmd
diskpart 
list disk
select disk N
attributes disk clear readonly


* Too i try put .gho file into .iso for mount then restore, for that i need use iso editor, por example poweriso:
http://www.poweriso.com/download.htm  (v5.6)
Name: TEAM CRUDE
Key   : MIT68-I7WLE-CAGZN-DJYPR-PVNE4

* Alternatives
http://www.magiciso.com/download.htm
http://www.minidvdsoft.com/isocreator/

* Ghost32 ( For Convert .gho to .vmdk )

>ghost64 -clone,mode=restore,src=AmdW7-100.GHO,dst=toW7-100.vmdk -batch -sure

[1] http://www.mediafire.com/download/s2xp8f734b5a5xa/Ghost32_ghost64_11.5.1_Symantec.rar
[2] Convert .gho to .vmdk using ghost32 http://www.gregoryaubry.com/virtualisation-2/converting-image-file-format-from-gho-to-vmdk-and-from-vmdk-to-gho-symantec-connect/

*Plop BootManager (force boot from USB on VMware) http://www.plop.at/en/bootmanager/download.html

* System Repair Disk (ISO) http://www.windowsreinstall.com/winre/createfromiso/#Downloads


* http://www.filecrop.com (for search resources)

Wednesday, May 22, 2013

Sql Server 2008 Mirroring Tips

Problem:
  *, **, ***
Solution:


Common Error Messages:
1) The server network address TCP:// can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational.



References:
[1]Mirroring vs Replication and Others http://nilebride.wordpress.com/2011/07/24/log-shipping-vs-mirroring-vs-replication/
[2] Introduction http://www.guillesql.es/Articulos/database_Mirroring_SQL_Server_2005_2008.aspx

[3] High Recomended http://www.mssqltips.com/sqlservertip/1705/implementing-database-mirroring-in-sql-server-2005-across-domains/

[4] Resume http://blog.capside.com/2012/04/10/como-configurar-db-mirroring-utilizando-certificados-sql-server-2008-r2-db-mirroring-untrusted-servers-using-certificates/
[5] Mirroring 2008 using GUI http://www.databasejournal.com/features/mssql/article.php/3828341/Database-Mirroring-in-SQL-Server-2008.htm
[6] *  http://blog.sqlauthority.com/2010/01/11/the-server-network-address-tcpsqlserver5023-can-not-be-reached-or-does-not-exist-check-the-network-address-name-and-that-the-ports-for-the-local-and-remote-endpoints-are-operational-microso/
[7] ** http://www.gknzcfc.net/subsite/server-tcp-provider-failed-to-listen-on-1433-tcp-port-is-already-in-use.html
[8] *** https://www.simple-talk.com/sql/database-administration/sql-server-endpoints-soup-to-nuts/
[9] SQL Server Data Encryption http://selfhandle.com/post/2011/08/05/How-to-enableremove-Transparent-Data-Encryption-%28TDE%29.aspx


Friday, May 03, 2013

SQL Server same versions and limits


SQL Server 2008 Express has a 4 GB limit on database size 
SQL Server 2008 R2 Express has 10 GB.
Windows Server 2008 R2 Evaluation (180 days)

Wednesday, March 13, 2013

Visual Studio 6.0 Over W7

 - Copy setup/vs98ent.stf  /acmsetup.stf- Copy setup/* to /- Execute /acmsetup.exe 
Note: The file vs98ent.stf or vs98pro.stf


Install Service Pack 6 de VS6.0

Change vb98pro.stf or vs98ent.stf  to acmsetup.stf
Execute acmsetup.exe for start installation
 Other tip (Aboout Java)  Install the Sun Java VM (Well Oracle now)
Edit the file Setupwiz.ini, and change the line

VmPath=ie4\msjavx86.exe
to (in my case)
VmPath="C:\Program Files\Java\jre6\bin\java.exe"
 
 

Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com