Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
wpbullet — WordPress (및 PHP)를 위한 정적 코드 분석 | Kitploit
도구/GitHubGitHub/webarx-security/wpbullet
Static Code Analysis (SAST)Vulnerability AnalysisCode AnalysisWeb Security
GitHubwebarx-security/wpbullet

wpbullet

WordPress (및 PHP)를 위한 정적 코드 분석

저장소 보기
239453년 전Kitploit 검토 완료

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

alt text

wpBullet Build Status Python 2.x|3.x License

WordPress 플러그인/테마 (및 PHP)를 위한 정적 코드 분석

설치

간단히 저장소를 클론하고, 요구 사항을 설치한 후 스크립트를 실행하세요.

  • $ git clone https://github.com/webarx-security/wpbullet wpbullet
  • $ cd wpbullet
  • $ pip install -r requirements.txt
  • $ python wpbullet.py

사용법

사용 가능한 옵션:

root@kitploit:~
--path (required) System path or download URL 
Examples:
--path="/path/to/plugin"
--path="https://wordpress.org/plugins/example-plugin"
--path="https://downloads.wordpress.org/plugin/example-plugin.1.5.zip"

--enabled (optional) Check only for given modules, ex. --enabled="SQLInjection,CrossSiteScripting"
--disabled (optional) Don't check for given modules, ex. --disabled="SQLInjection,CrossSiteScripting"
--cleanup (optional) Automatically remove content of .temp folder after scanning remotely downloaded plugin (boolean)
--report (optional) Saves result inside reports/ directory in JSON format (boolean)

$ python wpbullet.py --path="/var/www/wp-content/plugins/plugin-name"

모듈 생성

모듈 생성은 유연하며, 각 모듈의 BaseClass 메서드를 오버라이드하고 자체 메서드를 생성할 수 있습니다.

Modules 디렉토리의 각 모듈은 core.modules.BaseClass의 속성과 메서드를 구현하므로, 각 모듈의 필수 매개변수는 BaseClass입니다.

모듈을 생성한 후에는 modules/__init__.py에 임포트해야 합니다. 모듈이 로드되려면 모듈 이름과 클래스 이름이 일관되어야 합니다.

새 모듈을 추가하는 풀 리퀘스트를 열 경우, 해당 모듈에 대한 단위 테스트도 함께 제공해 주세요.

모듈 템플릿

Modules/ExampleVulnerability.py

root@kitploit:~
from core.modules import BaseClass


class ExampleVulnerability(object):

    # Vulnerability name
    name = "Cross-site Scripting"

    # Vulnerability severity
    severity = "Low-Medium"

    # Functions causing vulnerability
    functions = [
        "print"
        "echo"
    ]

    # Functions/regex that prevent exploitation
    blacklist = [
        "htmlspecialchars",
        "esc_attr"
    ]

정규식 매치 패턴 오버라이드

정규식 패턴은 core.modules.BaseClass.build_pattern에서 생성되므로 각 모듈 클래스에서 오버라이드할 수 있습니다.

Modules/ExampleVulnerability.py

root@kitploit:~
import copy


...
# Build dynamic regex pattern to locate vulnerabilities in given content
def build_pattern(self, content, file):
    user_input = copy.deepcopy(self.user_input)

    variables = self.get_input_variables(self, content)

    if variables:
        user_input.extend(variables)

    if self.blacklist:
        blacklist_pattern = r"(?!(\s?)+(.*(" + '|'.join(self.blacklist) + ")))"
    else:
        blacklist_pattern = ""

    self.functions = [self.functions_prefix + x for x in self.functions]

    pattern = r"((" + '|'.join(self.functions) + ")\s{0,}\(?\s{0,1}" + blacklist_pattern + ".*(" + '|'.join(user_input) + ").*)"
    return pattern

테스트

단위 테스트 실행: $ python3 -m unittest

도구 다운로드