The LaZagne project is an open source application used to retrieve lots of passwords stored on a local computer. Each software stores its passwords using different techniques (plaintext, APIs, custom algorithms, databases, etc.). This tool has been developed for the purpose of finding these passwords for the most commonly-used software.
https://github.com/AlessandroZ/LaZagne
Wednesday, January 3, 2018
Sunday, December 31, 2017
Naivecoin: a tutorial for building a cryptocurrency
The project that we will build in this tutorial is called “Naivecoin”. The programming language is Typescript. The Naivecoin is in some terms an extension to the Naivechain - blockchain in 200 lines of code.
https://lhartikk.github.io/
https://lhartikk.github.io/
Monday, December 25, 2017
suricata Error: datalink type 65535 not yet supported in module DecodeAFP solution
<Error> - [ERRCODE: SC_ERR_DATALINK_UNIMPLEMENTED(38)] - Error: datalink type 65535 not yet supported in module DecodeAFP
Solution:
Edit suricata-4.0.3/src/source-af-packet.c. I changed default datalink type to raw. That solved my problem.
Solution:
Edit suricata-4.0.3/src/source-af-packet.c. I changed default datalink type to raw. That solved my problem.
suricata-4.0.3/src/source-af-packet.c:
2295 TmEcode DecodeAFP(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq, PacketQueue *postpq)
2296 {
2297 SCEnter();
2298 DecodeThreadVars *dtv = (DecodeThreadVars *)data;
2299
2300 /* XXX HACK: flow timeout can call us for injected pseudo packets
2301 * see bug: https://redmine.openinfosecfoundation.org/issues/1107 */
2302 if (p->flags & PKT_PSEUDO_STREAM_END)
2303 return TM_ECODE_OK;
2304
2305 /* update counters */
2306 DecodeUpdatePacketCounters(tv, dtv, p);
2307
2308 /* If suri has set vlan during reading, we increase vlan counter */
2309 if (p->vlan_idx) {
2310 StatsIncr(tv, dtv->counter_vlan);
2311 }
2312
2313 /* call the decoder */
2314 switch (p->datalink) {
2315 case LINKTYPE_ETHERNET:
2316 DecodeEthernet(tv, dtv, p,GET_PKT_DATA(p), GET_PKT_LEN(p), pq);
2317 break;
2318 case LINKTYPE_LINUX_SLL:
2319 DecodeSll(tv, dtv, p, GET_PKT_DATA(p), GET_PKT_LEN(p), pq);
2320 break;
2321 case LINKTYPE_PPP:
2322 DecodePPP(tv, dtv, p, GET_PKT_DATA(p), GET_PKT_LEN(p), pq);
2323 break;
2324 case LINKTYPE_RAW:
2325 DecodeRaw(tv, dtv, p, GET_PKT_DATA(p), GET_PKT_LEN(p), pq);
2326 break;
2327 case LINKTYPE_NULL:
2328 DecodeNull(tv, dtv, p, GET_PKT_DATA(p), GET_PKT_LEN(p), pq);
2329 break;
2330 default:
2331 // SCLogError(SC_ERR_DATALINK_UNIMPLEMENTED, "Error: datalink type %" PRId32 " not yet supported in module DecodeAFP", p->datalink);
2332 // DecodePPP(tv, dtv, p, GET_PKT_DATA(p), GET_PKT_LEN(p), pq);
2333 DecodeRaw(tv, dtv, p, GET_PKT_DATA(p), GET_PKT_LEN(p), pq);
2334 // DecodeEthernet(tv, dtv, p,GET_PKT_DATA(p), GET_PKT_LEN(p), pq);
2335 break;
2336 }
Monday, December 4, 2017
Stack overflows: possible return addresses
English Windows XP SP 2 User32.dll:
JMP ESP 0x77db41bc
JMP ESP 0x77db41bc
English Windows XP SP 1 User32.dll:
JMP ESP 0x77d718fc
JMP ESP 0x77d718fc
English Windows 2003 SP0 and SP1 User32.dll:
JMP ESP 0x77d74adc
JMP ESP 0x77d74adc
English Windows 2000 SP 4 User32.dll:
JMP ESP 0x77e3c256
JMP ESP 0x77e3c256
French Windows XP Pro SP2:
JMP ESP 0x77d8519f
JMP ESP 0x77d8519f
German/Italian/Dutch/Polish Windows XP SP2:
JMP ESP 0x77d873a0
JMP ESP 0x77d873a0
Spainish Windows XP Pro SP2:
JMP ESP 0x77d9932f
JMP ESP 0x77d9932f
French/Italian/German/Polish/Dutch Windows 2000 Pro SP4:
JMP ESP 0x77e04c29
JMP ESP 0x77e04c29
French/Italian/Chineese Windows 2000 Server SP4:
JMP ESP 0x77df4c29
JMP ESP 0x77df4c29
Friday, December 1, 2017
Thursday, November 9, 2017
Linux Privilege Escalation Scripts
LinEnum
http://www.rebootuser.com/?p=1758
This tool is great at running through a heap of things you should check on a Linux system in the post exploit process. This include file permissions, cron jobs if visible, weak credentials etc. The first thing I run on a newly compromised system.
LinuxPrivChecker
http://www.securitysift.com/download/linuxprivchecker.py
This is a great tool for once again checking a lot of standard things like file permissions etc. The real gem of this script is the recommended privilege escalation exploits given at the conclusion of the script. This is a great starting point for escalation.
g0tmi1k’s Blog
http://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/
Not so much a script as a resource, g0tmi1k’s blog post here has led to so many privilege escalations on Linux system’s it’s not funny. Would definitely recommend trying out everything on this post for enumerating systems.
windows file sharing operations
list all active connections:
net use
remove all active connections:
net use * /delete
remove specific connection
net use \\<ip>\<share> /delete
add connection
net use \\<ip>\<share> /user:domain/username <password> /persistent:yes
make symbolic link for file share
mklink /d c:\temp\<localpath> \\<ip>\<share>
net use
remove all active connections:
net use * /delete
remove specific connection
net use \\<ip>\<share> /delete
add connection
net use \\<ip>\<share> /user:domain/username <password> /persistent:yes
make symbolic link for file share
mklink /d c:\temp\<localpath> \\<ip>\<share>
Sunday, October 15, 2017
php reverse shell
Remote file inclusion açıkları için kullanabileceğiniz bir araç.
http://pentestmonkey.net/tools/web-shells/php-reverse-shell
netcat ile dinlediğiniz bir porta geri dönüş yapması için 'python -m SimpleHTTPServer 80' ile servis ederek erişim sağlayabilirsiniz.
http://pentestmonkey.net/tools/web-shells/php-reverse-shell
netcat ile dinlediğiniz bir porta geri dönüş yapması için 'python -m SimpleHTTPServer 80' ile servis ederek erişim sağlayabilirsiniz.
Friday, September 29, 2017
linux command line filter for ip address matches
$ cat file.log |grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |sort -u
Thursday, September 7, 2017
SEP: how can we detect 'application and device control feature' enabled on a sep client machine
Aşağıda bu kontrolü yapabileceğiniz birden fazla yöntem paylaşıyorum. İstediğiniz şekilde sonuç alamazsanız uygun zamanınızda beraber gözatabiliriz.
1.
Kurulum paketinizde yer alan setAid.ini dosyada yer alan;
Application Control and Device Control yükleneceği anlamına gelir bu şekilde kontrol edebilirsiniz.
Monitors -> Logs -> Application and Device Control,
Monitors -> Logs -> Log type: Application and Device Control -> Advanced Settings -> Event Type: Application Control Driver -> View Log
sc query sysplant
komutu ile application and device control tarafından kullanılan servis durumunu sorgulayabilirsiniz.
1.
Kurulum paketinizde yer alan setAid.ini dosyada yer alan;
"DCMain=1"
Application Control and Device Control yükleneceği anlamına gelir bu şekilde kontrol edebilirsiniz.
Örnek ekran görüntüleri:
Setup paketimi extract ettiğimdeki dosya içeriği:
2.
Diğer bir yöntem olarak aşağıdaki logları analiz ederek bunu tespit edebilirsiniz.
Monitors -> Logs -> Application and Device Control,
Monitors -> Logs -> Log type: Application and Device Control -> Advanced Settings -> Event Type: Application Control Driver -> View Log
3.
sc query sysplant
komutu ile application and device control tarafından kullanılan servis durumunu sorgulayabilirsiniz.
Örnek:
Tuesday, September 5, 2017
Komut satırından ram model ve hız bilgileri öğrenme
Windows komut satırından memory'ye ilişkin detay bilgiler öğrenme:
wmic MemoryChip get BankLabel, Capacity, MemoryType, TypeDetail, Speed
BankLabel Capacity MemoryType Speed TypeDetail
BANK 0 4294967296 24 1600 128
BANK 2 4294967296 24 1600 128
wmic MemoryChip get BankLabel, Capacity, MemoryType, TypeDetail, Speed
BankLabel Capacity MemoryType Speed TypeDetail
BANK 0 4294967296 24 1600 128
BANK 2 4294967296 24 1600 128
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394347(v=vs.85).aspx
Monday, September 4, 2017
bWAPP: insecure web application testing box
bWAPP, or a buggy web application, is a free and open source deliberately insecure web application.
It helps security enthusiasts, developers and students to discover and to prevent web vulnerabilities.
bWAPP prepares one to conduct successful penetration testing and ethical hacking projects.
What makes bWAPP so unique? Well, it has over 100 web vulnerabilities!
It covers all major known web bugs, including all risks from the OWASP Top 10 project.
It covers all major known web bugs, including all risks from the OWASP Top 10 project.
Wednesday, August 16, 2017
Linux sistemin ping response dönüşünü engelleme
Aşağıdaki iptables komutu ile bunu gerçekleştirebilirsiniz.
iptables -I INPUT -p icmp --icmp-type echo-request -j REJECT
Tuesday, August 15, 2017
Wednesday, August 2, 2017
Symantec Endpoint Protection: SEPM üzerinden Sep Client nasıl disable hale getirilir?
SEPM ve client arasındaki haberleşme smc servisi sayesinde bina edilir. Eğer bu servis SEPM aracılığıyla kapatılırsa aradaki iletişim kesileceği için yeniden başlatılamaz. Dolasıyla bu SEPM üzerinden client tarafındaki servisin kapatılması tavsiye edilmez.
Symantec Endpoint Protection: client tarafında tanımlanan exception tanımları nasıl kontrol edilir?
SEPM (Symantec Enterprise Protection Manager) aracılığıyla tanımlanan exception tanımları client tarafında nasıl kontrol edilir?
Eğer windows kullanıyorsanız bu için açağıdaki registery yollarını kontrol edebilirsiniz.
HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\Symantec Endpoint Protection\AV\Exclusions\ScanningEngines\Directory\Admin
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Symantec\SymantecEndpoint
Protection\AV\Exclusions.
Version: 14MP2
Symantec Endpoint Protection: SEPM Clients ekranında nasıl search yapılır?
Client ekranında nasıl search yapılır?
Kalabalık client listesini yönetirken sıkça yönetilen bir soru bu. Bunun için sol menüde yer alan search clients yönlendirmesini kullanabilirsiniz.
Kalabalık client listesini yönetirken sıkça yönetilen bir soru bu. Bunun için sol menüde yer alan search clients yönlendirmesini kullanabilirsiniz.
Version: 14MP2
Saturday, July 29, 2017
Thursday, July 27, 2017
ZFS on Linux v0.7.0 released
[zfs-announce] v0.7.0 released
http://list.zfsonlinux.org/pipermail/zfs-announce/2017-July/000015.htmlSunday, July 23, 2017
Extremely Fast MySQL Backup and Restore Using Mydumper/Myloader
Mydumper and Myloader are utility software programs that allow you to perform extremely fast and reliable multi-threaded MySQL backup and restore which is written in the C programming language.
It was initially developed by MySQL engineers who later moved to Facebook. Mydumper is approximately 10 times faster than the mysqldump tools typically used for backups.
https://wplobster.com/extremely-fast-mysql-backup-restore-using-mydumpermyloader/
ssh based vpn solution: xiringuito
SSH-based "VPN for poors"
VPN made easy! No configuration. No VPN servers. No hassle. Just plug and use!
This is the "VPN without VPN" software done using nice built-in capabilities of SSH.
Tuesday, July 18, 2017
Subscribe to:
Posts (Atom)