This is useful for OpenVAS
https://www.cidrcalculator.com/ipv4/cidr-to-ip-list-bulk.html?lang=en
Wednesday, January 31, 2018
Can't connect to OPENVAS from external network. Fix
/lib/systemd/system/greenbone-security-assistant.service
changed --listen=127.0.0.1 to --listen=0.0.0.0
then after changing and saving
Stop and start Openvas service.
Nesuss Excluding list of IP from scan
Recently I found that I need to exclude some IPs from scan.
As I did it in windows :
In the c:\ProgramData\Tenable\Nessus\conf\nessusd.rules
# Target Syntax: accept|reject address/netmask:port[-port_max]
#
# Reject any target on 10.42.***
reject 65.132.***
reject 50.233.***
reject 96.93.***
reject 216.174.***
As I did it in windows :
In the c:\ProgramData\Tenable\Nessus\conf\nessusd.rules
# Target Syntax: accept|reject address/netmask:port[-port_max]
#
# Reject any target on 10.42.***
reject 65.132.***
reject 50.233.***
reject 96.93.***
reject 216.174.***
As this IPs were in the different places subnets, i used this way. May be there is different and better way.
Fixing connection to Internet for Kali linux on VMWare
When I was trying to connect KALI VM to the network with "BRIDGET" network settings I found that cannot get on Internet, my update upgrade not worked and I got some different errors as :
- Cannot apt-get update. Err:1 http://http.kali.org/kali kali-rolling InRelease
- Unable to locate Package
Here is summary of troubleshooting
1) Check DNS server, I'm using 8.8.8.8
2) Check if /etc/apt/sources.list have record and it is deb http://http.kali.org/kali kali-rolling main contrib non-free and it is non commented.
3) On VM Edit>Virtual Network Editor use Restore Defaults buttons ( as admin).
4) On Virutal Network Editor check dropdown menu if it is bridget to the proper interface
Monday, April 11, 2016
How manually update ZAP proxy on Kali linux.
1) Download latest version https://github.com/zaproxy/zaproxy/wiki/Downloads
* in my case it is ZAP_2.4.3_Linux.tar.gz
2) Untar it tar -xzvf ZAP_2.4.3_Linux.tar.gz
3) cd ZAP_2.4.3/
4) Copy new version over old : cp -Ra * /usr/share/zaproxy/
Monday, March 16, 2015
Reversing .NET applications.
All
screenshots has been done with http://getgreenshot.org. This is amazing application
and free. If you like it, please donate.
! If you are developing .NET
application for commercial sale, you must implement protection which is other
than simple obfuscation. There is tools on market which can deobfusicate .NET .
One of them
Tools
De4dot http://de4dot.com/ -
tool for deobfusication
FEATURES
|
OBFUSCATORS / PACKERS
|
Reflector : http://www.red-gate.com/products/dotnet-development/reflector/
tool for decompiling code.
Add-ons for Reflector :
1) If you want to modify code : http://reflexil.net/
Reflexil is an assembly editor and runs as a plug-in for Red Gate's Reflector, ILSpy and Telerik's JustDecompile. Reflexil is using Mono. Cecil, written by Jb Evain and is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports C#/VB.NET code injection.
Reflexil is an assembly editor and runs as a plug-in for Red Gate's Reflector, ILSpy and Telerik's JustDecompile. Reflexil is using Mono. Cecil, written by Jb Evain and is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports C#/VB.NET code injection.
2) If you need search in Reflector: http://reflectoraddins.codeplex.com/wikipage?title=CodeSearch Code Search is an add-in for .Net Reflector that allows searching within the source code.
To install
addons :
And

Decrypting obfuscated files
1)
Download and unzip de4dot .
2)
Drag and drop obfuscated file on de4dot icon
3)
You will get TestRename-cleaned.exe
In my case I took file TestRename.exe and DragNDrop on
de4dot.exe. If you have 64 bit application, that drop on de4dot-x64.exe.
Couple seconds later you will see new file created
TestRename-cleaned.exe. this is deobfusicated file which you can use in
Reflector..
Reflector:
You can try to use http://ilspy.net/
as well.
Simple way
1) Open
assembly :
When you
will open assembly, you can search though the code for “goodies”:
Or you can
simply export source code to other folder and work with it in Notepad++ or
other free text editor:
In my case after
exporting (decompile) code, in exported directory I was searching for “License” text and getting list of files which contain some interesting
information:
In one file
I found :
private string GetDiscountCoupon(DiscountypeEnum dt)
private string GetDiscountCoupon(DiscountypeEnum dt)
{
switch (dt)
{
case DiscountypeEnum.Percent10:
return
"LIZA-DPQT";
case DiscountypeEnum.Percent15:
return "LIZA-7XY4-IPCX";
case DiscountypeEnum.Percent20:
return
"LIZA-AM84-XDVM";
case DiscountypeEnum.Percent25:
return
"LIZA-R08M-AWTK";
case DiscountypeEnum.Percent50:
return
"LIZ-R764-LPL";
}
return "";
This is list of discounts.
And in another file I
found:
Data encryptedData = new Data
{
Hex = str2
};
return new Symmetric(Symmetric.Provider.TripleDES,
true) { Key = { Text = "EzF6@CD4-72$C-49b3-96*-329di949mcoB49}" }
}.Decrypt(encryptedData).Text;
}
public static bool
RegisterApplication(string key)
{
key = key.Trim();
string str2 =
"B4FA7A5DA5AF2E63D97F819A5362CDA0";
Hash hash = new
Hash(Hash.Provider.MD5);
Data d = new Data(key);
string hex =
hash.Calculate(d).Hex;
if (((str2.Length >
5) && (key.Length < 30)) && (hex == str2))
{
SetAppConfig("KH", hex, true);
SetAppConfig("RD", Conversions.ToString(DateTime.Today),
true);
m_IsRegisteredProduct = 0;
return true;
Where I
found : string str2 = "B4FA7A5DA5AF2E63D97F819A5362CDA0";
Hash hash = new
Hash(Hash.Provider.MD5);
On the website: http://www.md5online.org/
decrypting this hash revealing the registration key.
That was easiest reversing which I ever done.
Complicated way ( will follow )
Wednesday, January 28, 2015
Removing password from protected PDF documents
$ pdftops [your_protected_pdf_document.pdf] out.ps
$ ps2pdf [out.ps] broken_protection_pdf_document.pdf
http://www.cyberciti.biz/faq/removing-password-from-pdf-on-linux/
Type the following command to install the qpdf:
$ sudo apt-get install xpdf-utilsFirst, decrypt a PDF and create a postscript file, enter:
pdftops input.pdf out.ps
You will get input.ps file. This can be printed or open under Linux itself. But, you can convert it back .ps file (postscript)back to a PDF as follows:
ps2pdf out.ps ready.pdf
Please note that the ps2pdf command is part of ghostscript and it will get installed when you run xpdf-utils.
Now you can convert it with Nitro PDF https://www.gonitro.com/pro
Subscribe to:
Posts (Atom)






