hydra配置oracle扫描爆破模块

v2-61dc2b6eef550cd2c8a074f20d9ef89f_b.jpg


​hydra添加oracle扫描爆破模块-默认是有但是尝试很多次爆破不成功发现需要自己下载编译oracle模块。

1、安装组件oracle

oracle.com/database/tec

instantclient-basic-linux.x64-11.2.0.4.0.zipinstantclient-sdk-linux.x64-11.2.0.4.0.zipinstantclient-sqlplus-linux.x64-11.2.0.4.0.zip

2、新建并复制到oracle文件夹下,自然解压后,会生成“instantclient_11_2”目录,basic和sqlplus会在其根下,而sdk会在其下生成“sdk”目录;在其下建立目录“/network/admin”,创建文件:“tnsnames.ora”,并添加:

对应我的位置

/home/oracle/instantclient_19_3

/home/oracle/network/admin

tnsnames.ora的内容

ORCL = (DESCRIPTION =​ (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.182.144)(PORT = 1521))​ (CONNECT_DATA =​ (SERVER = DEDICATED)​ (SERVICE_NAME = orcl)​ )​ )

截图


v2-40b90e4f9134df9eb97afe3f0d8a7b94_b.jpg


配置:”vim /etc/profile”

exportORACLE_HOME=/home/oracle/instantclient_19_3​exportPATH=$ORACLE_HOME:$PATH​exportTNS_ADMIN=$ORACLE_HOME/home/oracle/network/admin​exportLD_LIBRARY_PATH=$ORACLE_HOME:$LD_LIBRARY_PATH​exportNLS_LANG='simplified chinese_china'.AL32UTF8


v2-6d13489d84b01de2f12787fa718f329a_b.jpg


3、运行:“source /etc/profile”使之生效

运行命令:sqlplussqlplus: errorwhileloading sharedlibraries: libaio.so.1: cannotopensharedobjectfile: No such file ordirectory解决方法:执行如下命令:sudo apt-getinstall libaio*。问题解决执行:sqlplus /nolog

结果:


v2-03893e50cc33e8d9509afcd8287398e9_b.jpg


4、接下里下载hydra

github.com/vanhauser-th

解压缩


v2-23776a2bbe265e3ca40791ecce2f26be_b.jpg


/configure --help


v2-6dfca5ca7ddd80aa1cb64d5916e6fd0d_b.jpg


添加对应的文件:

./configure --with-oracle=/home/oracle/instantclient_19_3/sdk/include/ --with-oracle-lib=/home/oracle/instantclient_19_3make install


v2-f7b11f1078028a6bd1df0a92657546c6_b.jpg


上面的这个文件多说一下

--with-oracle这个是找对应的.h文件:

ldap.hocciAQ.hocciData.hoci1.hociapr.hocidfn.hocikpr.hodci.hori.hort.hnzerror.hocciCommon.hocci.hoci8dp.hocidef.hociextp.hocixmldb.horatypes.horl.hxa.hnzt.hocciControl.hocciObjects.hociap.hocidem.hoci.hocixstream.horid.horo.h

--with-oracle-lib这个找对应的.so文件:

glogin.sqllibclntsh.so.11.1libocci.solibociei.solibsqlplusic.soojdbc5.jarottclasses.ziplibclntsh.solibnnz11.solibocci.so.11.1libocijdbc11.solibsqlplus.soojdbc6.jarxstreams.jar

执行完毕


v2-b9d9a22601eb1c0e6dce9a4de9329ee8_b.jpg


测试hydra编译是否成功


v2-ed6a7392325cf9de507bbf9f4823b1b9_b.jpg


出现oracle就是成功。

参看文档:

blog.csdn.net/philosoph

blog.csdn.net/weeknd/ar

下次如果需要执行hydra需要先让配置文件生效

source /etc/profile

vim ~/.bashrc

然后最后一行添加 source /etc/profile

免责声明:本站提供安全工具、程序(方法)可能带有攻击性,仅供安全研究与教学之用,风险自负!

公众号:


v2-be16fc9802cb2dd23f77ec16f33951f8_b.jpg


thelostworld:


v2-20e48f777f98d9c420a04d5037b12820_b.jpg


个人知乎:zhihu.com/people/fu-wei

个人简书:jianshu.com/u/bf0e38a8d

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Hydra is a multi-cloud orchestration platform that provides a unified interface to manage resources and applications across different cloud providers. To use Hydra with Oracle Cloud, you need to follow the steps below: 1. Create an Oracle Cloud account and obtain the required credentials, including the tenancy ID, user ID, and API key. 2. Install the Hydra CLI tool on your local machine. 3. Authenticate Hydra with Oracle Cloud by running the following command: ``` hydra connect oracle --tenancy-id=<tenancy_id> --user-id=<user_id> --api-key=<api_key> ``` 4. Verify that the connection is successful by running the following command: ``` hydra status ``` 5. Create a Hydra environment file that defines the resources you want to manage in Oracle Cloud. The file should include the following information: - Provider: "oracle" - Region: The Oracle Cloud region where you want to deploy the resources - Compartment: The compartment ID where you want to deploy the resources - Resources: The resources you want to deploy, such as virtual machines, load balancers, or databases. 6. Deploy the resources by running the following command: ``` hydra apply -f <path_to_environment_file> ``` 7. Monitor and manage the deployed resources using the Hydra dashboard or CLI. Note that Hydra supports a wide range of cloud providers and services, including AWS, Azure, Google Cloud, and Kubernetes, among others. You can use Hydra to manage resources across multiple clouds and regions, and automate common tasks such as provisioning, scaling, and monitoring.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值