If you try to upload a Paired Configuration to iTDS and receive "The file you are attempting to upload is larger than the permitted size." as shown in the screenshot below, it's mainly because from Maltego desktop client v4.2 onward the icon size is increased to 96-pixel and few more icons are added. If these icons are exported to a Paired Configuration then the file size is relatively higher than from previous versions.



There is a quick fix that can be made to the iTDS container.


Step 1. Log into iTDS VM/Server


Step 2. Obtain the Container ID of the Maltego iTDS PHP container

docker container ls

Use sudo if required.


Sample output

CONTAINER ID        IMAGE                                 COMMAND                  CREATED             STATUS              PORTS                  NAMES
e42be0aec876        registry.paterva.com/itdsphp:latest   "bash -c 'service ap…"   3 months ago        Up 21 minutes       0.0.0.0:443->443/tcp   maltego_itdsphp_1


Step 3.  Log into the Maltego iTDS PHP container terminal

docker exec -it e42be0aec876 bash

Use sudo if required, Container ID could be different in each case.

Sample output:

root@e42be0aec876:/#


Step 4. Edit "configurations.php"

nano /var/www-ssl/iTDS/application/controllers/configurations.php

To save press Ctrl+x and then y.


#Change the value of $config['max_size'] parameter in line 14 from '2000' to '20000' (value in Kilobytes), i.e. 10 X increase in size support.

8          function Configurations()
9          {
10                  parent::__construct();
11                  $this->load->library('form_validation');
12                  $config['upload_path'] = '/usr/local/paired_config/';
13                  $config['allowed_types'] = 'mtz';
14                  $config['max_size']     = '20000';
15
16                  $this->load->library('upload', $config);
17          }


Step 5. Upload Paired Configuration.

Try re-uploading the Paired Configuration, there is no need to restart the container or any service.


Post Fix (Optional)

To ensure that the Fix is permanently applied, save the container as an image.

The change will be included in the next update of the iTDS.