Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ MITM debugging proxy with a web GUI to view and modify all of the HTTP and HTTPS

### Install

> Mac: **[allproxy.dmg](https://github.com/allproxy/allproxy/releases/download/v3.28.0/allproxy-3.28.0-x64.dmg)**
> Mac: **[allproxy.dmg](https://github.com/allproxy/allproxy/releases/download/v3.29.0/allproxy-3.29.0-x64.dmg)**

> RedHat: **[allproxy.rpm](https://github.com/allproxy/allproxy/releases/download/v3.28.0/allproxy-3.28.0-1.x86_64.rpm)**
> RedHat: **[allproxy.rpm](https://github.com/allproxy/allproxy/releases/download/v3.29.0/allproxy-3.29.0-1.x86_64.rpm)**

> Ubuntu: **[allproxy.deb](https://github.com/allproxy/allproxy/releases/download/v3.28.0/allproxy_3.28.0_amd64.deb)**
> Ubuntu: **[allproxy.deb](https://github.com/allproxy/allproxy/releases/download/v3.29.0/allproxy_3.29.0_amd64.deb)**

> Windows: **[Setup.exe](https://github.com/allproxy/allproxy/releases/download/v3.28.0/allproxy-3.28.0.Setup.exe)**
> Windows: **[Setup.exe](https://github.com/allproxy/allproxy/releases/download/v3.29.0/allproxy-3.29.0.Setup.exe)**

> Other install options:
> 1. Install NPM package: **npm install -g allproxy**
Expand Down
8 changes: 6 additions & 2 deletions client/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@ body {
}
}

.react-tagsinput,
.react-tagsinput input,
.header__filter-input,
.header__filter-input input {
color: rgba(232, 230, 227);
background-color: #444444;
}

.react-tagsinput,
.react-tagsinput input {
color: rgba(232, 230, 227) !important;
background-color: #444444 !important;
}
Expand Down
1 change: 1 addition & 0 deletions client/src/store/APFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default class APFileSystem {
// exists
public async exists(path: string): Promise<boolean> {
return new Promise<boolean>((resolve) => {
setTimeout(() => resolve(false), 5000);
this.socket?.emit('exists', path, (exists: boolean) => {
resolve(exists);
});
Expand Down
43 changes: 43 additions & 0 deletions client/src/store/FilterStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,51 @@ export default class FilterStore {
}
}

private isJsonKeyValueMatch(key: string, value: string, operator: string, json: { [key: string]: any }): boolean {
const lowerKey = key.toLowerCase();
const upperKey = key.toUpperCase();
let jsonValue = json[lowerKey];
if (jsonValue === undefined) jsonValue = json[upperKey];

if (jsonValue === undefined) return false;
if (typeof jsonValue === 'number') {
const float = parseFloat(value);
const int = parseInt(value);
if (!isNaN(float)) {
return eval(jsonValue + operator + float);
}
if (!isNaN(int)) {
return eval(jsonValue + operator + int);
}
return false;
}
return eval(jsonValue + operator + value);
}

private isMessageFiltered(needle: string, messageStore: MessageStore) {
const message = messageStore.getMessage();

// Check for JSON key:value syntax
const i = needle.indexOf(':');
if (i !== -1 && needle.length > i + 1 && needle.substring(i + 1).indexOf(':') === -1) {
if (typeof message.responseBody === 'string') {
return true;
} else {
const key = needle.substring(0, i);
let value = needle.substring(i + 1);
let operator = '==';
if (value.startsWith('>') || value.startsWith('<')) {
operator = value.substring(0, 1);
value = value.substring(1);
if (value.startsWith('=')) {
operator += value.substring(0, 1);
value = value.substring(1);
}
}
return !this.isJsonKeyValueMatch(key, value, operator, message.responseBody as { [key: string]: any });
}
}

if (message.proxyConfig && this.isMatch(needle, message.proxyConfig.protocol)) return false;
if (this.isMatch(needle, message.protocol)) return false;
if (message.protocol !== 'log:') {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "allproxy",
"version": "3.28.0",
"version": "3.29.0",
"description": "AllProxy: MITM HTTP Debugging Tool.",
"keywords": [
"proxy",
Expand Down