WebLogic 密码恢复

Title : How to recover the Password in WebLogic Server

The below steps need to follow to cover the password in weblogic server.

Step 1:

Run setWlstEnv.sh for setting up the environment variables.

Ex:-

. /u01/Middleware/oracle_common/common/bin/setWlstEnv.sh

Step 2:

weblogic password recover command –

[oracle@localhost bin]$ /opt/installations/tools/jdk1.7.0_55/bin/java weblogic.WLST decryptpassword.py /opt/ntdomain/domains/NT {AES}68+XWFqzaQdP5DmEgmkJZWnRWtIvjBd7v+y6h49tCd0\=

Initializing WebLogic Scripting Tool (WLST) …

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands
========================================
Decrypted Password:p0o9i8u7
========================================

Step 3:

weblogic user recovery command –

[oracle@localhost bin]$ /opt/installations/tools/jdk1.7.0_55/bin/java weblogic.WLST decryptpassword.py /opt/ntdomain/domains/NT {AES}WsnwdqROocsh6D1YOclnc1ySRyzheBNtZD2AGLnjIFM\=

Initializing WebLogic Scripting Tool (WLST) …

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands
========================================
Decrypted Password:weblogic
========================================

 

 

decryptpassword.py:

import os
import weblogic.security.internal.SerializedSystemIni
import weblogic.security.internal.encryption.ClearOrEncryptedService
 
def decryptString(domainPath, encryptedString):
    es = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domainPath)
    ces = weblogic.security.internal.encryption.ClearOrEncryptedService(es)
    decryptedString = ces.decrypt(encryptedString)
    print "=" * 70
    print " " * 10 +"Decrypted Password:" + decryptedString
    print "=" * 70
 
try:
    #os.system('clear')
    if len(sys.argv) == 3:
        decryptString(sys.argv[1], sys.argv[2])
    else:
        print "=" * 70
        print "INVALID ARGUMENTS"
        print "Usage: java weblogic.WLST %s " %sys.argv[0]
        print "example.:"
        print "    java weblogic.WLST %s /oracle/fmwhome/user_projects/domains/NT/ {AES}68+XWFqzaQdP5DmEgmkJZWnRWtIvjBd7v+y6h49tCd0\=" %sys.argv[0]
        print "=" * 70
except:
    print "Unexpected error: ", sys.exc_info()[0]
    dumpStack()
    raise

WordPress 结合Memcache进行缓存加速

WordPress博客是一个非常耗费性能的博客系统,若将原版Wordpress博客系统直接用作博客站点或者门户站点,等到访问量变大之后,就会发现系统性能根本吃不消,mysql查询数量惊人的大,而且CPU资源非常高,wordpress打开过慢等.

实际上,我们可以想办法对wordpress进行优化,使得系统性能耗费没有那么高.
首先最主要的一个操作就是减少数据库查询数量.
一般情况下,博客文章发表后就不会再做修改,因此我们可以将这些页面进行缓存,从而减少数据库查询.
大多数的wordpress官方插件都是进行文件形式的缓存,而且要执行许多步操作,非常麻烦,实际上缓存效果是有一点,但是没有明显的降低系统的资源消耗.

这里提供一种方法,可以减少wordpress系统资源的消耗,由于wordpress是单一入口的程序,因此我们在index.php中所添加的所有代码,在前台访问时均会被执行.
因此在index.php中添加页面缓存代码.如下:

 

function is_cached($uri=''){
//echo "saemc://html_cache/".sha1($uri);

@$c=file_get_contents("saemc://html_cache/".sha1($uri));
if($c!=''&&sha1($uri)!='42099b4af021e53fd8fd4e056c2568d7c2e3ffa8'){
echo $c;
die();
}else{
ob_start(cache_html);
}
}
function cache_html($c){
$c=str_replace('/<div id="wpadminbar" class="">(.|\r|\n)*登出</a>(\r|\n)*\s*</div>/','',$c);
file_put_contents("saemc://html_cache/".sha1($_SERVER['REQUEST_URI']),$c);
return $c;
}
is_cached($_SERVER['REQUEST_URI']);
ob_start(myzip);

以SAE环境为例:在index.php文件前加入该代码即可.

当然如果为自建memache/redis,加上连接账号密码,key设置为sha1值即可.

0e开头MD5值小结

s878926199a
0e545993274517709034328855841020
s155964671a
0e342768416822451524974117254469
s214587387a
0e848240448830537924465865611904
s214587387a
0e848240448830537924465865611904
s878926199a
0e545993274517709034328855841020
s1091221200a
0e940624217856561557816327384675
s1885207154a
0e509367213418206700842008763514
s1502113478a
0e861580163291561247404381396064
s1885207154a
0e509367213418206700842008763514
s1836677006a
0e481036490867661113260034900752
s155964671a
0e342768416822451524974117254469
s1184209335a
0e072485820392773389523109082030
s1665632922a
0e731198061491163073197128363787
s1502113478a
0e861580163291561247404381396064
s1836677006a
0e481036490867661113260034900752
s1091221200a
0e940624217856561557816327384675
s155964671a
0e342768416822451524974117254469
s1502113478a
0e861580163291561247404381396064
s155964671a
0e342768416822451524974117254469
s1665632922a
0e731198061491163073197128363787
s155964671a
0e342768416822451524974117254469
s1091221200a
0e940624217856561557816327384675
s1836677006a
0e481036490867661113260034900752
s1885207154a
0e509367213418206700842008763514
s532378020a
0e220463095855511507588041205815
s878926199a
0e545993274517709034328855841020
s1091221200a
0e940624217856561557816327384675
s214587387a
0e848240448830537924465865611904
s1502113478a
0e861580163291561247404381396064
s1091221200a
0e940624217856561557816327384675
s1665632922a
0e731198061491163073197128363787
s1885207154a
0e509367213418206700842008763514
s1836677006a
0e481036490867661113260034900752
s1665632922a
0e731198061491163073197128363787
s878926199a
0e545993274517709034328855841020

FUZZ代码

<?php
echo "-------------------------------------------\r\n";

while(1){
$s=rand();
$s.="a";
$s="s".$s;
if(md5($s)=="0") {
echo $s;
echo "\r\n";
echo md5($s)."\r\n";
}
}

010Editor Template 下载地址集合

http://www.sweetscape.com/010editor/templates/files/AndroidManifestTemplate.bt
http://www.sweetscape.com/010editor/templates/files/AVITemplate.bt
http://www.sweetscape.com/010editor/templates/files/BMPTemplate.bt
http://www.sweetscape.com/010editor/templates/files/CABTemplate.bt
http://www.sweetscape.com/010editor/templates/files/CAPTemplate.bt
http://www.sweetscape.com/010editor/templates/files/CDATemplate.bt
http://www.sweetscape.com/010editor/templates/files/CLASSTemplate.bt
http://www.sweetscape.com/010editor/templates/files/CRXTemplate.bt
http://www.sweetscape.com/010editor/templates/files/DBFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/DEXTemplate.bt
http://www.sweetscape.com/010editor/templates/files/DMPTemplate.bt
http://www.sweetscape.com/010editor/templates/files/EDIDTemplate.bt
http://www.sweetscape.com/010editor/templates/files/ELFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/EMFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/EOTTemplate.bt
http://www.sweetscape.com/010editor/templates/files/EVSBTemplate.bt
http://www.sweetscape.com/010editor/templates/files/EXETemplate.bt
http://www.sweetscape.com/010editor/templates/files/exFATTemplate.bt
http://www.sweetscape.com/010editor/templates/files/FAT16Template.bt
http://www.sweetscape.com/010editor/templates/files/FLVTemplate.bt
http://www.sweetscape.com/010editor/templates/files/GeoTIFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/GIFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/GocleverTemplate.bt
http://www.sweetscape.com/010editor/templates/files/GPTTemplate.bt
http://www.sweetscape.com/010editor/templates/files/GZipTemplate.bt
http://www.sweetscape.com/010editor/templates/files/ICOTemplate.bt
http://www.sweetscape.com/010editor/templates/files/ISOBMFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/JPGTemplate.bt
http://www.sweetscape.com/010editor/templates/files/LNKTemplate.bt
http://www.sweetscape.com/010editor/templates/files/LUKSTemplate.bt
http://www.sweetscape.com/010editor/templates/files/MachOTemplate.bt
http://www.sweetscape.com/010editor/templates/files/MBRTemplate.bt
http://www.sweetscape.com/010editor/templates/files/MIDITemplate.bt
http://www.sweetscape.com/010editor/templates/files/Mifare1kTemplate.bt
http://www.sweetscape.com/010editor/templates/files/Mifare4kTemplate.bt
http://www.sweetscape.com/010editor/templates/files/MOBITemplate.bt
http://www.sweetscape.com/010editor/templates/files/MP3Template.bt
http://www.sweetscape.com/010editor/templates/files/OGGTemplate.bt
http://www.sweetscape.com/010editor/templates/files/OscarItemTemplate.bt
http://www.sweetscape.com/010editor/templates/files/PALTemplate.bt
http://www.sweetscape.com/010editor/templates/files/PCAPTemplate.bt
http://www.sweetscape.com/010editor/templates/files/PCXTemplate.bt
http://www.sweetscape.com/010editor/templates/files/PETemplate.bt
http://www.sweetscape.com/010editor/templates/files/PDFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/PNGTemplate.bt
http://www.sweetscape.com/010editor/templates/files/PNG12Template.bt
http://www.sweetscape.com/010editor/templates/files/PSFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/PYCTemplate.bt
http://www.sweetscape.com/010editor/templates/files/RARTemplate.bt
http://www.sweetscape.com/010editor/templates/files/RDBTemplate.bt
http://www.sweetscape.com/010editor/templates/files/RegistryPolicyFileTemplate.bt
http://www.sweetscape.com/010editor/templates/files/RESTemplate.bt
http://www.sweetscape.com/010editor/templates/files/SHPTemplate.bt
http://www.sweetscape.com/010editor/templates/files/SHXTemplate.bt
http://www.sweetscape.com/010editor/templates/files/SRecTemplate.bt
http://www.sweetscape.com/010editor/templates/files/SSPTemplate.bt
http://www.sweetscape.com/010editor/templates/files/STLTemplate.bt
http://www.sweetscape.com/010editor/templates/files/SWFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/TacxTemplate.bt
http://www.sweetscape.com/010editor/templates/files/TOCTemplate.bt
http://www.sweetscape.com/010editor/templates/files/TIFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/TGATemplate.bt
http://www.sweetscape.com/010editor/templates/files/TTFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/UTMPTemplate.bt
http://www.sweetscape.com/010editor/templates/files/VHDTemplate.bt
http://www.sweetscape.com/010editor/templates/files/WAVTemplate.bt
http://www.sweetscape.com/010editor/templates/files/WinhexPosTemplate.bt
http://www.sweetscape.com/010editor/templates/files/WMFTemplate.bt
http://www.sweetscape.com/010editor/templates/files/ZIPTemplate.bt